Coder Social home page Coder Social logo

linear-feature-engineering's Introduction

Project 1: Linear Feature Engineering

This repo consists of codebase for linear feature engineering, the first project for Quantitative Foundations. We use Linear Regression as the learning algorithm. The training data in traindata.txt consists of 926 data points with 8 features and 1 output real value. And, the test data in testinputs.txt consists of 103 data points. Since, the number of training data points is extremely low, we rely on cross validation to avoid overfitting.

To run the codebase, follow the steps below.

  1. Install the dependencies using the following command.
pip install -r requirements.txt
  1. The predictions made by our best least squares model are already dumped to reports/prediction_results.csv file. In order to regenerate the test predictions, using the obtained best model, run the following command. It will write the results to the file.
python main.py --mode test
  1. Run the training pipeline using the following command. It will search the best feature expansion and writes a training visualization of validation MSE scores against different basis settings and the predictions on test set inside results directory.
python main.py --mode train
  1. To visualize the analysis done on the data, run the following command. The visualization results are dumped inside data_viz directory.
python main.py --data-analysis True

linear-feature-engineering's People

Contributors

abhinab303 avatar thapa-jeevan avatar

Stargazers

 avatar

Watchers

 avatar  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.