Rm¶
- 
class simrun.modular_reduced_model_inference.reduced_model.Rm(name, db, tmin=None, tmax=None, width=None, selected_indices=None)¶
- Reduced model class. - This is the top-level class for running reduced model inference. It provides an interface to add data extractors and strategies, and to run the optimization. - Parameters:¶
- name : str¶
- Name of the reduced model 
- db : str¶
- Path to the database 
- tmin : float¶
- Minimum time for the simulation 
- tmax : float¶
- Maximum time for the simulation 
- width : float¶
- Width of the temporal kernel. This will be used as the \(\tau\) domain in e.g. - RaisedCosineBasis
- selected_indices : list¶
- List/nested list of integer indices for selected simulation trials 
 
- Attributes:¶
- 
- width¶
- Width of the temporal kernel. This will be used as the domain e.g. the \(\\tau\) domain in - RaisedCosineBasis- Type:¶
- float 
 
 - data_extractors¶
- Dictionary of - _DataExtractorobjects- Type:¶
- dict 
 
 
- Methods:¶
 - add_data_extractor(name, data_extractor, setup)- Add a data extractor to the reduced model. - add_strategy(strategy, setup, view)- Add a strategy to the reduced model. - Get the amount of trials. - extract(name)- Extract data using the data extractor. - run(client, n_workers, strategy_selection)- Run one or more strategies on the data. - _gather_results(client)- Fetch the solver results from the dask scheduler. - get_results(client)- Get the results of the optimization. 
Documentation unclear, incomplete, broken or wrong? Let us know