Skip to content

Conversation

@donalus
Copy link

@donalus donalus commented Feb 16, 2023

The DecisionTree example in 'Chapter 7.ipynb' was not running with scikit-learn 1.2.1 and with Scikit-learn 1.1.1 was throwing a warning. The message included: "The feature names should match those that were passed during fit." and was referencing the normalized data.

After some digging, it turns out that newApplicant was changed for KNN example and not reverted to the original data for the DecisionTree example. This code creates a newApplicant with non-normalized values and now runs without throwing errors. I tried to stay close to the style of the code in the KNN example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant