Skip to content
This repository was archived by the owner on Jul 10, 2021. It is now read-only.
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
4 changes: 2 additions & 2 deletions docs/guide_advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ In the cases when you have large numbers of hyper-parameters that you want to tr
from scipy import stats
from sklearn.grid_search import RandomizedSearchCV

rs = RandomizedSearchCV(nn, param_grid={
learning_rate: stats.uniform(0.001, 0.05),
rs = RandomizedSearchCV(nn, param_distributions={
'learning_rate': stats.uniform(0.001, 0.05),
'hidden0__units': stats.randint(4, 12),
'hidden0__type': ["Rectifier", "Sigmoid", "Tanh"]})
rs.fit(a_in, a_out)
Expand Down