Stopping Criteria (Implementation)#

alts.modules.stopping_criteria
class DataExhaustedStoppingCriteria[source]#

Bases: StoppingCriteria

Description
Stops the experiment if the DataSource has been exhausted.
property next: bool#
Description
Checks whether the experiment should stop.
Returns:

True if the experiment’s DataSource has been exhausted (else False)

Return type:

bool

post_init(self) None[source]#
Description
Checks for compatability between this StoppingCriteria and the configured Process in the experiment.
Raises:

TypeError – If the experiment’s process is not a DataSourceProcess

class TimeStoppingCriteria(stop_time)[source]#

Bases: StoppingCriteria

Description
This stopping criteria is fulfilled if the internal experiment time exceeds a given stop_time.
Parameters:

stop_time (float) – The stopping time

property next: bool#
Description
Checks whether the experiment should stop.
Returns:

True if experiment time has reached or exceeded stopping time (else False)

Return type:

bool

stop_time: float = NOTSET#