freneticlib.frenetic
Module Contents
Classes
Main class for Frenetic-based ADS testing. |
- class freneticlib.frenetic.Frenetic(core: freneticlib.core.core.FreneticCore, executor: freneticlib.executors.executor.Executor, stop_criterion: freneticlib.stopcriteria.abstract.StopCriterion)
Bases:
objectMain class for Frenetic-based ADS testing.
Constructor.
- Parameters:
core (FreneticCore) – The core instance that handles the ask/tell interface, mutation.
executor (Executor) – Specifies the executor (e.g. Bicycle executor).
stop_criterion (StopCriterion) – Specification of when to stop random phase and completely.
- start()
Start the search.
First triggers simulation of random roads followed by the mutation phase.
- store_results(filename: str)
Store the results in a CSV file.
- load_history(filename: str)
Load an execution history from a CSV file.
- plot(filename: str = None, **kwargs)
Very simple plotting facility.
Creates a line plot showing the objective feature’s value for each simulation. Random generations are shown in gray, the mutated values in blue.
- Parameters:
filename (str, optional) – If a filename is specified, plot will be stored on disk. Otherwise, it will be shown on screen. Defaults to None.