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