pipeline.pps package
Submodules
pipeline.pps.pipeline_predictive_strategy module
- exception pipeline.pps.pipeline_predictive_strategy.PipelinePredictiveStrategyException(message='')
Bases:
VL3DException- Author:
Alberto M. Esmoris Pena
Class for exceptions related to predictive strategies for pipelines. See
VL3DException.- __init__(message='')
- class pipeline.pps.pipeline_predictive_strategy.PipelinePredictiveStrategy(**kwargs)
Bases:
object- 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, pcloud)
The predict method computes the predictions on the point cloud using the given pipeline.
- Parameters:
pipeline (
Pipeline) – The pipeline to compute the predictions.pcloud (
PointCloud) – The point cloud to be predicted.
- Returns:
The predictions.
- Return type:
np.ndarray
pipeline.pps.pps_sequential module
- class pipeline.pps.pps_sequential.PpsSequential(**kwargs)
Bases:
PipelinePredictiveStrategy- Author:
Alberto M. Esmoris Pena
A predictive strategy for sequential pipelines. See
PipelinePredictiveStrategyandSequentialPipeline.- __init__(**kwargs)
Handles the initialization of a predictive strategy for sequential pipelines.
- Parameters:
kwargs – The attributes for the pipeline’s predictive strategy.
- predict(pipeline, pcloud)
See
PipelinePredictiveStrategyandpipeline_predictive_strategy.PipelinePredictiveStrategy.predict().
Module contents
- author:
Alberto M. Esmoris Pena
The pps (Pipeline Predictive Strategy) package contains the logic to enable predictive pipelines to compute predictions.