Git Product home page Git Product logo

jobsalaryprediction's Introduction

Kaggle - Job Salary Prediction

This repo contains sample code for the Job Salary Prediction competition, hosted by Kaggle with Adzuna.

It contains several benchmarks marked as different git tags. This is the Random Forest Benchmark. For another example, see the Mean Benchmark.

Executing this benchmark requires Python 2.7 along with the following packages:

  • pandas (version >=10.1)
  • sklearn
  • numpy

To run the benchmark,

  1. Download the data
  2. Modify SETTINGS.json to point to the training and validation data on your system, as well as a place to save the trained model and a place to save the submission
  3. Train the model by running python train.py
  4. Make predictions on the validation set by running python predict.py
  5. Make a submission with the output file

This benchmark took approximately 1.5 hours to execute on a Windows 8 laptop with 8GB of RAM and 4 cores at 2.7GHz.

If you run into issues with execution time or memory usage, you can make the model run faster and use less memory by doing the following:

  • Reduce the n_estimators parameter on RandomForestRegressor in train.py to 10
  • Reduce the max_features parameter on CountVectorizer in train.py to 20
  • Set the nrows parameter to the pd.read_csv function in data_io.py to 10000 (currently not set)

jobsalaryprediction's People

Contributors

benhamner avatar

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.