ageron / ageron/handson-ml2

Grid Search Best Estimator

Offen
#251 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
30k
Forks
13.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

In both the book and the example on github, when using the grid search to find the best estimator, gridsearch.best_estimator returns something that looks like the following:

![image](https://user-images.githubusercontent.com/11891298/92843714-abc49b00-f3aa-11ea-962d-38160677383a.png)

However, when I run the same thing on my local machine, all I get is this:
![image](https://user-images.githubusercontent.com/11891298/92843866-d6165880-f3aa-11ea-8efc-b30cc053c7b6.png)

So two questions. The first is why am I getting slightly different hyperparameters (I've seen it flip-flop between 6 and 8 for max_features). Is it because the folds are randomized, so the models that are trained are slightly different? And the second question is why in the output it only gives me the two hyperparameters I asked it search over, but not the rest. Is there some setting I'm missing?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.