openml.extensions.get_extension_by_model¶
-
openml.extensions.get_extension_by_model(model: Any, raise_if_no_extension: bool = False) → Union[openml.extensions.extension_interface.Extension, NoneType]¶ Get an extension which can handle the given flow.
Iterates all registered extensions and checks whether they can handle the presented model. Raises an exception if two extensions can handle a model.
- Parameters
- modelAny
- raise_if_no_extensionbool (optional, default=False)
Raise an exception if no registered extension can handle the presented model.
- Returns
- Extension or None