Created
September 22, 2017 01:21
-
-
Save yngtodd/77e44c088fecab07a74ce59a58524e5a to your computer and use it in GitHub Desktop.
Checking reproducibility with Scikit-Optimize
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes:
There are two places where we set a
random_state
in order to manage the pseudorandom portions of the code:Scikit-Optimize
optimizergp_minimize()
There could also be some potential for variation in the Scikit-Learn's
cross_val_score
, but running multiple trials does not seem to affect the cross folds.Results:
Looks like everything is good to go. I ran two runs for each of two
random_states
. Each time the final return value of theobjective
function is the same, as are the parameter choices selected bygp_minimize
. Finally, we find that theconvergence_plot
s are consistent for both of the experiments. For each random state, the two runs return identical values of theobjective
at each iteration of the optimization. The plots are sitting on top of one another.