Open MarcinKamil84 opened 12 months ago
The DecisionTreeClassifier doesn't seem to have a parameter for n_estimators. At least i dont see it within the docx -> https://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeClassifier.html
Sorry. I have no idea how I missed that. I was sure I checked. Thanks!
Here's my code snippet from Kaggle notebook:
Here's the error:
ValueError: Invalid parameter 'n_estimators' for estimator DecisionTreeClassifier(). Valid parameters are: ['ccp_alpha', 'class_weight', 'criterion', 'max_depth', 'max_features', 'max_leaf_nodes', 'min_impurity_decrease', 'min_samples_leaf', 'min_samples_split', 'min_weight_fraction_leaf', 'random_state', 'splitter'].
With RandomForestClassifier all works fine. What can be the issue?