Coder Social home page Coder Social logo

rajsingh7 / airfare_prediction_and_classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashishpatel26/airfare_prediction_and_classification

0.0 0.0 0.0 174.06 MB

A machine learning exercise presenting a simple model for (1) prediction of airfares from the data contained in the search query using linear support vector regression implementation sklearn.SVM.LinearSVR and (2) classification of flight itinerary search results by likelihood the returned fare will ultimately be purchased by the consumer, using simple Naive Bayes implementation in sklearn.

License: GNU General Public License v3.0

Jupyter Notebook 100.00%

airfare_prediction_and_classification's Introduction

Airfare prediction and classification

A machine learning exercise presenting a simple model for

  • (1) prediction of airfares from the data contained in the search query using linear support vector regression implementation sklearn.SVM.LinearSVR.
  • (2) classification of flight itinerary search results by likelihood the returned fare will ultimately be purchased by the consumer, using simple Naive Bayes implementation in sklearn.

Getting Started

The discussion is contained in the two ipython notebooks

  • fare_regression.ipynb
  • booking_classifier.ipynb.

These files contain code that will mostly work out of the box, but that depends on the existence of three csv files containing datasets in the working directory:

  • airport_data.csv
  • booking_data.csv
  • search_data.csv

Due to github filesize restrictions, search_data.csv was partitioned and zipped. To recover the original search_data.csv file, simply run the following to generate search_data.csv

me@myshell $ unzip search_data_1.zip && unzip search_data_2.zip && cat search_data_1.csv search_data_2.csv > search_data.csv && du -h

The output should look like

search_data.csv
Archive:  search_data_1.zip
  inflating: search_data_1.csv
Archive:  search_data_2.zip
  inflating: search_data_2.csv
581M	search_data.csv

You should be ready to go.

me@myshell $ jupyter notebook fare_regression.ipynb &
me@myshell $ jupyter notebook booking_classifier.ipynb &

airfare_prediction_and_classification's People

Contributors

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