GithubHelp home page GithubHelp logo

tuliorc / hr-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chrbarreto/hr-analysis

0.0 0.0 0.0 22 KB

Applying classification models to understand why some employees leave companies prematurely

R 100.00%

hr-analysis's Introduction

Classification Models for HR Analytics

This project implements SVM, Neural Networks and Naïve Bayes with three different datasets: the original one, a copy from the original containing features selected by RELIEF algorithm only, and a dataset containing the corresponding PCA components. For each run, the average error, the recall and the precision are printed for comparison. P.S.: The original dataset was downloaded from kaggle at https://www.kaggle.com/ludobenistant/hr-analytics/downloads/human-resources-analytics.zip.

How to run

Clone the repository:

[email protected]:tuliorc/hr-analysis.git

Go into your new local repository:

cd hr-analysis

Make sure you have R installed in your computer:

R --version

In case you don't, install it:

sudo apt-get update sudo apt-get install r-base

For other Operational Systems, follow the instructions found in the links below:

Then, execute the main file script.R, either by running it in RStudio or terminal.

Tips

  • Try to run, at first, the first block of code independently. You may need to run install.packages() specifying the packages that you still don't have in your computer. Both RStudio and Terminal are going to notify you about what is missing.
  • Then, run the second and third blocks of code. You may again be asked to install some missing packages.
  • After that, you can run the fourth to sixth blocks of code. These will only create the model functions and no trouble should be caused.
  • Now, you're able to run the seventh (and last) block of code. Here you can make some experimentations! Feel free to change and adapt parameters to what you are curious about. By chunking the script as above, it will be easier to follow and understand what's going on!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.