Metadata-Version: 2.4
Name: causilo
Version: 1.5.0
Summary: Tabular classification and regression with a scikit-learn API
Author-email: "Nums AI Inc." <contact@nums.world>
License-Expression: Apache-2.0
Project-URL: Repository, https://github.com/nums-ai/causilo
Project-URL: Issues, https://github.com/nums-ai/causilo/issues
Project-URL: Models, https://huggingface.co/nums-ai/causilo-1.5
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: <3.15,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: torch>=2.13
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: scipy
Requires-Dist: scikit-learn>=1.6
Requires-Dist: safetensors>=0.8
Requires-Dist: huggingface-hub>=0.28
Requires-Dist: psutil
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Requires-Dist: joblib; extra == "dev"
Dynamic: license-file

<h1 align="center">
  <picture>
    <source media="(max-width: 640px)" srcset="https://raw.githubusercontent.com/nums-ai/causilo/main/docs/assets/causilo-banner-compact.png">
    <img src="https://raw.githubusercontent.com/nums-ai/causilo/main/docs/assets/causilo-banner.png" alt="Causilo 1.5. A New Standard for Prediction." width="100%">
  </picture>
</h1>

<p align="center">Tabular classification and regression with a scikit-learn API.</p>

<p align="center">
  <a href="https://pypi.org/project/causilo/"><img src="https://img.shields.io/pypi/v/causilo?label=PyPI&amp;color=brightgreen&amp;style=flat" alt="Causilo package version on PyPI"></a>
  <a href="#documentation"><img src="https://img.shields.io/badge/Docs-Python-blue?style=flat" alt="Causilo Python documentation"></a>
  <a href="https://arxiv.org/abs/2609.22866"><img src="https://img.shields.io/badge/Technical%20report-arXiv-913f47?style=flat" alt="Causilo Technical Report on arXiv"></a>
  <br>
  <a href="#license"><img src="https://img.shields.io/badge/License-Code%20%2F%20weights-646b73?style=flat" alt="Code and model weights licenses"></a>
  <a href="https://nums.world/"><img src="https://img.shields.io/badge/Nums%20AI-Website-283442?style=flat" alt="Nums AI website"></a>
  <a href="#installation"><img src="https://img.shields.io/badge/Python-3.10%E2%80%933.14-646b73?style=flat" alt="Python 3.10–3.14"></a>
  <a href="#installation"><img src="https://img.shields.io/badge/PyTorch-2.13%2B-646b73?style=flat" alt="PyTorch 2.13 or newer"></a>
</p>

## Quick start

### Installation

Install [Causilo 1.5 from PyPI](https://pypi.org/project/causilo/1.5.0/).

```sh
python -m pip install causilo==1.5.0
```

The first `fit` downloads the [public Causilo 1.5 checkpoint](https://huggingface.co/nums-ai/causilo-1.5) for the estimator's task. No Hugging Face account is required.

### Classification

```python
from causilo import CausiloClassifier

clf = CausiloClassifier()
clf.fit(X_train, y_train)
labels = clf.predict(X_test)
```

### Regression

```python
from causilo import CausiloRegressor

reg = CausiloRegressor()
reg.fit(X_train, y_train)
predictions = reg.predict(X_test)
```

**Causilo 1.5** uses the full training context by default. Set `mode="light"`
on either estimator for **Causilo 1.5 (Light)**. To sample from larger tables,
set `max_context=200_000`. Set `model_version="1.0"` to use **Causilo 1.0**.

`fit` prepares preprocessing and an inference context from your labeled table. `predict` uses that context with fixed model weights.

## Benchmarks

![Benchmark Elo across ten benchmarks on the left and the TabArena speed–quality frontiers on the right. Gray shows official peers and purple adds Causilo.](https://raw.githubusercontent.com/nums-ai/causilo/main/docs/assets/benchmark-overview.png)

Both frontiers use one Elo fit across all 816 official splits, with 112 official models and four Causilo settings. The chart shows the ten official peers with published timings. Causilo times were measured on RTX PRO 6000 with KV cache off. Peer totals are estimated from published per-dataset timings and use the peers’ own cache settings. The table’s TabArena scores compare Default and Light together.

[Pareto data](https://huggingface.co/nums-ai/causilo-1.5/blob/4ca2275bae85014a19422e8c18fcf8f24c5c14e1/benchmarks/tabarena/pareto-comparison.csv) · [Detailed results and evaluation protocols](https://huggingface.co/nums-ai/causilo-1.5/blob/4ca2275bae85014a19422e8c18fcf8f24c5c14e1/benchmarks/README.md)

## Documentation

[Python inference](https://github.com/nums-ai/causilo/blob/main/docs/inference.md) · [Checkpoints](https://github.com/nums-ai/causilo/blob/main/docs/checkpoints.md) · [Examples](https://github.com/nums-ai/causilo/blob/main/examples/)

## License

Code is licensed under [Apache-2.0](https://github.com/nums-ai/causilo/blob/main/LICENSE).

Causilo 1.5 weights are licensed under the [Nums AI Model License](https://huggingface.co/nums-ai/causilo-1.5/blob/4ca2275bae85014a19422e8c18fcf8f24c5c14e1/LICENSE).

## Citation

If you use Causilo in research, please cite:

```bibtex
@misc{cho2026causilotechnicalreport,
  title={Causilo Technical Report},
  author={Minyong Cho and Minho Jeong and Dooho Lee and Jinmo Lee and Jaemin Yoo},
  year={2026},
  eprint={2609.22866},
  archivePrefix={arXiv},
  primaryClass={cs.LG},
  url={https://arxiv.org/abs/2609.22866},
}
```
