pymodelfit.core.get_model_class

pymodelfit.core.get_model_class(model, baseclass=None)[source]

Returns the class object for the requested model in the model registry

Parameters:
  • model – can be a name, instance, or class object
  • baseclass – If not None, specifies that the requested model me a subclass of the provided base class. If not, a TypeError will be raised.
Returns:

A class object for the requested model.

Raises:
  • KeyError – If a model name is not present in the registry
  • TypeError – For all other invalid inputs

Previous topic

pymodelfit.core.list_models

Next topic

pymodelfit.core.get_model_instance

This Page