An error occurred while fetching folder content.
Metrics fixes, tests, refactoring, typing improvement (#1214)
Peter Shevcnenko authored
* fix f1 & precision evaluation

* rem flattening from QualityMetric._simple_prediction

* fix metrics hierarchy

* improve typing of QualityMetricCallable

* add tests for all supported types of metrics

* return **kwargs to complexity metrics

* use MetricCallable where it is appropriate

* tests: simplify regression pipeline, type hints & additional assertion

* remove __self__ from MetricCallable definition;
remove default value for metric_by_id

* rename & redo repository methods

* rename MetricType -> MetricIDType

* reorder module

* rename metrics repo module

* rename metrics test module

* update test data pipeline pickle

* correct typos

* adapt documentation

* fix inheritance

* add kwargs and metric() to complexity metrics

* better types for metrics_repository.py

* combine all metrics to a single test; add default values check

* unwrap pipeline predictions for time series

* fix confusing naming

* add fixture for expected values for faster tests

* remove test for binary classification

* add a less strict test for binary classification

* fix random seed for binary classification

* delete simple test for binary classification

* delete binary test from `test_metrics`

* fix structural_analysis_example.py

* make `test_metrics` fall if `update_expected_values=True`

* fix unused imports

* add `str` to `MetricIDType`

---------
Co-authored-by: Sergey Kasyanov's avatarkasyanovse <kus7466@gmail.com>
4ef1c8e5
Name Last commit Last update