← Về thư mục
skills/evaluate-model/kernel.py
- _same_length · function · L12-L19 — def _same_length(*series: Sequence[Any]) -> int
- _ratio · function · L22-L23 — def _ratio(numerator: float, denominator: float) -> float | None
- _roc_auc · function · L26-L51 — def _roc_auc( y_true: Sequence[Any], scores: Sequence[float], positive: Any ) -> float | None
- binary_classification_metrics · function · L54-L129 — def binary_classification_metrics( y_true: Sequence[Any], *, predictions: Sequence[Any] | None = None, scores: Sequence[float] | None = None, threshold: float = 0.5, positive: Any = 1, ) -> dict[str, Any]
- regression_metrics · function · L132-L153 — def regression_metrics( y_true: Sequence[float], predictions: Sequence[float] ) -> dict[str, float | int | None]
- bootstrap_ci · function · L156-L197 — def bootstrap_ci( values: Sequence[float], *, statistic: Callable[[Sequence[float]], float] = statistics.fmean, confidence: float = 0.95, resamples: int = 2000, seed: int = 0, ) -> dict[str, float | int]
- percentile · function · L181-L188 — def percentile(probability: float) -> float