Git Product home page Git Product logo

iml's Introduction

Interpretable Machine Learning Seminar

Project code for the Interpretable Machine Learning (IML) Seminar using the Ames Housing Prices dataset.

Dataset & Overview

The dataset for this project can be found here in our repository, or be downloaded directly from Kaggle.

If you want to recreate the analysis set the working directory to the project folder. Then you can run the following files in this order:

File Content
cleaning_train.R Data cleaning and pre-processing. Called by simple_models.R and xgboost_train.R to get the ready-to-use dataset (see section 1 in the report).
simple_models.R Implementation and performance results of our 3 baseline (interpretable) models (see section 2 in the report).
xgboost_train.R Implementation and performance results of our black box model - XGBoost. Saves the model for future use for our IML methods (see section 2 in the report).
outlier_detection.R Analyze the dataset for presence of outliers (see section 3 in the report).
outlier_analysis.R More in-depth look at the detected outliers (see section 3 in the report).
feature_importance.R Implementation of feature importance algorithms for XGBoost and Linear Regression (see section 4.1 in the report).
specific_hypotheses.R Analysis of hypotheses related to specific features (see section 4.2 in the report)
specific_points.R Analysis of hypotheses related to specific points (see section 4.3 in the report)

Files also contain extensive commentary for better code flow comprehension.

Software Requirements

The following module versions (or above) are required to reproduce the code:

R = 4.0.3

Data Cleaning and Preprocessing

dplyr = 1.0.2
plyr = 1.8.6
tidyverse = 1.3.0
readr = 1.4.0
ggplot2 = 3.3.2
corrplot = 0.84
caret = 6.0.86
Hmisc = 4.4.2
Metrics = 0.1.4
viridis = 0.5.1
partykit = 1.2.11
variables = 1.0.3
forcats = 0.5.0
data.table = 1.14.0

Models

xgboost = 1.2.0.1
rpart = 4.1.15
rpart.plot = 3.0.9
glmnet = 4.0.2
cmaes = 1.0.11
mlr = 2.18.0
mlrCPO = 0.3.7

Interpretable ML Methods

iml = 0.10.1
SHAPforxgboost = 0.1.0
featureImportance = 0.9

Counterfactuals

Require a manual installation from github! The github repository can be found here. The necessary packages are counterfactuals and the corresponding version of the iml package, which is different from the one listed above. We manually call the respective packages in our code (see specific_points.R).

iml's People

Contributors

daniel-rac avatar adamolko 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.