climb.tool.impl.data_suite.third_party.uq360 package

Subpackages

Submodules

climb.tool.impl.data_suite.third_party.uq360.base module

class climb.tool.impl.data_suite.third_party.uq360.base.Base[source]

Bases: object

Base class that represents a generic plugin with subtypes that are referenced by name and instantiated at runtime.

classmethod instance(discriminator: Any, **params) PluginBase[source]
classmethod name() str | List[str][source]

Name of this subtype, used for lookup purposes. To be implemented by subclasses. This method can either return a single name, or a list/tuple of names.

classmethod try_instantiate(discriminator: Any, **params) PluginBase | None[source]

Return an instance of this subtype, if it is capable of handling the given discriminator, otherwise None. By default, this method assumes that “discriminator” is a subtype name, and returns an instance if the discriminator matches the name of this subtype (as returned by the name() method). This method can be overwritten by subclasses, in which case the discriminator can also be any other object based on which the subtype class can decide whether it is responsible for handling it.

climb.tool.impl.data_suite.third_party.uq360.base.is_list_or_tuple(obj)[source]

Determine whether an object is an iterable list or tuple

Module contents