Giter VIP home page Giter VIP logo

flights_price_prediction's Introduction

Expedia Flights Price Prediction

Google Cloud Set-up

We have run most of our models and feature engineering on Google Cloud, so please create a Storage Bucket and create a Dataproc Cluster with the most basic setup will be fine to run our code.

Data

Here is the link to the data: https://drive.google.com/drive/folders/1FfiXmYoKsALp3t3KFBPv7bHqpqYP0p5v?usp=sharing. Upload the files needed to the storage bucket For testing the code, you can use the smallest data and all the following .py files have already set to run this csv: itineraries_sample_small.csv

Step 1: feature.py

Submit the file via jobs (You can change the file and output path on line 66-67)

Step 2: Models

Submit the file via jobs (You can change the file and output path on line 14):

  • linear_regression.py
  • decision_tree.py
  • random_forest.py
  • GBT.py
  • xgboost.py
  • NN.py

Step 3: Outputs

The outputs can be viewed in the 'gs://final_project_flights/notebooks/jupyter/output/' folder.

Step 4: Jupyter notebooks

  • You can also run the jupyter notebook to see the results (milestone4_models.ipynb).
  • The XGBoost is run on Azure (milestone4_XGBoost.ipynb).
  • We have also explored more on MCAR, MNAR, or MAR, predicting conditioned on ‘totalTravelDistance’ to see if within a certain ‘totalTravelDistance’ bin like flights >x # miles for example, how successful you would be in predicting the cheaper and more expensive flights within that given how important ‘totalTravelDistance’ was to RF prediction (milestone4_other.ipynb).

flights_price_prediction's People

Contributors

rundstedtzz avatar

Watchers

 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.