AQIT 0.1.0
Loading...
Searching...
No Matches
simulate.py
Go to the documentation of this file.
1# Copyright (c) 2025-present Aquin Labs Private Limited. All Rights Reserved.
2# This file is part of the Aquin Engine. Unauthorized copying, modification,
3# distribution, or use of this file, via any medium, is strictly prohibited.
4# Proprietary and confidential. See LICENSE for terms.
5
6"""Simulate — forecast train outcomes."""
7
8from __future__ import annotations
9
10from typing import Any
11
12from aquin.sdk._runtime import invoke
13
14
15def run(**kwargs: Any) -> dict[str, Any]:
16 """Run a training simulation for the loaded model."""
17 return invoke("run_simulation", kwargs, command="simulate")
18
20def list_runs(**kwargs: Any) -> dict[str, Any]:
21 return invoke("list_simulation_runs", kwargs, command="list simulation", needs_model=False)
22
23
24def replay(run_id: str, **kwargs: Any) -> dict[str, Any]:
25 args = {"run_id": run_id, **kwargs}
26 return invoke("load_simulation_run", args, command="replay simulation", needs_model=False)
27
29def compare(run_id_a: str, run_id_b: str, **kwargs: Any) -> dict[str, Any]:
30 args = {"run_id_a": run_id_a, "run_id_b": run_id_b, **kwargs}
31 return invoke("compare_simulations", args, command="compare simulation", needs_model=False)
dict[str, Any] list_runs(**Any kwargs)
Definition simulate.py:24
dict[str, Any] replay(str run_id, **Any kwargs)
Definition simulate.py:28
dict[str, Any] compare(str run_id_a, str run_id_b, **Any kwargs)
Definition simulate.py:33