|
Download descriptions/description_parameter_grid.md from sklearn-docs/text-feature-extraction-evaluation: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/spaces/sklearn-docs/text-feature-extraction-evaluation/resolve/main/descriptions/description_parameter_grid.md
- Command line
-
hf download hf://spaces/sklearn-docs/text-feature-extraction-evaluation/descriptions/description_parameter_grid.md
-
curl -L -o description_parameter_grid.md https://huggingface.co/spaces/sklearn-docs/text-feature-extraction-evaluation/resolve/main/descriptions/description_parameter_grid.md
772 Bytes
| We define a grid of hyperparameters to be explored by the [RandomizedSearchCV](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.RandomizedSearchCV.html). Using a [GridSearchCV](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html) instead would explore all the possible combinations on the grid, which can be costly to compute, whereas the parameter n_iter of the RandomizedSearchCV controls the number of different random combination that are evaluated. Notice that setting n_iter larger than the number of possible combinations in a grid would lead to repeating already-explored combinations. We search for the best parameter combination for both the feature extraction (vect__) and the classifier (clf__). |