Skip to main content

Compare ML experiments

Project description

ML experiments comparator

ML experiments comparator is an easy tool for comparing different ML experiments.

Installation

You can install the ML experiments comparator from PyPI:

pip install ml_exp_comparator

How to use

# 1. create or select ModelRunner for your experiments
# 2. load trained experimental models into model runners 

model_runner1, model_runner2 = get_model_runners(...)

# 3. create or select DatasetStore containing your dataset
dataset_store = get_dataset_store(...)

# 4. create or select MetricRunner for your dataset
metrics_runners = get_metrics_runners(...)

# 5. create or select ResultsAggregator for collecting metrics
results_aggregator = get_results_aggregator(...)

# 6. init ExperimentRunner
exp_runner = ExperimentsRunner(exp_name='exp_name', 
                               storage_folder='storage_folder', 
                               batch_size=100,
                               exp_models_runners=[model_runner1, model_runner2],
                               dataset_store=dataset_store,
                               metrics_runners=metrics_runners,
                               result_aggregator=results_aggregator)

# 7. run comparison and store the results 
exp_runner.run_and_store()

Examples: examples/.

Modules

Experiments runner

from ml_exp_comparator.experiments_runner import ExperimentsRunner

Runs experimental models on the provided dataset using selected metrics.

Dataset stores

from ml_exp_comparator.dataset_stores.dataset_store import DatasetStore

Dataset wrapper. Yields batches of a specific dataset.

Metrics runners

from ml_exp_comparator.metrics_runners.metric_runner import MetricRunner

Calculates metrics for each output based on true and pred outputs. Aggregates calculated metrics.

Models runners

from ml_exp_comparator.models_runners.model_runner import ModelRunner

Runs trained model on dataset true_input batches.

Results aggregator

from ml_exp_comparator.results_aggregators.results_aggregator import ResultsAggregator

Collects single and aggregated metrics results. Dumps metric results into a local storage.

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

ml_exp_comparator-1.0.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

ml_exp_comparator-1.0.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file ml_exp_comparator-1.0.1.tar.gz.

File metadata

  • Download URL: ml_exp_comparator-1.0.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for ml_exp_comparator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 97a18590c18f071238b5bdeda9cfe29a7e601ea05d3a4b7bf8977be9a1e15691
MD5 ab8ec6e4f5368a65f96db4c667d4b54a
BLAKE2b-256 2f22600de4373f14a5b0564a51d5f28195ba5a0991cc22e0b3acd2c8bc2c3923

See more details on using hashes here.

File details

Details for the file ml_exp_comparator-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ml_exp_comparator-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 433234199354c38699b29495a8414c80f36aebef54be6a0c27fa0c0a366b5006
MD5 f9999afefe1d6a3ed76ec819da879b02
BLAKE2b-256 2b6247f78ca43a2dce93d2280b88521fc3b404033243e79334bb8b319eeaa8fd

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