cost_function.set_context_modifier
- cost_function.set_context_modifier(context_modifier: callable, **kwgs)[source]
set the cost context modifier after the instantiation
- Parameters:
context_modifier (funct) –
- function creating a context from a particle position, parameters:
>>> context_modifier(X: np.ndarray, static_context: NRV_simulable, **kwargs) -> NRV_simulable: