Skip to main content

Featune

Auditable feature search for tabular data. Featune proposes features through a constrained DSL, evaluates them with cross-validation, records each trial, and exports a fitted scikit-learn pipeline. Random and evolutionary search work without an LLM; Anthropic Messages and OpenAI Chat Completions are optional proposal sources.

Install

pip install featune

Python 3.10 or newer is required. The default model uses pinned TabPFN-2 weights downloaded on first use; the weights are not included in this package. Review NOTICE and the model licenses in LICENSES/ before using TabPFN. TabPFN-3.5 is an opt-in model with separate access and use restrictions.

Minimal example

import pandas as pd
from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_split
import featune

data, labels = make_classification(
    n_samples=120, n_features=2, n_informative=2, n_redundant=0, random_state=42
)
X = pd.DataFrame(data, columns=["signal_a", "signal_b"])
y = pd.Series(labels)
schema = featune.DatasetSchema(
    fields=[
        featune.FieldSchema(name="signal_a", description="First synthetic signal"),
        featune.FieldSchema(name="signal_b", description="Second synthetic signal"),
    ],
    objective="Predict a synthetic binary label",
)
train, test = train_test_split(range(len(X)), stratify=y, random_state=42)
study = featune.create_study(metric="auc", sampler=featune.RandomSampler(seed=42))
study.optimize(X.iloc[train], y.iloc[train], schema, evaluator=featune.CVEvaluator(cv=2), n_trials=1)
print(study.trials_dataframe())

Use a larger dataset and reserve an untouched test set for real evaluation. See the English notebook, Chinese notebook, and API guide. LLM credentials are read from FEATUNE_API_KEY; keep them outside source files and notebooks.

Featune source code is MIT licensed. TabPFN code and model weights have separate licenses; see the included notices. Generated pipelines may retain training data and should be handled accordingly.

Metadata

Release files for featune 1.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 featune 1.0.0
File Size Uploaded
featune-1.0.0.tar.gz 604.1 kB Details

Built distribution (wheel)

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

Total release size: 706.4 kB

Release files / featune-1.0.0.tar.gz

Download URL featune-1.0.0.tar.gz
Size 604.1 kB
Tags Source
SHA-256 checksum
How to use checksums
43fcabdae22bc030e308d959e129aa7351b1a1322b1d0be5e70340a26f32bc0d
BLAKE2b-256 checksum
How to use checksums
e5f9163cec07b9e5ae260cdb191f1a12c67ac12652c53964b5e983f8401df672
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release files / featune-1.0.0-py3-none-any.whl

Download URL featune-1.0.0-py3-none-any.whl
Size 102.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7533b0af08e9ca3b644bd75bd5811a6ce05d7f4ce71ffb085c7a7ee56ffb499f
BLAKE2b-256 checksum
How to use checksums
df944dca7a7605fa6b1dc498945fc8a21711afec4c81cb199673d03ad4ed7b5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.0

2 release files

This release

1.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