Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new initializations for conv neuralnet layer #2797

Merged
merged 1 commit into from
Jul 28, 2015

Conversation

sanuj
Copy link
Contributor

@sanuj sanuj commented Apr 2, 2015

PR for issue #2700
@lisitsyn Please have a look. I'm not sure if this is the correct way to implement this.

@@ -280,6 +292,10 @@ void CNeuralConvolutionalLayer::init()
SG_ADD(&m_pooling_height, "pooling_height", "Pooling Height", MS_NOT_AVAILABLE);
SG_ADD(&m_stride_x, "stride_x", "X Stride", MS_NOT_AVAILABLE);
SG_ADD(&m_stride_y, "stride_y", "Y Stride", MS_NOT_AVAILABLE);

// SG_ADD(&m_initialization_mode, "initialization_mode", "Initialization Mode",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall I typecast it to machine_int_t* like done below or make a new Parameter::add and a new entry in lib/DataType.h?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

machine_int_t* should be ok

@sanuj
Copy link
Contributor Author

sanuj commented Apr 9, 2015

@lisitsyn Made the changes you suggested.

* of initialization of the network */
INIT_MANUAL=0,
/** Sets standard deviation to
* \sqrt{\frac{2}{input\_width\times input\_height\times input\_channels}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sanuj
Copy link
Contributor Author

sanuj commented Apr 30, 2015

@lisitsyn sorry for the delay. I had my end-semester exams. made the changes you suggested. Please review.

@lisitsyn
Copy link
Member

@sanuj this time excuse my delay :) can we name MANUAL thing as NORMAL and AUTO as HE_NORMAL (as per author of the paper, like in Keras https://github.com/fchollet/keras/blob/master/keras/initializations.py) ?

@sanuj
Copy link
Contributor Author

sanuj commented May 16, 2015

@lisitsyn I have updated the code although for some reason i'm unable to run the unit-tests locally. Whenever I do make test after building shogun, I get make: *** No rule to make targettest'. Stop.
`

@sanuj
Copy link
Contributor Author

sanuj commented Jul 28, 2015

@lisitsyn ping :)

@lisitsyn
Copy link
Member

Ok this looks ok, thanks!

lisitsyn added a commit that referenced this pull request Jul 28, 2015
Implement new initializations for conv neuralnet layer
@lisitsyn lisitsyn merged commit 5bf0ea7 into shogun-toolbox:develop Jul 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants