9.2.6. Pipeline#
Provide imports for pipeline sub-package.
- class junifer.pipeline.PipelineStepMixin#
Mixin class for a pipeline step.
- fit_transform(input, **kwargs)#
Fit and transform.
- get_output_type(input_type)#
Get output type.
- validate(input)#
Validate the the pipeline step.
- validate_input(input)#
Validate the input to the pipeline step.
- Parameters:
- Returns:
- Raises:
ValueError
If the input does not have the required data.
- class junifer.pipeline.UpdateMetaMixin#
Mixin class for updating meta.
9.2.7. Registry#
Provide functions for registry.
- junifer.pipeline.registry.build(step, name, baseclass, init_params=None)#
Ensure that the given object is an instance of the given class.
- Parameters:
- Returns:
- object
An instance of the given base class.
- Raises:
RuntimeError
If there is a problem creating the instance.
ValueError
If the created object with the given name is not an instance of the base class.
- junifer.pipeline.registry.get_class(step, name)#
Get the class of the registered function for a given step.
- Parameters:
- Returns:
- class
Registered function class.
- Raises:
ValueError
If the
step
orname
is invalid.
- junifer.pipeline.registry.get_step_names(step)#
Get the names of the registered functions for a given step.
- Parameters:
- step
str
Name of the step.
- step
- Returns:
list
List of registered function names.
- Raises:
ValueError
If the
step
is invalid.
- junifer.pipeline.registry.register(step, name, klass)#
Register a function to be used in a pipeline step.
- Parameters:
- Raises:
ValueError
If the
step
is invalid.