-
Notifications
You must be signed in to change notification settings - Fork 51
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
Z-score Threshold tutorial #1009
Conversation
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.
in general:
- in comments: make sure you have a space after the "#" character
- although "quantise" is obviously correct, maybe change to "quantize" to be consistent with out code?
- it's clearer to write z-score (instead of "zscore"
"outputs": [], | ||
"source": [ | ||
"#print layer name\n", | ||
"for index, layer in enumerate(float_model.layers):\n", |
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.
wouldn't print(float_model.layers[51].name)
do the trick?
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.
Hey, This particular layer is i believe an added quantise layer so the name does not match up directly to layer names in keras. I have added some code used to find this in the appendix. I will keep this as it is unless you feel otherwise.
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.
?
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.
sorry, miss read your original comment. fixed
"To calculate a threshold $t$ for quantization based on a Z-score threshold $Z_t$, you might define $t$ as a function of $Z_t$, $\\mu$, and $\\sigma$, such as:\n", | ||
"\n", | ||
"$$\n", | ||
"t(Zt)=\\frac{μ+Zt⋅σ}{μ+Zt⋅σ}\n", |
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.
isn't this just \\frac{μ+Zt⋅σ}{μ+Zt⋅σ}
= 1?
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.
nice spot, not sure why i left the fraction in there
made all the relevant changes @elad-c thanks for feed back |
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.
with 1 little comment
"outputs": [], | ||
"source": [ | ||
"#print layer name\n", | ||
"for index, layer in enumerate(float_model.layers):\n", |
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.
?
addition of zscore mct tutorial including updates to tutorial utils
Pull Request Description:
notebook tutorial guiding the user through the use of z-score and its affect on quantisation thresholds and accuracy
Checklist before requesting a review: