Open javariaqayyum opened 1 year ago
Find which functions will be used for the Decision Tree in R and libraries also. Then apply Random forest and show the confusion matrix using the summary function.
Train <- lapply(dfTraining, as.factor) train_m1 <- J48(JobCompleted ~. , data=Train, na.action= NULL, subset = NULL)
summary(train_m1)
Find which functions will be used for the Decision Tree in R and libraries also. Then apply Random forest and show the confusion matrix using the summary function.
Train <- lapply(dfTraining, as.factor) train_m1 <- J48(JobCompleted ~. , data=Train, na.action= NULL, subset = NULL)
pred_model <- predict(train_m1, newdata = dfTest)
summary(train_m1)