HR Analytics: Predicting Employee Churn in Python
In this course you'll learn how to apply machine learning in the HR domain.Start Course for Free
4 Hours14 Videos44 Exercises7,402 Learners
Create Your Free Account
Loved by learners at thousands of companies
Among all of the business domains, HR is still the least disrupted. However, the latest developments in data collection and analysis tools and technologies allow for data driven decision-making in all dimensions, including HR. This course will provide a solid basis for dealing with employee data and developing a predictive model to analyze employee turnover.
Introduction to HR AnalyticsFree
In this chapter you will learn about the problems addressed by HR analytics, as well as will explore a sample HR dataset that will further be analyzed. You will describe and visualize some of the key variables, transform and manipulate the dataset to make it ready for analytics.
Predicting employee turnover
This chapter introduces one of the most popular classification techniques: the Decision Tree. You will use it to develop an algorithm that predicts employee turnover.Splitting the data50 xpSeparating Target and Features100 xpSpliting employee data100 xpIntroduction to Decision Tree classification50 xpComputing Gini index100 xpSplitting the tree100 xpPredicting employee churn using decision trees50 xpFitting the tree to employee data100 xpChecking the accuracy of prediction100 xpInterpretation of the decision tree50 xpExporting the tree100 xpInterpretation of results50 xp
Evaluating the turnover prediction model
Here, you will learn how to evaluate a model and understand how "good" it is. You will compare different trees to choose the best among them.Tuning employee turnover classifier50 xpPruning the tree100 xpLimiting the sample size100 xpEvaluating the model50 xpInterpreting accuracy metrics50 xpCalculating accuracy metrics: precision100 xpCalculating accuracy metrics: recall100 xpTargeting both leavers and stayers50 xpCalculating the ROC/AUC score100 xpClass imbalance50 xpBalancing classes100 xpComparison of Employee attrition models100 xp
Choosing the best turnover prediction model
In this final chapter, you will learn how to use cross-validation to avoid overfitting the training data. You will also learn how to know which features are impactful, and which are negligible. Finally, you will use these newly acquired skills to build a better performing Decision Tree!Hyperparameter tuning50 xpCross-validation using sklearn100 xpSetting up GridSearch parameters100 xpImplementing GridSearch100 xpImportant features for predicting attrition50 xpInterpreting importance50 xpSorting important features100 xpSelecting important features100 xpDevelop and test the best model100 xpFinal thoughts50 xp
DatasetsEmployee turnover data
Hrant DavtyanSee More
Assistant Professor of Data Science at the American University of Armenia
Hrant is an Assistant Professor of Data Science at the American University of Armenia and founder of METRIC research center. His courses are concentrated on Data collection, analysis, visualization and reporting using Python and R in all 4 domains of business: customers, people, operations and finance. Hrant also holds PhD in Economics. His research is related to applications of Machine Learning in Economics and Finance.
What do other learners have to say?
Join over 11 million learners and start HR Analytics: Predicting Employee Churn in Python today!
Create Your Free Account