Compare ML experiments
Project description
ML experiments comparator
ML experiments comparator is an easy tool for comparing different ML experiments.
Installation
TBU
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ml_exp_comparator-1.0.0.tar.gz.
File metadata
- Download URL: ml_exp_comparator-1.0.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1176ffc9535ad63355dcf662acd99afe8a0d6f71f0212d4d5979705b372e39f
|
|
| MD5 |
7be9158fc442344cd6719683d5001f99
|
|
| BLAKE2b-256 |
dfb54c30d0d8fc1cce35e2ebd8d4156986db8818fba11bf32819d4d1696efa05
|
File details
Details for the file ml_exp_comparator-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ml_exp_comparator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab95fe4c1024c56e347f3b730d74772537491cacb0626d1a9850baf0b53231de
|
|
| MD5 |
4c2106703af38d1b73e3c8122e277c32
|
|
| BLAKE2b-256 |
c4cb1b478498d0c2c1566c04c9a0b7f12a713a320bbaf8a63ca0502f42d7c824
|