refactor(Evaluate): print out accuracy, f1, etc. for the final & meta predictions, separated out evaluation step (#228)

* refactor(Evaluate): print out accuracy, f1, etc. for the final & meta predictions, separated out evaluation step

* fix(Linter): ran

* fix(Tests): syntax change

* fix(Inference): runs now again

* fix(Linter): ran
This commit is contained in:
Mark Aron Szulyovszky
2022-03-03 17:40:17 +01:00
committed by GitHub
parent 75157c6285
commit 567cd5e9f0
13 changed files with 153 additions and 118 deletions
+7
View File
@@ -3,6 +3,7 @@ from abc import ABC, abstractmethod
import pandas as pd
import pandera as pa
from pandera.typing import DataFrame, Series
from typing import Callable
class EventFilter(ABC):
@@ -27,3 +28,9 @@ class EventLabeller(ABC):
self, event_start_times: pd.DatetimeIndex, returns: ReturnSeries
) -> EventsDataFrame:
raise NotImplementedError
def get_labels(self) -> list[int]:
raise NotImplementedError
def get_discretize_function(self) -> Callable:
raise NotImplementedError