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.1.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.1.0
File Size Uploaded
imote-0.1.0.tar.gz 1.9 MB Details

Built distribution (wheel)

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

Total release size: 3.9 MB

Release files / imote-0.1.0.tar.gz

Download URL imote-0.1.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
018890413c932934aa57c3e214f7b093e32ea38de36842ee4c79209142d3c548
BLAKE2b-256 checksum
How to use checksums
06f1f6c7a2347d7b20a7ae0113e60ac6c047727fae76e84f71b334f06826fb69
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.1.0-py3-none-any.whl

Download URL imote-0.1.0-py3-none-any.whl
Size 2.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
faae5c6d4e6836b4ed3873a48592659243cc80e37f40b92ebc06ca42ac34fec8
BLAKE2b-256 checksum
How to use checksums
eb7f8462498424d4c7ec535a1e2e690444ef36b1b93807e05d597d574c7ed5b7
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

This release

0.1.0 This release

2 release files

0.0.0

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