Question 25
What happens when the following code is executed?
from sklearn.ensemble import GradientBoostingClassifierfrom sklearn.model_selection import GridSearchCVimport numpy as np
# Example training data (100 samples, 10 features)X = np.random.rand(100, 10)y = np.random.randint(0, 2, 100)
param_grid = {'n_estimators': [50, 100], 'learning_rate': [0.1, 0.01]}grid = GridSearchCV(GradientBoostingClassifier(), param_grid, cv=3)grid.fit(X, y)