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.1.tar.gz (7.8 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.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tabengine-0.1.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for tabengine-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e7ba0e5b9d7c5372cb22563a5ceebe8f4417e8296f44692baf41802110d2ad33
MD5 5354b697ec610f8038cd1a9d3024488a
BLAKE2b-256 1810945030600ea1082a939315d8b485f84fb6c41a7b628cba16bdf85b28e62c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabengine-0.1.1.tar.gz:

Publisher: publish-pypi.yml on tabengine-ai/tabengine-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: tabengine-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for tabengine-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a14c35d34085635be3d7534508e9bffab2f5470015844f67f40e989307de1970
MD5 1143e71a1414d7322fe31e89308d5127
BLAKE2b-256 84b9984f97e3d46a0db898ad0d89a7109c9e4adfd80aa8743a01638c831423f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabengine-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on tabengine-ai/tabengine-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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