Skip to content

Machine Learning model to predict Accident Risk Index by using area/district level accident data

License

Notifications You must be signed in to change notification settings

hariprasath-v/Machinehack_predict_accident_risk_score_for_unique_postcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machinehack_predict_accident_risk_score_for_unique_postcode

Competition hosted on MACHINEHACK

About

Machine Learning model to predict Accident Risk Index by using area/district level accident data.

Competition Public LB Rank:201 & Private LB Rank:200

Final Score 0.6497

Evaluation Metric is Mean squared error.

File information

  • MH_predict_accident_risk_score_for_unique_postcode_EDA.ipynb

    Packages Used,

     * seaborn
     * Pandas
     * klib
     * Numpy
     * Matplotlib
     * re
    

    Basic Exploratory Data Analysis

  • MH_predict_accident_risk_score_for_unique_postcode_Model.ipynb

    Packages Used,

      * Sklearn
      * re
      * Pandas
      * Numpy
      * Matplotlib
      * pycaret
      * shap
    

    Data Pre-processing

    Created pycaret voting regressor model.

    Model interpretation with shap

Residuals Plot

Alt text

Prediction Error Plot

Alt text

Pycaret Feature Importance Plot

Alt text

SHAP Feature Importance

Alt text

SHAP Feature Impact

Alt text

SHAP Feature Impact on Single observation

Alt text