Skip to content
New issue

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

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

Already on GitHub? # to your account

Implement random_state for IBIS8542Model MLP #33

Merged
merged 6 commits into from
May 14, 2021

Conversation

ConorMacBride
Copy link
Owner

A random_state integer can be passed as a kwarg to IBIS8542Model, and applied to the default MLP classifier (if the default classifier is being used). This allows for the randomness of the training process to be controlled, and means that a neural network trained with the same data and code will produce the same trained network every time, so allows for reproducibility. The Working with IBIS data gallery example has also been updated to use a persistent neural network and explain how to create a reproducible classifier.

Signed-off-by: Conor MacBride <conor@macbride.me>
Signed-off-by: Conor MacBride <conor@macbride.me>
Signed-off-by: Conor MacBride <conor@macbride.me>
@codecov
Copy link

codecov bot commented May 13, 2021

Codecov Report

Merging #33 (6d9fde0) into main (3e42120) will increase coverage by 0.16%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
+ Coverage   94.33%   94.49%   +0.16%     
==========================================
  Files          16       16              
  Lines        1217     1217              
==========================================
+ Hits         1148     1150       +2     
+ Misses         69       67       -2     
Impacted Files Coverage Δ
src/mcalf/models/ibis.py 91.77% <100.00%> (+0.63%) ⬆️
src/mcalf/models/base.py 84.78% <0.00%> (+0.31%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e42120...6d9fde0. Read the comment docs.

Signed-off-by: Conor MacBride <conor@macbride.me>
Signed-off-by: Conor MacBride <conor@macbride.me>
Not needed for testing, but only needed to run this specific example so should not be added as an install dependency of mcalf.

Signed-off-by: Conor MacBride <conor@macbride.me>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant