रूट मीन स्क्वेयर्ड एरर (RMSE)

R में Supervised Learning: Regression

Nina Zumel and John Mount

Win-Vector LLC

रूट मीन स्क्वेयर्ड एरर (RMSE) क्या है?

$$ RMSE = \sqrt{\overline{(y-pred)^2}} $$

जहाँ

  • $y - pred$: त्रुटि या रेजिडुअल्स वेक्टर
  • $\overline{(y-pred)^2}$: $(y-pred)^2$ का औसत मान
R में Supervised Learning: Regression

होम सेल्स प्राइस मॉडल का RMSE

# Calculate error
err <- houseprices$prediction - houseprices$price
  • price: वास्तविक बिक्री कीमतों का कॉलम (हज़ारों में)
  • prediction: अनुमानित बिक्री कीमतों का कॉलम (हज़ारों में)
R में Supervised Learning: Regression

होम सेल्स प्राइस मॉडल का RMSE

# Calculate error
err <- houseprices$prediction - houseprices$price

# Square the error vector
err2 <- err^2
R में Supervised Learning: Regression

होम सेल्स प्राइस मॉडल का RMSE

# Calculate error
err <- houseprices$prediction - houseprices$price

# Square the error vector
err2 <- err^2

# Take the mean, and sqrt it
(rmse <- sqrt(mean(err2)))
58.33908
  • $RMSE \approx 58.3$
R में Supervised Learning: Regression

RMSE बड़ा है या छोटा?

# Take the mean, and sqrt it
(rmse <- sqrt(mean(err2)))
58.33908
# The standard deviation of the outcome
(sdtemp <- sd(houseprices$price))
135.2694
  • $RMSE \approx 58.3$
  • $sd(price) \approx 135$
R में Supervised Learning: Regression

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

R में Supervised Learning: Regression

Preparing Video For Download...