AQIT
0.1.0
Toggle main menu visibility
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
8
from
__future__
import
annotations
9
10
from
typing
import
Any
11
12
from
aquin.sdk._runtime
import
invoke
13
14
15
def
run(**kwargs: Any) -> dict[str, Any]:
16
"""Run a training simulation for the loaded model."""
17
return
invoke(
"run_simulation"
, kwargs, command=
"simulate"
)
18
19
20
def
list_runs
(**kwargs: Any) -> dict[str, Any]:
21
return
invoke(
"list_simulation_runs"
, kwargs, command=
"list simulation"
, needs_model=
False
)
22
23
24
def
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
28
29
def
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
)
aquin.sdk._runtime
Definition
_runtime.py:1
aquin.sdk.simulate.list_runs
dict[str, Any] list_runs(**Any kwargs)
Definition
simulate.py:24
aquin.sdk.simulate.replay
dict[str, Any] replay(str run_id, **Any kwargs)
Definition
simulate.py:28
aquin.sdk.simulate.compare
dict[str, Any] compare(str run_id_a, str run_id_b, **Any kwargs)
Definition
simulate.py:33
aquin
sdk
simulate.py
AQIT · Aquin Labs Private Limited · Apache 2.0 · Generated by
1.18.0