Giter Site home page Giter Site logo

shipment-price-prediction's Introduction

SHIPMENT PRICE PREDICTION

The market for supply chain analytics is expected to develop at a CAGR of 17.3% from 2019 to 2024,more than doubling in size

The main goal is to predict the supply chain shipment pricing

Screenshots

Alt text

Dataset

https://www.kaggle.com/divyeshardeshana/supply-chain-shipment-pricing-data

Installation

  • Create a new environment

  • Copy the downloaded files or clone the files from github to your environment

  • pip3 install -r requirements.txt

  • python app.py

Data Preprocessing and Feature Engineering

  • Some values of column Weight and Freight price were mapped to a specific Id in the dataset like See DN-4307 (ID#:83920) so using some custom function retrived the values from the column

  • The null value was filled by using median value

  • Outliers were removed by using IQR

  • Created a new feature distance ie., distance from the manufacturing country to destination country, for that used Geopy to get the latitude and longitude of different countries to get the distance

  • Few features were dropped using correlation

Model Creation and Model Selection

  • The categorical values were encoded using Category Encoders library

  • Used Linear Regression as a base model score

  • For advanced model selection and hyperparameter tuning I used FLAML AutoML and chose ExtraTreesRegressor as the best model with a R2 score of 85.01% and RMSE of 3391.33 on the test dataset

Deployment

Deployed in Heroku

https://shipment-price-prediction.herokuapp.com/

shipment-price-prediction's People

Contributors

xx-craziness-xx 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.