← Về thư mục
skills/relsa-severity-assessment/scripts/_common.py
- RelsaDataError · class · L31-L32 — class RelsaDataError(ValueError)
- read_relsa_table · function · L38-L58 — def read_relsa_table( path: str | Path, sep: str | None = None, id_col: str = ID_COL, time_col: str | None = None, ) -> pd.DataFrame
- canonicalize · function · L61-L93 — def canonicalize( frame: pd.DataFrame, id_col: str = ID_COL, time_col: str | None = None, ) -> pd.DataFrame
- variable_columns · function · L96-L99 — def variable_columns(frame: pd.DataFrame) -> list[str]
- validate · function · L105-L138 — def validate(frame: pd.DataFrame, variables: Sequence[str]) -> None
- score_to_percent · function · L144-L172 — def score_to_percent( values: Iterable[float], max_score: float, baseline_score: float = 0.0, ) -> np.ndarray
- percent_of_baseline · function · L175-L227 — def percent_of_baseline( frame: pd.DataFrame, variables: Sequence[str], baseline_time: float | Sequence[float] | None = None, ) -> pd.DataFrame
- parse_list · function · L230-L234 — def parse_list(value: str | None) -> list[str]
- ForecastMetrics · class · L241-L250 — class ForecastMetrics
- as_dict · method · L249-L250 — def as_dict(self) -> dict[str, float]
- forecast_metrics · function · L253-L287 — def forecast_metrics( actual: Iterable[float], predicted: Iterable[float], lower: Iterable[float] | None = None, upper: Iterable[float] | None = None, ) -> ForecastMetrics