Giter Site home page Giter Site logo

ml_project's Introduction

Preprocessing techniques

  1. Imputed following categorical features with most frequent value quantity,management_group,source_class, basin, payment, payment_type, permit, quantity_group, water_quality, quality_group, region, extraction_type_group, extraction_type, source, source_type, waterpoint_type, waterpoint_type_group, scheme_management, subvillage, ward, wpt_name

  2. Imputed following categorical features with constant lga, installer, funder,extraction_type_class, management.

  3. Imputed all numerical features with mean.

  4. Scale all numerical features using StandardScaler

Feature Engineering techniques

  1. Created new features year_recorder, yearly_week_recorder, month_recorder using date_recorded and construction_year.

  2. Created a new feature age by subtracting date_recorded and construction_year.

  3. Created two new features distance and angle using latitude and longitude.

  4. Created two new features distance_pca0 and distance_pca1 by applying Principal Component Analysis to latitude and longitude.

  5. Applied OneHot Encoding for following features quantity,management_group,source_class

  6. Applied Target Encoding for following features lga, installer, funder,extraction_type_class, management

  7. Applied Label Encoding for following features basin, payment, payment_type, permit, quantity_group, water_quality, quality_group, region, extraction_type_group, extraction_type, source, source_type, waterpoint_type, waterpoint_type_group, scheme_management, subvillage, ward, wpt_name

  8. Mutual Information scores used to select most appropriate features to train the model as feature selection technique.

Model Selection

  1. Initially used XGBClassifier, RandomForestClassifier and CatBoostClassifier. Finally selected RandomForestClassifier as the model to do experiments as it give best results in the selection process.

Proof of submission

Sub_Proof

Final Rank

1643

Final Score

0.8169

ml_project's People

Contributors

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