npu.pipeline.pps.pipeline_predictive_strategy
Classes
|
Exceptions
|
- exception npu.pipeline.pps.pipeline_predictive_strategy.PipelinePredictiveStrategyException(message='')
- Author:
Alberto M. Esmoris Pena
Class for exceptions related to predictive strategies for pipelines. See
NAIPSException.- __init__(message='')
- class npu.pipeline.pps.pipeline_predictive_strategy.PipelinePredictiveStrategy(**kwargs)
- Author:
Alberto M. Esmoris Pena
Abstract class providing the interface for any pipeline’s predictive strategy.
- Variables:
out_path (str) – The output path for the predictive strategy. It can be None. If it is given, components that demand an output prefix will consider the output path as an output prefix.
external_state – The pipeline’s state to be modified by the predictive strategy. If None, the updates will only happen inside the context of the pipeline predictive strategy. If not None, the updates will propagate to the given state. For instance, a predictive pipeline strategy that modifies a point cloud will override the point cloud in the state too.
ignore_predictions (bool) – When True, the predictive pipeline strategy will not be required to return not None predictions.
- __init__(**kwargs)
Handles the root-level (most basic) initialization of any pipeline’s predictive strategy.
- Parameters:
kwargs – The attributes for the pipeline’s predictive strategy.
- abstractmethod predict(pipeline, input)
The predict method computes the predictions on the point cloud using the given pipeline.
- Parameters:
pipeline (
npu.pipeline.pipeline.Pipeline) – The pipeline to compute the predictions.input (object) – The input object to be predicted.
- Returns:
The predictions.
- Return type:
object