You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I believe there is an error in the code to fit a decision tree on the red wine quality dataset.
/# train the model on the provided features
/# and mapped quality from before
clf.fit(df_train[cols], df_test.quality)
Shouldn't the feature column be from df_train as opposed to from df_test. This error was not repeated in the longer code section where you plot accuracies for different values of max_depth
Cheers
The text was updated successfully, but these errors were encountered:
Hi, I believe there is an error in the code to fit a decision tree on the red wine quality dataset.
/# train the model on the provided features
/# and mapped quality from before
clf.fit(df_train[cols], df_test.quality)
Shouldn't the feature column be from df_train as opposed to from df_test. This error was not repeated in the longer code section where you plot accuracies for different values of max_depth
Cheers
The text was updated successfully, but these errors were encountered: