Giter VIP home page Giter VIP logo

comp551_assignment1's Introduction

comp551_assignment1

Implementation of Linear Regression Predictor

Preprocessing

The preprocessing stage:

  • Removes the pace column
  • Filters out unknown genders
  • Removes the 2013 data
  • Converts the time to a numerical format
  • Organizes the ages into group ranges
  • Removes duplicates among years by averaging their results

In order to generate the data for Y1-naive bayes:

python generate-naive.py

In order to generate the data for Y1-logistic regression:

python generate-logistic.py

In order to generate the data for Y2:

python generate_Y2.py

In order to generate the data for futrue Prediction:

python generate_PREDICTION.py

Predicting Participation

Logistic Regression

The files training_x.csv, training_y.csv, test_x.csv and test_y.csv must be available from the generate Y1-logistic step.

python LogisticRegression.py

Gaussian Naive Bayes

The files train_x.csv, train_y.csv, test_x.csv and test_y.csv must be available from the generate Y1-naive step.

python naive_bayes.py

Predicting Time

The files Y2Y_train.csv, Y2Y_test.csv, Y2X_test.csv, Y2X_train.csv must be avilable from the generate Y2 step.

python linear_regression.py

comp551_assignment1's People

Contributors

ralphbs avatar sneha-desai avatar

Watchers

James Cloos avatar Michael Golfi avatar  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.