fl_sim.optimizers.register_optimizer# fl_sim.optimizers.register_optimizer(name: str | None = None, override: bool = True) → Any[source]# Decorator to register a new optimizer. Parameters: name (str, optional) – Name of the optimizer. If not specified, the class name with “(?:Optimizer)?” removed will be used. override (bool, default True) – Whether to override the existing optimizer with the same name. Return type: The decorated class.