mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-13 10:58:06 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user