Code Monkey home page Code Monkey logo

airline-fare-prediction's Introduction

Airline Price Predictor

EDA & ML Practice

Checklist

Cleaning and Processing of Data

  • Import libraries

  • Load dataset

  • Check for missing values

  • Drop unnecessary features

  • Rename features

  • Reorder featuress

  • Change data types

    • Change flight_date to "datetime" in yyyy-mm-dd format
    • Change flight_dep and flight_arr to "datetime" in HH:MM format
    • Change total_stops to "int" from categorical values
    • Change flight_time to "datetime" in HH:MM format
    • Change flight_fare to "int"
  • Fix reapeated values in some features

    • Fix feature airline_name, i.e,: "Air Asia" to "AirAsia"
    • Fix features flight_dep and flight_arr, i.e,: "BOM" to "Mumbai"
  • Encode features for data Analysis

    • Extract months and days from flight_date
    • Extract hours and mins from dep_time and arr_time
    • Extract hours and mins from flight_time
    • Convert airline_nameto numerical data
    • Connvert flight_dep to numerical data
    • Convert flight_arrto numerical data

Exploratory Data Analysis

  • Considering simplifying features name i.e.: flight_fare to price, etc.

    • Change flight_fare to price
    • Change flight_time to duration
    • Change airline_name to airline
    • Change flight_dep to dep
    • Change flight_arr to arr
  • Create test data

    • Split data
    • Feauture selection for prediction
  • Hypertune Model

    • Using Random Search Cross-Validation
    • Using Grid Search Cross-Validaton

Price Prediction using Machine Learning

airline-fare-prediction's People

Contributors

maco-data 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.