Open TrialsOnTrails opened 3 months ago
please fill in your code using functions and run it in the main functions. I have already put it in the rmd file
Hi, you are so "ging", know a lot of models, seems prof haven't taught😂😂 I read his coding...
I am doing the random forest part, but my coding has some error, need your help or guidance, may I know, when you free? We shall did one more model?
I try to run the following coding in R: library(randomForest) library(readr) install.packages("rmarkdown") install.packages("quanteda") library(quanteda) install.packages("data.table") library(data.table) reviews <- fread("/Desktop/blogData_train.csv") Datatest=fread("/Desktop/blogData_test.csv") Datatrain=fread("~/Desktop/blogData_train duplicate removed.csv")
assume last column 'C281' is the target variable"
target_column='C281' Datatrain$target_column<- as.factor(Datatrain$target_column) model=randomForest(target_column,data=Datatrain)
Then
Error in if (n == 0) stop("data (x) has 0 rows") : argument is of length zero
By saying "satisfactory", it means (1) formatted coding and easy to read documentation notes in the r markdown file; (2) the MSE results in Kaggle should be no worse than 589 (this number is generated by the most simple decision tree, so a random forest should not worse than that)
I reserve a place in the Rmd for you to put your code. See the content at the beginning of the R markdown file, you will find "3.3.8 Random Forest".
hi, can u help me double check? thanks
I ran your code but it seems there are still some bugs. Please put some effort into debugging the code.
Please also try to improve the performance of the output
Yup, are u free tonight? have a chat before due? We just submit the mark down...
feel strange, my model has only 115 comments, then I run the Naive Bayes Gaussian model part, it is also the same..
ok