Skip to content

Commit

Permalink
changing mlp hyperp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotzly committed Aug 20, 2022
1 parent 4fd07d3 commit 8624865
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions experiments/issue_12/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,13 @@ def get_classifier(clf_method, n_inputs=10, random_state=1):
clf = GaussianNB()
param_grid = dict()
elif clf_method == "mlp":
clf = MLPClassifier(random_state=random_state, max_iter=5000)
clf = MLPClassifier(validation_fraction=0.2, random_state=random_state, max_iter=2500)
param_grid = dict(
hidden_layer_sizes=[
(),
(n_inputs,),
(n_inputs // 2,),
(n_inputs // 4),
(n_inputs // 2, n_inputs // 2),
(n_inputs // 4, n_inputs // 4),
(n_inputs // 2, n_inputs // 2, n_inputs // 2),
],
activation=["relu", "logistic"]
)
Expand Down

0 comments on commit 8624865

Please sign in to comment.