Assignment 10 1b)

Assignment 10 1b)

by Farbod Khorrami -
Number of replies: 1

Hello! I have encountered an issue with making my decision tree. When I write the code according to the lecture slide, i encounter the following error: Error in eval(predvars, data, env) : object 'label' not found. I have this even though I have included the header in my dataframe and indicate the data to be training data set in the rpart() function. Could anyone give any input on why this happens? Thank you!

In reply to Farbod Khorrami

Re: Assignment 10 1b)

by Erik Spence -
I don't know. You'll have to send me your code to figure it out.