GithubHelp home page GithubHelp logo

songinpyo / used-car-price-regression-dacon Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.6 MB

Predict used car price with car information. This is competition held in DACON

Jupyter Notebook 100.00%
python pytorch

used-car-price-regression-dacon's Introduction

Used-Car-Price-Regression-DACON

Predict used car price with car information. This is competition held in DACON

Competition link : You can get Dataset from this link

https://dacon.io/competitions/official/235901/overview/description

image

Key Idea

Preprocessing key idea was transforming 'object' data to 'int' data.

Predict 'target' data with 'Pytorch DNN' and 'Pycaret Auto ML'

Tuning hyper parameter with 'Optuna'

Data set

Train data has 'title', 'odometer', 'location', 'isimported', 'engine', 'paint', 'year', 'target' columns

Test data has 'title', 'odometer', 'location', 'isimported', 'engine', 'paint', 'year' columns.

Code example

models = [
    ('LGBMRegressor',LGBMRegressor(n_estimators=800,max_depth=13, learning_rate=0.01,subsample=0.7,random_state=0)),
    ('XGBRegressor',XGBRegressor(n_estimators=1600,max_depth=13,learning_rate=0.02,random_state=0,subsample=0.7,verbosity=0)),
    ('CatBoostRegressor',CatBoostRegressor(n_estimators=800,max_depth=10,learning_rate=0.02,subsample=0.8,random_state=0,verbose=0)),
    ('GradientBoostingRegressor',GradientBoostingRegressor(n_estimators=1200,max_depth=9,learning_rate=0.01,subsample=0.8,random_state=0)),
    ('ExtraTreesRegressor',ExtraTreesRegressor(n_estimators=500,max_depth=9,random_state=0,criterion='mse')),
    ('RandomForestRegressor',RandomForestRegressor(n_estimators=4000,max_depth=9,random_state=0,criterion='mse'))]
    
for name, model in models:
    model.fit(x_train, y_train)
    print(f'{name}: ', NMAE(y_val,model.predict(x_val)))

Future work

It could be better to change 'odometer' int data into categorical data.

Example) from 0 to 10000 = 0, from 10000 to 20000 = 1 ...

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.