Skip to main content

omega-models

Omega Models is a Python package that provides a collection of generated machine learning classifiers with a scikit-learn style API.

Install

pip install omega-models

Quick start

from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
from omega_models import AdaptiveAbstractionForest

X, y = load_breast_cancer(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

model = AdaptiveAbstractionForest()
model.fit(X_train, y_train)
print("accuracy:", model.score(X_test, y_test))

More examples

from sklearn.datasets import load_wine
from sklearn.model_selection import train_test_split
from omega_models import DirectionalForest

X, y = load_wine(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, random_state=0)

model = DirectionalForest(n_estimators=200)
model.fit(X_train, y_train)
preds = model.predict(X_test)
print(preds[:10])
from sklearn.datasets import load_digits
from sklearn.model_selection import train_test_split
from omega_models import ResidualMLPEnsemble

X, y = load_digits(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=7)

model = ResidualMLPEnsemble()
model.fit(X_train, y_train)
print("score:", model.score(X_test, y_test))

Available models

The public API re-exports models for convenient imports:

  • AdaptiveAbstractionForest
  • AdaptiveAggressivenessClassifier
  • AdaptiveDensityWeightedClassifier
  • AdaptiveResidualLearningClassifier
  • DimAwareForest
  • DirectionalForest
  • ResidualMLPEnsemble

Requirements

  • Python 3.6+
  • NumPy, SciPy, scikit-learn

License

MIT License. See LICENSE.

Metadata

Release files for omega-models 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omega-models 0.4.4
File Size Uploaded Provenance
omega_models-0.4.4.tar.gz 17.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for omega-models 0.4.4
File Interpreter ABI Platform
omega_models-0.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 41.4 kB

Release files / omega_models-0.4.4.tar.gz

Download URL omega_models-0.4.4.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6c5da2e09ab5d716626f061e851944a21564f607141b773586d3669c20c2234
BLAKE2b-256 checksum
How to use checksums
cf7a98616a3c22b7f66ed108f94c083365d5492abff1cc343489d6ce529de377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / omega_models-0.4.4-py3-none-any.whl

Download URL omega_models-0.4.4-py3-none-any.whl
Size 23.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
478c968fcac54c91e187601ea61276f72db1b5398f166861b5276370a562970e
BLAKE2b-256 checksum
How to use checksums
2efaad92a696455c35d3808d481c2db58fda75fde57e0b71651115151efa4f56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for omega-models 0.4.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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