pytams.tams
Module Contents
Classes
A class implementing TAMS. |
- class pytams.tams.TAMS(fmodel_t, parameters: dict)[source]
A class implementing TAMS.
Hold a Trajectory database and mechanisms to populate, explore and IO the database.
- loadTrajectoryDB(dbFile: str) int [source]
Load trajectories stored into the database.
- Parameters:
dbFile – the database file
- Returns:
number of trajectories loaded
- elapsed_time() float [source]
Return the elapsed wallclock time.
Since the initialization of TAMS [seconds].
- Returns:
TAMS elapse time.
- remaining_walltime() float [source]
Return the remaining wallclock time.
[seconds]
- Returns:
TAMS remaining wall time.
- out_of_time() bool [source]
Return true if insufficient walltime remains.
- Returns:
boolean indicating wall time availability.
- task_delayed(traj: pytams.trajectory.Trajectory) pytams.trajectory.Trajectory [source]
A worker to generate each initial trajectory.
- Parameters:
traj – a trajectory
- generate_trajectory_pool() None [source]
Schedule the generation of a pool of stochastic trajectories.
- worker(t_end: float, min_idx_list: List[int], rstId: str, min_val: float) pytams.trajectory.Trajectory [source]
A worker to restart trajectories.
- Parameters:
t_end – a final time
min_idx_list – the list of trajectory restarted in the current splitting iteration
rstId – Id of the trajectory being worked on
min_val – the value of the score function to restart from
- do_multilevel_splitting() None [source]
Schedule splitting of the initial pool of stochastic trajectories.