← Về thư mục
skills/scikit-survival/scripts/_common.py
- CliError · class · L28-L29 — class CliError(ValueError)
- bounded_int · function · L32-L46 — def bounded_int(minimum: int, maximum: int)
- convert · function · L35-L44 — def convert(value: str) -> int
- finite_float · function · L49-L58 — def finite_float(value: str) -> float
- positive_float · function · L61-L67 — def positive_float(value: str) -> float
- probability · function · L70-L76 — def probability(value: str) -> float
- parse_names · function · L79-L91 — def parse_names(value: str | None) -> list[str]
- parse_floats · function · L94-L105 — def parse_floats(value: str | None) -> list[float]
- checked_input_file · function · L108-L133 — def checked_input_file( value: str | os.PathLike[str], *, suffixes: Iterable[str], max_bytes: int = MAX_INPUT_BYTES, ) -> Path
- checked_output_file · function · L136-L163 — def checked_output_file( value: str | os.PathLike[str], *, suffixes: Iterable[str], force: bool = False, ) -> Path
- atomic_write_bytes · function · L166-L184 — def atomic_write_bytes(path: Path, payload: bytes, *, force: bool = False) -> None
- _json_bytes · function · L187-L207 — def _json_bytes(document: Any) -> bytes
- emit_json · function · L210-L223 — def emit_json( document: Any, *, output: str | os.PathLike[str] | None = None, force: bool = False, ) -> None
- emit_text · function · L226-L243 — def emit_text( text: str, *, output: str | os.PathLike[str] | None = None, force: bool = False, ) -> None
- load_json · function · L246-L258 — def load_json(value: str | os.PathLike[str]) -> Any
- reject_constant · function · L251-L252 — def reject_constant(constant: str) -> None
- read_csv · function · L261-L276 — def read_csv(value: str | os.PathLike[str])
- validate_frame_bounds · function · L279-L290 — def validate_frame_bounds(frame: Any) -> None
- normalize_binary_event · function · L293-L323 — def normalize_binary_event(values: Any)
- normalize_positive_times · function · L326-L346 — def normalize_positive_times(values: Any, *, label: str = "time")
- structured_survival · function · L349-L371 — def structured_survival( event: Any, time: Any, *, event_name: str = "event", time_name: str = "time", )
- atomic_save_npy · function · L374-L388 — def atomic_save_npy( value: Any, output: str | os.PathLike[str], *, force: bool = False ) -> None
- atomic_save_npz · function · L391-L414 — def atomic_save_npz( arrays: dict[str, Any], output: str | os.PathLike[str], *, force: bool = False, ) -> None
- synthetic_survival_frame · function · L417-L456 — def synthetic_survival_frame( *, rows: int = 240, seed: int = DEFAULT_SEED ) -> tuple[Any, list[str], list[str]]