मॉडल फिट करने के बाद भविष्यवाणी

R में Supervised Learning: Regression

Nina Zumel and John Mount

Win-Vector LLC

Training डेटा से भविष्यवाणी

cricket$prediction <- predict(cmodel)
  • predict() डिफ़ॉल्ट रूप से training डेटा पर predictions लौटाता है
R में Supervised Learning: Regression

Predictions देखें

ggplot(cricket, aes(x = prediction, y = temperature)) + 
     geom_point() +
     geom_abline(color = "darkblue") + 
     ggtitle("temperature vs. linear model prediction")

R में Supervised Learning: Regression

नई डेटा पर भविष्यवाणी

newchirps <- data.frame(chirps_per_sec = 16.5)
newchirps$prediction <- predict(cmodel, newdata = newchirps)
newchirps
   chirps_per_sec     pred
 1           16.5 79.53537

R में Supervised Learning: Regression

अभ्यास करते हैं!

R में Supervised Learning: Regression

Preparing Video For Download...