निर्वाण तक अंतिम कदम

HR Analytics: R में Employee Churn की भविष्यवाणी

Anurag Gupta

People Analytics Practitioner

अपना अंतिम मॉडल बनाएँ

# Final model, you will complete this in the next exercise
final_log <- glm(...)
HR Analytics: R में Employee Churn की भविष्यवाणी

टर्नओवर की प्रायिकता का पूर्वानुमान

# Make predictions for training dataset
prediction_train <- predict(final_log, newdata = train_set_final, 
                            type = "response")
prediction_train[c(205, 645)]
       205        645 
0.06069079 0.99999898
HR Analytics: R में Employee Churn की भविष्यवाणी

प्रायिकता रेंज प्लॉट करें: प्रशिक्षण डेटासेट

# Look at the predictions range
hist(prediction_train)

HR Analytics: R में Employee Churn की भविष्यवाणी

प्रायिकता का पूर्वानुमान: टेस्टिंग डेटासेट

# Make predictions for testing dataset
# test_set is the test dataset from chapter 3 exercise 2
prediction_test <- predict(final_log, newdata = test_set, 
                           type = "response")
HR Analytics: R में Employee Churn की भविष्यवाणी

प्रायिकता रेंज प्लॉट करें: टेस्टिंग डेटासेट

# Look at the predictions range
hist(prediction_test)

HR Analytics: R में Employee Churn की भविष्यवाणी

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

HR Analytics: R में Employee Churn की भविष्यवाणी

Preparing Video For Download...