Skip to main content

Zero-shot predictive machine learning platform powered by Tabular Foundation Models (TabFM)

Project description

tabengine — Zero-Shot Tabular ML SDK

PyPI Version License

tabengine is an open-source Python library for zero-shot predictive machine learning on tabular data. Powered by Tabular Foundation Models (TabFM) and sub-10ms distance retrieval kernels (DuckDB), it replaces traditional XGBoost model training and hyperparameter tuning pipelines with real-time in-context learning.


⚡ Quickstart

1. Installation

pip install tabengine

2. Zero-Shot Classification

import pandas as pd
from tabengine import ZeroShotClassifier

# Historical context dataframe
df = pd.DataFrame({
    'monthly_active_days': [28, 2, 22, 5, 29],
    'support_tickets': [1, 8, 2, 6, 0],
    'account_tier': ['Enterprise', 'Basic', 'Pro', 'Basic', 'Enterprise'],
    'churn_status': ['Retained', 'Churned', 'Retained', 'Churned', 'Retained']
})

# Initialize Zero-Shot Classifier (0 seconds spent training model parameters)
model = ZeroShotClassifier(target="churn_status")
model.fit(df)

# Predict on new query row
query_row = {
    'monthly_active_days': 3,
    'support_tickets': 7,
    'account_tier': 'Basic'
}

# Get prediction with explanation & retrieved context rows
explanation = model.predict_with_explanation(query_row)
print("Prediction:", explanation["prediction"])
print("Confidence:", explanation["confidence"])
print("Top Matching Context Row:", explanation["top_contexts"][0])

3. Zero-Shot Regression

from tabengine import ZeroShotRegressor

# Real estate price valuation example
model = ZeroShotRegressor(target="price")
model.fit(real_estate_df)

predicted_price = model.predict([{"sqft": 1650, "beds": 3, "baths": 2}])
print(f"Predicted Price: ${predicted_price[0]:,.2f}")

📄 License

Apache License 2.0. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tabengine-0.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tabengine-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file tabengine-0.1.0.tar.gz.

File metadata

  • Download URL: tabengine-0.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tabengine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e6cf73687841fd81d7c03c3d50846c10d07cd7d284e58f01ec1c05b275145209
MD5 78953be89d54df5f4687c1d318299005
BLAKE2b-256 a33e14aba045b4e971e5c9f52a6c8929d6c5c71a5017578ec5974ca348be2134

See more details on using hashes here.

File details

Details for the file tabengine-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tabengine-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tabengine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5dc152d8b55bebbb1cee064316da56a9e1f3d2542f3fa770f9286855efbea1fa
MD5 717c6715c917ddbc118ab95c8c5a8aae
BLAKE2b-256 a6c1b43022673829fff02a13c75ebd33e9b9c664480a9f5b812d891b308053b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page