matchclot.embedding.catalyst_tools module
Summary
Classes:
Top1, Top5 accuracy metrics and competition score, without applying the matching algorithm. |
|
Reference
- class scRNARunner(*args, **kwargs)[source]
Bases:
Runner
- class CustomMetric(compute_on_call=True, prefix=None, suffix=None)[source]
Bases:
ICallbackLoaderMetricTop1, Top5 accuracy metrics and competition score, without applying the matching algorithm.
- reset(num_batches, num_samples)[source]
Resets the metric to it’s initial state.
By default, this is called at the start of each loader (on_loader_start event).
- Parameters:
num_batches (
int) – number of expected batches.num_samples (
int) – number of expected samples.
- Return type:
None
- update(*args, **kwargs)[source]
Updates the metrics state using the passed data.
By default, this is called at the end of each batch (on_batch_end event).
- Parameters:
*args – some args :)
**kwargs – some kwargs ;)
- Return type:
None