Skip to content

mauropelucchi/PumpIt-DrivenData

Repository files navigation

PumpIt-DrivenData

This repository contains R and SAS code for the Pump it Up: Data Mining the Water Table competition on Driven Data by Giorgio De Caro and Mauro Pelucchi.

The data is provided by Taarifa and the Tanzanian Ministry of Water. The original goal is to predict whether a water pump is functional, functional but needs repairs or non functional. During the Master BI and Big Data Analytics@University of Milano Bicocca, we have presented this work as project of Data Mining course: the target is to predict witch waterpoint is to repare (vs no-repare).

For SAS we use SAS Base (for pre-processing) and SAS Miner. In R, we use H2O's random forest to get a score 0.76. We also used a XGB.

In the repository you can find:

  • PumpIt_Presentation.pdf : the presentation of the final work with all details
  • preprocessing_and_xgb.R : the R code for preprocessing and XGB model
  • randomforest.r : the R code for H2O Random Forest
  • preprocessing_binary.r : the R code for preprocessing and XGB model with binary target (to repare / no repare)
  • randomforest_binary.r : the R code for H2O Random Forest with binary target (to repare / no repare)

The original file from drivendata.org:

  • training_set.csv : the training set
  • training_set_labels.csv : labels for training set
  • test_set_values.csv : score set
  • SubmissionFormat.csv : submission format from drivendata competition

For SAS:

  • sas_code.sas : the SAS code for data exploration and preprocessing
  • PumpIt2.zip : the SAS Miner Project

On CartoDB there are a lot of nice maps:

And the final work (for binary classification model):

License

This repository is released under the MIT license.

Copyright (c) Giorgio De Caro and Mauro Pelucchi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

PumpIt@DrivenData

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published