← Về thư mục
skills/plan-ml-experiment/kernel.py
- _fractions · function · L16-L24 — def _fractions(values: Sequence[float]) -> tuple[float, float, float]
- _sizes · function · L27-L33 — def _sizes(size: int, fractions: Sequence[float]) -> tuple[int, int, int]
- _partition · function · L36-L42 — def _partition(indices: Sequence[int], sizes: Sequence[int]) -> dict[str, list[int]]
- random_split · function · L45-L55 — def random_split( size: int, *, fractions: Sequence[float] = (0.7, 0.15, 0.15), seed: int = 0, ) -> dict[str, list[int]]
- chronological_split · function · L58-L69 — def chronological_split( timestamps: Sequence[Any], *, fractions: Sequence[float] = (0.7, 0.15, 0.15), ) -> dict[str, list[int]]
- grouped_split · function · L72-L110 — def grouped_split( groups: Sequence[Any], *, fractions: Sequence[float] = (0.7, 0.15, 0.15), seed: int = 0, ) -> dict[str, list[int]]
- config_fingerprint · function · L113-L122 — def config_fingerprint(config: Mapping[str, Any]) -> str
- file_sha256 · function · L125-L132 — def file_sha256(path: str | Path, *, chunk_size: int = 1024 * 1024) -> str
- experiment_manifest · function · L135-L151 — def experiment_manifest( config: Mapping[str, Any], *, data_paths: Sequence[str | Path] = (), seeds: Sequence[int] = (), code_revision: str | None = None, ) -> dict[str, Any]