Skip to main content

Under construction! Algorithm selection framework

Project description

PyPI - Version Python versions License Python application DOI

ASF: Algorithm Selection Framework

ASF is a powerful library for algorithm selection and performance prediction. It allows users to easily create and use algorithm selectors with minimal code.

NOTE: ASF is still under construction (early alpha). Therefore, not only the API can change, but there might be some bugs in the implementations of the selectors. For the common methods (multi class classification, pairwise regression / classification as well as simple ranking) we checked the performance and the implementation and they can be safely used. We will release in the near future a benchmark of all methods on ASlib scenarios which will validate the performance.

Features

  • Easy-to-use API for creating algorithm selectors
  • Supports various selection models including pairwise classifiers, multi-class classifiers, and performance models
  • Integration with popular machine learning libraries like scikit-learn

Quick Start

You can create an algorithm selector with just 2 lines of code. Here is an example using the PairwiseClassifier:

from asf.selectors import PairwiseClassifier
from sklearn.ensemble import RandomForestClassifier

# Create a PairwiseClassifier
selector = PairwiseClassifier(model_class=RandomForestClassifier, metadata=your_metadata)

# Fit the selector with feature and performance data
selector.fit(dummy_features, dummy_performance)

# Predict the best algorithm for new instances
predictions = selector.predict(new_features)

Future Features

In the future, ASF will include more features such as:

  • Empirical performance prediction
  • Feature selection
  • Support for ASlib scenarios
  • And more!

Installation

To install ASF, use pip:

pip install asf-lib

Documentation

For detailed documentation and examples, please refer to the official documentation.

Contributing

We welcome contributions! Please see our contributing guidelines for more details.

License

ASF is licensed under the MIT License. See the LICENSE file for more 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

asf_lib-0.0.1.20.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

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

asf_lib-0.0.1.20-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

Details for the file asf_lib-0.0.1.20.tar.gz.

File metadata

  • Download URL: asf_lib-0.0.1.20.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for asf_lib-0.0.1.20.tar.gz
Algorithm Hash digest
SHA256 b18d800e9234bd9765c25c3614ba574591b8b0dc912ed9e8f8c6130d52978e6c
MD5 592daad4b694c968e2b40f510eb75154
BLAKE2b-256 e87261550049cdb0c8343695e102726c9bbae581f802e3590abb74f8c8ebed3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for asf_lib-0.0.1.20.tar.gz:

Publisher: publish.yml on hadarshavit/asf

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

File details

Details for the file asf_lib-0.0.1.20-py3-none-any.whl.

File metadata

  • Download URL: asf_lib-0.0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 40.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for asf_lib-0.0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 231f40735a11237c3d640d5b7239f9d7a861684d6492c43abcf5b6e972361095
MD5 82962f43dad4209f9e15111084c31bd6
BLAKE2b-256 55c41e2efc742b006c3b196b2bb5319769e52da6725558e689ce42bb4ee3207a

See more details on using hashes here.

Provenance

The following attestation bundles were made for asf_lib-0.0.1.20-py3-none-any.whl:

Publisher: publish.yml on hadarshavit/asf

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