u r an awesome teacher , u make them look very simple , thanks a lot keep up the good work , looking forward to watch more of your number 1 tutorials in R !
Thanks! An RStudio tip: after partially typing the name of something (for example, a vector name), press the Tab key and it will either auto-complete or give you a list of names to complete the term
Top notch vid! Why is it that the rpart function builds an entirely different tree than the tree function? I could replicate the result you had with tree but not with rpart. Also: is there a way to display probabilities under the end nodes, under Yes/No? I couldn't find any info on this.
Heyy , Your video is a great learning source, a;though when I am trying to use it for my data it returns an error object of type 'closure' is not subsettable . I have tried to use it on the wages and error is for this line tree_model = tree[pus1$high~., training_data]. Please help me out. Thanks in advance.
@Abbass Al Sharif: Can you please explain how to do perturbation on decision tree? I mean how to perturb a single column with some noise and then construct decision tree.
Hello ,Awesome video good job.I have doubt - If the my SALES or INCOME is range from $2,000 to $70,000 then can we covert them into different group ..You mentioned only 2 groups -yes or no ----But How to handle continuous variables in R ...please reply
Hello,first thanks for this video.I have a question.I apply this formula but it didn't work.I have error."'.' in formula and no 'data' argument".This is error text.Can you help me about this pleas?Thank you.
In Prune the tree step(13:31), how to get the best value by code, that is, not manually looking at the plot and entering the number. Thanks in advance.
I had the same question, and it took me a little bit to figure out how to do it. This is what did it: 1: To find the value of the minimum CV use: bestprune
I keep getting this error Error in type[test] : invalid subscript type 'list' for me my "High" is "type" What does this error mean and how do I fix it?
Thanks for awesome tutorial . Now I am stuck at very basic concepts, so can any one answer that how many input and output variable also how many terminal mode in above data.
When I try to do classification, I get the below error: Could you please help? Error in predict.tree(tree_model, testing_data, type = "class") : type "class" only for classification trees
plot(pruned_model) : Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' is a list, but does not have components 'x' and 'y'. Getting this error. Please help
u r an awesome teacher , u make them look very simple , thanks a lot keep up the good work , looking forward to watch more of your number 1 tutorials in R !
Your videos are really awesome. Please upload more on new topics.
Thanks! An RStudio tip: after partially typing the name of something (for example, a vector name), press the Tab key and it will either auto-complete or give you a list of names to complete the term
Awesome Tutorial. Specially I liked the Pruning of the Decision Tree part (That's bit tricky to decide)
Thanks :-)
Thanks for the video ..;) its awesome Explanation , I was looking this.. Thanks for posting this .. Great work..!!
Thank you very much this is a a nice and very helpful video
A very nice and lucid video.
Excellent piece of work !
Hello, this is amazing. Kindly include the links to download that data. It is easier for us to practice with the same data. Thank you.
Great tutorial. Very detailed. Thanks for posting :-)
nice video, but do you need to fit the bound between high and low instead of simply assigning it to 8
Thanks. Would you please also let us know how one can add a rule (manually) to the fitted tree?
Clear with the concept..grt!
Excellent exercise, very clear, thank you !
How do I undo changes made onto the dataframe? I removed 2 variables from the Carseats dataframe, but I would like to undo that.
Top notch vid!
Why is it that the rpart function builds an entirely different tree than the tree function? I could replicate the result you had with tree but not with rpart.
Also: is there a way to display probabilities under the end nodes, under Yes/No? I couldn't find any info on this.
Excellent video !
Great Video!! Thanks for the video!
i would like to know if there is a way that can automatically generate code when I use SPSS modeler when I am creating modules?
Heyy , Your video is a great learning source, a;though when I am trying to use it for my data it returns an error object of type 'closure' is not subsettable . I have tried to use it on the wages and error is for this line tree_model = tree[pus1$high~., training_data]. Please help me out. Thanks in advance.
@Abbass Al Sharif: Can you please explain how to do perturbation on decision tree? I mean how to perturb a single column with some noise and then construct decision tree.
What if we don't want to use ALL OF THE PREDICTORS to predict "HIGH". How do we go about this?
Hi Abbass, I had a question. How would you plot accuracy of tree vs tree size?
Thanks for the video, also could you tell us how to make decision trees with strings as nodes instead of numeric characters.
Thank you .
Hello ,Awesome video good job.I have doubt - If the my SALES or INCOME is range from $2,000 to $70,000 then can we covert them into different group ..You mentioned only 2 groups -yes or no ----But How to handle continuous variables in R ...please reply
Excellent video. Thanks a lot.
Nice Video.. But I get stuck that which algorithm is it I mean C5.0, CART or it is inbuilt algorithm in R... Thanks in advance...
hello, i have a question about this, why did you erase Sales? Becouse if i let in the model, it is apear a error next
sir this material is awesome
Hello,first thanks for this video.I have a question.I apply this formula but it didn't work.I have error."'.' in formula and no 'data' argument".This is error text.Can you help me about this pleas?Thank you.
Hello. Are you running R studio on a Macbook ?
In Prune the tree step(13:31), how to get the best value by code, that is, not manually looking at the plot and entering the number.
Thanks in advance.
I had the same question, and it took me a little bit to figure out how to do it. This is what did it:
1: To find the value of the minimum CV use:
bestprune
very nice and clear! Thanks!
I keep getting this error Error in type[test] : invalid subscript type 'list'
for me my "High" is "type"
What does this error mean and how do I fix it?
great video!
Thanks for awesome tutorial . Now I am stuck at very basic concepts, so can any one answer that how many input and output variable also how many terminal mode in above data.
Hello, What is the purpuse of the command: testing_High=High[test]? Thanks
I have the same question. Can anyone please explain
The purpose is to compare the correct result of the testing data with the result given by the decision tree. (I think :) )
hi , i am getting the error when im doing the cross validation .cannot coerce class ""function"" to a data.frame .
Please help
Which algorithm is used here?
Very helpful
Thanks for this video!
may add more info about trees with CHAID pls
When I try to do classification, I get the below error: Could you please help?
Error in predict.tree(tree_model, testing_data, type = "class") :
type "class" only for classification trees
Ashok Loganathan I get the same error, did you ever figure out how to fix it?
check the type of "High" object. use tranning_data$High = as.factor(tranning_data$High) and the run again.
You have to write "new data= testing_data"
newdata**
you have to use the keyword only predict not predict.tree
I have a question - when do we know to set.seed(1) or set.seed(2)?
huikahseng you can use any number as the argument. Its just easy to remember with 1,2.
+huikahseng Ideally you should use a random number from something like www.random.org
nice one.. ver clear
when High is used, i got an error ie object High is not found. can you give a solution
Good Job
How can we use the csv file in R ...?
what is the package?
nice explanation.....can i get the file you are using
Error in tree(High ~ ., training_data) :
factor predictors must have at most 32 levels....
i am getting this error. kindly help.
Getting error in cv.tree command. Showing as
Error in cv.tree(fit, FUN = misclass) : not legitimate tree
Please help on solving it
sir nice video
i want ID3 and C4.5 implementation using R. please help me with the code
allah razı olsun abbass
> plot(tree_model)
Error in plot.new() : figure margins too large. Please sugget how to resolve this
used X11(). now Problem resolved
need link for carseats dataset
can you please provide me code
plot(pruned_model) : Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' is a list, but does not have components 'x' and 'y'. Getting this error. Please help