Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Why are optimization results from cartesian products not reproducible by default? #302

Unanswered
binarymason asked this question in Q&A
Discussion options

If optimization is doing an exhaustive search through all of the combinations of the cartesian product of parameters, why do I need to set random_state to get reproducible results? I would think an exhaustive search would give me reproducible results no matter what.

Thanks!

backtest.optimize(sma1=[5, 10, 15], sma2=[10, 20, 40],
You must be logged in to vote

Replies: 1 comment

Comment options

random_state= comes in use when max_tries= is set.

`max_tries` is the maximal number of strategy runs to perform.
If `method="grid"`, this results in randomized grid search.
If `max_tries` is a floating value between (0, 1], this sets the
number of runs to approximately that fraction of full grid space.
Alternatively, if integer, it denotes the absolute maximum number
of evaluations. If unspecified (default), grid search is exhaustive,
whereas for `method="skopt"`, `max_tries` is set to 200.
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /