marvin.utilities.types
Classes
Labels
get_indexed_labelsGet a mapping of indices to label string representations.get_typeGet the type that should be used for validation.validateValidate a value against the labels.
ParameterModel
PythonFunction
-
from_functionCreate a PythonFunction instance from a function. Args: func (Callable): The function to create a PythonFunction instance from. **kwargs: Additional keyword arguments to set as attributes on the PythonFunction instance. Returns: PythonFunction: The created PythonFunction instance. -
from_function_callCreate a PythonFunction instance from a function call. Args: func (Callable): The function to call. *args: Positional arguments to pass to the function call. **kwargs: Keyword arguments to pass to the function call. Returns: PythonFunction: The created PythonFunction instance, with the return value of the function call set as an attribute.
Functions
as_classifier
is_classifier
- Single-label: Enum, Literal, or any sequence of values
- Multi-label: list[Enum], list[Literal], or list[list]
issubclass_safe
Parent Module:
utilities