Skip to main content

IMoTE: Interactive MOdel Tree Explorer

IMoTE is an interactive app to fit, visualise and explore linear model trees for regression. Inspect the tree as an interactive graph, see the linear model and data behind every node, and trace a single data point through the tree to understand its prediction.

IMoTE: the tree graph with the interaction cards on the right

Overview

IMoTE supports two linear model tree algorithms out of the box:

  • PILOT (PIecewise Linear Organic Tree): a fast linear model tree algorithm, using the fast-model-trees implementation.
  • M5: the classic model tree algorithm, using m5py.

Trees fitted with other tools can be loaded by writing an adapter. A partykit (R) adapter is included as an example.

Installation

pip install imote

IMoTE needs Python 3.10 or newer.

Quick start

Start the app

imote

Then open the address shown in the terminal (by default http://127.0.0.1:8050). From the New Tree card you can fit PILOT or M5 on a built-in dataset or on your own CSV file.

IMoTE stores saved trees, uploaded datasets and generated plots in ~/.imote. Set the IMOTE_HOME environment variable to use another folder.

Documentation

The full documentation, with a guide to every part of the interface and how to write your own adapter, is at https://stan-uantwerp.github.io/IMoTE/.

Papers

  • PILOT: Raymaekers, J., Rousseeuw, P. J., Verdonck, T., & Yao, R. (2024). Fast linear model trees by PILOT. Machine Learning, 113(9), 6561-6610. https://doi.org/10.1007/s10994-024-06590-3
  • M5: Quinlan, J. R. (1992). Learning with continuous classes. In 5th Australian Joint Conference on Artificial Intelligence (Vol. 92, pp. 343-348).

Development

git clone https://github.com/STAN-UAntwerp/IMoTE
cd IMoTE
pip install -e ".[dev]"   # IMoTE in editable mode, plus pytest, build and twine
python -m imote.app       # start the app in Dash debug mode, it reloads on code changes

To work on the documentation: pip install -e ".[docs]", then mkdocs serve.

License

MIT, see LICENSE.

Metadata

Release files for IMoTE 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for IMoTE 0.0.0
File Size Uploaded
imote-0.0.0.tar.gz 1.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for IMoTE 0.0.0
File Interpreter ABI Platform
imote-0.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.8 MB

Release files / imote-0.0.0.tar.gz

Download URL imote-0.0.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
ef02bb91a93ae8d50ed4e2d295bbfb0ac05e7d345a120df9fce0db197cddeccd
BLAKE2b-256 checksum
How to use checksums
54dbeba82c2076a71618798883f7c0fc77b5ae4e20f03b6e6859f430a4265e23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / imote-0.0.0-py3-none-any.whl

Download URL imote-0.0.0-py3-none-any.whl
Size 2.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3875d8c1900317f00f00217508b48c4cbfb0cae8753555550d42457a8da04ffa
BLAKE2b-256 checksum
How to use checksums
ffacbaa0dfd75c7c646d2a4d93ad5ba5db5920aeeb89d4c62a52f6ea2e8a95eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

0.1.1

2 release files

0.1.0

2 release files

This release

0.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page