Answered step by step
Verified Expert Solution
Question
1 Approved Answer
note: using spyder I want the answer in CODE Ignore step 11 Your manager sent you a dataset for restaurant review to analyze it. As
note: using spyder
I want the answer in CODE
Ignore step 11
Your manager sent you a dataset for restaurant review to analyze it. As a data scientist you will build a prediction model to predict whether a review on the restaurant is positive or negative. Do the following Steps: 1. Download the attached dataset. 2. Use the following algorithm to make prediction models: a. Random Forest. b. SVM 3. Cleaning the texts. 4. Make the total words equal 1550 . 5. Creating the Bag of Words model 6. When splitting the dataset into the Training set and Test Set, assign 70% fortraining set and 30% for test set. (random_state =0 ). 7. Determine the N-tree to be 10 . 8. For SVM, determine the kernel type ( rbf) 9. Write or show screenshot of the confusion matrix. 10. Show screenshot of yourcode. 11. Write your opinion about the performance of Random Forest in compare with SVMStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started