Skip to main content

A collection of generated machine learning algorithms

Project description

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.

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

omega_models-0.4.4.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

omega_models-0.4.4-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file omega_models-0.4.4.tar.gz.

File metadata

  • Download URL: omega_models-0.4.4.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for omega_models-0.4.4.tar.gz
Algorithm Hash digest
SHA256 f6c5da2e09ab5d716626f061e851944a21564f607141b773586d3669c20c2234
MD5 ad6670b3325056ec6b31fb43ced8e167
BLAKE2b-256 cf7a98616a3c22b7f66ed108f94c083365d5492abff1cc343489d6ce529de377

See more details on using hashes here.

File details

Details for the file omega_models-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: omega_models-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for omega_models-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 478c968fcac54c91e187601ea61276f72db1b5398f166861b5276370a562970e
MD5 7c51f769e152f9a4979ccb33f8028701
BLAKE2b-256 2efaad92a696455c35d3808d481c2db58fda75fde57e0b71651115151efa4f56

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