Question: Need some help with Python code for the Diabetes dataset (can be loaded from the datasets library in Python) Load the data set, and read
Need some help with Python code for the Diabetes dataset (can be loaded from the datasets library in Python)
Load the data set, and read the DESCR, features, keys, ..etc.
Select 3 numerical features (attributes)
Extract each one of these attributes into a separate array (make sure to be a column vector)
Split the feature values into training set (400 sample) and testing sets (42 samples), since there are 442 samples (objects).
Create the classifier object (Decision Tree)
Perform the fitting and prediction.
Plot the figures
Repeat for the other 2 features.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
