Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[MRG+1] DOC FIX: update warning about random seed with scipy #7577

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

Merged
merged 1 commit into from
Oct 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions doc/modules/grid_search.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,12 @@ consecutive calls.

.. warning::

The distributions in ``scipy.stats`` do not allow specifying a random
state. Instead, they use the global numpy random state, that can be seeded
via ``np.random.seed`` or set using ``np.random.set_state``.
The distributions in ``scipy.stats`` prior to version scipy 0.16
do not allow specifying a random state. Instead, they use the global
numpy random state, that can be seeded via ``np.random.seed`` or set
using ``np.random.set_state``. However, beginning scikit-learn 0.18,
the :mod:`sklearn.model_selection` module sets the random state provided
by the user if scipy >= 0.16 is also available.

For continuous parameters, such as ``C`` above, it is important to specify
a continuous distribution to take full advantage of the randomization. This way,
Expand Down