← Về thư mục
skills/pkpd-modeling/scripts/fit_compartmental.py
- FitSpec · class · L71-L91 — class FitSpec
- parameter_names · method · L82-L91 — def parameter_names(self) -> list[str]
- _regimen · function · L94-L101 — def _regimen(spec: FitSpec) -> list[Dose]
- predictor · function · L104-L130 — def predictor(spec: FitSpec) -> Callable[[np.ndarray, np.ndarray], np.ndarray]
- predict · function · L109-L128 — def predict(times: np.ndarray, theta: np.ndarray) -> np.ndarray
- FitResult · class · L137-L159 — class FitResult
- aic · method · L154-L155 — def aic(self) -> float
- bic · method · L158-L159 — def bic(self) -> float
- _weights · function · L162-L174 — def _weights(y: np.ndarray, yhat: np.ndarray, scheme: str) -> np.ndarray
- initial_estimates · function · L177-L211 — def initial_estimates(spec: FitSpec, time: np.ndarray, conc: np.ndarray) -> np.ndarray
- fit_one · function · L214-L312 — def fit_one( spec: FitSpec, time: np.ndarray, conc: np.ndarray, scheme: str, starts: int = 5, seed: int = 20260727, ) -> FitResult
- residual · function · L232-L241 — def residual(log_theta: np.ndarray) -> np.ndarray
- secondary_parameters · function · L318-L341 — def secondary_parameters(spec: FitSpec, theta: np.ndarray) -> dict[str, float]
- runs_test_p · function · L344-L361 — def runs_test_p(residuals: np.ndarray) -> float
- build_parser · function · L367-L392 — def build_parser() -> argparse.ArgumentParser
- _fit_and_report · function · L395-L482 — def _fit_and_report(spec: FitSpec, args, subject: str, time, conc, report: Report) -> FitResult
- run · function · L485-L554 — def run(argv: Sequence[str] | None = None) -> int