rebeccajohnson88 / PPOL5202_slides_activities

Course slides, activities, and assignments for Georgetown McCourt School of Public Policy's PPOL 5202: Data Visualization for Data Science
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Question 4: ROC curve #9

Open rebeccajohnson88 opened 1 week ago

rebeccajohnson88 commented 1 week ago

image

aasthajha98 commented 1 week ago

I am having trouble extracting out just the predictions from the random forest, there's a random string in the middle of the predictions when I try and turn the factor into a dataframe to isolate just the prediction values.

rebeccajohnson88 commented 6 days ago

I am having trouble extracting out just the predictions from the random forest, there's a random string in the middle of the predictions when I try and turn the factor into a dataframe to isolate just the prediction values.

I would break this down into two steps:

  1. Use the predict command alone with the model + the test_data to predict in the test set
  2. You should be able to extract the predictions from the result of step 1

Let us know if still questions after trying that!