Skip to content

a hierarchical VIsualization tool for Tree Ensemble

License

Notifications You must be signed in to change notification settings

gditeodoro/VITE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VITE

a hierarchical VIsualization tool for Tree Ensemble.

This repository contains the source code and the data related to the paper "Unboxing Tree Ensembles for Interpretability: A Hierarchical Visualization Tool and A Multivariate Optimal Re-Built Tree" by Giulia Di Teodoro, Marta Monaci and Laura Palagi, only for the visualization tool for tree ensemble. In particular, it contains the code for displaying the VITE plot in case you want to visualize a Random Forest.

Install

You can clone the repository and install the package in your Python environment as follows:

git clone https://github.com/gditeodoro/VITE.git
pip install .

Requirements

The file requirements.txt reports the list of packages that must be installed to run the code. You can add a package to your environment via pip or anaconda using either pip install "package" or conda install "package".

Configuration and running

You just need to run main.py. The parameters are set according to the experiments in the paper, but you can simply modify them via main.py. The parameters that can be setted according to your needs are the following:

max_depth = ...
test_size= ...
max_features= ...
n_estimators= ...

x_tr, y_tr, x_ts, y_ts,data,scaler = readData("data/...",test_size=test_size)

In the folder data there are the dataset from UCI ML repository, used for experiments in the paper.

Results

The output visualizations can be found in folder figure/.

Examples

These are examples of the visualizations obtained in the case of the Cleveland database when training a Random Forest (RF) with maximum depth 3, 100 estimators and giving the RF the possibility to choose among all the possible features when looking for the best split at each node.

Team

Contributors to this code:

License

License: MIT

  • MIT License
  • Copyright 2022 © Giulia Di Teodoro, Marta Monaci

About

a hierarchical VIsualization tool for Tree Ensemble

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages