Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Decision tree code

col_names = ['pregnant', 'glucose', 'bp', 'skin', 'insulin', 'bmi', 'pedigree', 'age', 'label']
# load dataset
pima = pd.read_csv("pima-indians-diabetes.csv", header=None, names=col_names)
POWERED BY DATACAMP WORKSPACE
COPY CODE
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #Decision #tree #code
ADD COMMENT
Topic
Name
6+6 =