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
Added missing parameters in existing layers #88
Conversation
…cale Layers * Added parameters present in either Caffe or Keras * Updated unit tests for these new parameters
ide/static/js/data.js
Outdated
weight_filler: { | ||
name: 'Weight filler', | ||
value: 'constant', | ||
type: 'select', | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear'], | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear', 'Zeros', 'Ones', 'Constant', 'RandomNormal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate by framework and add comments
ide/static/js/data.js
Outdated
required: false | ||
}, | ||
bias_filler: { | ||
name: 'Bias filler', | ||
value: 'constant', | ||
type: 'select', | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear'], | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear', 'Zeros', 'Ones', 'Constant', 'RandomNormal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document
ide/static/js/data.js
Outdated
}, | ||
weight_filler: { | ||
name: 'Weight filler', | ||
value: 'constant', | ||
type: 'select', | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear'], | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear', 'Zeros', 'Ones', 'Constant', 'RandomNormal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document
ide/static/js/data.js
Outdated
required: false | ||
}, | ||
bias_filler: { | ||
name: 'Bias filler', | ||
value: 'constant', | ||
type: 'select', | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear'], | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear', 'Zeros', 'Ones', 'Constant', 'RandomNormal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document
ide/static/js/data.js
Outdated
@@ -761,14 +874,18 @@ export default { | |||
name: 'Weight filler', | |||
value: 'constant', | |||
type: 'select', | |||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear'], | |||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear', 'Zeros', 'Ones', 'Constant', 'RandomNormal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document
ide/static/js/data.js
Outdated
required: false | ||
}, | ||
bias_filler: { | ||
name: 'Bias filler', | ||
value: 'constant', | ||
type: 'select', | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear'], | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear', 'Zeros', 'Ones', 'Constant', 'RandomNormal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document
ide/static/js/data.js
Outdated
weight_filler: { | ||
name: 'Weight filler', | ||
value: 'constant', | ||
type: 'select', | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear'], | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear', 'Zeros', 'Ones', 'Constant', 'RandomNormal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document
ide/static/js/data.js
Outdated
name: 'Filler', | ||
value: 'constant', | ||
type: 'select', | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear', 'Zeros', 'Ones', 'Constant', 'RandomNormal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document
ide/static/js/data.js
Outdated
name: 'Bias Filler', | ||
value: 'constant', | ||
type: 'select', | ||
options: ['constant', 'gaussian', 'positive_unitball', 'uniform', 'xavier', 'msra', 'bilinear', 'Zeros', 'Ones', 'Constant', 'RandomNormal', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document
eps = 0.0001 # In Keras the max epsilon allowed in 1e-5 | ||
moving_mean_initializer = layer['params']['moving_mean_initializer'] | ||
moving_variance_initializer = layer['params']['moving_variance_initializer'] | ||
if (nextLayer['info']['type'] == 'Scale'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have explained it in export_json.py
ide/static/js/data.js
Outdated
type: 'number', | ||
required: false | ||
}, | ||
weight_filler: { // Keras(kernel_initializer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to "Maps to: kernel_initializer (Keras)"? Otherwise it might imply that this is a Keras only layer. Follow this convention everywhere.
Added union of parameters from Keras and Caffe for Conv layer