menu_book Course Curriculum (Machine Learning) expand_more
Data Preparation
Regression
Classification
Evaluation
Unsupervised Learning
Feature Engineering
Model Selection
Grid search
Learn Grid search in Machine Learning with a dedicated explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Advanced
machine-learning-049.py
python
from sklearn.model_selection import GridSearchCV
search=GridSearchCV(RandomForestClassifier(random_state=42),{"max_depth":[3,6,None],"n_estimators":[100,200]},cv=5,n_jobs=-1).fit(X_train,y_train)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content