src.inout.predictive_pipeline_writer
Classes
|
- class src.inout.predictive_pipeline_writer.PredictivePipelineWriter(path=None, **kwargs)
- Author:
Alberto M. Esmoris Pena
Class for writing predictive pipelines.
See
PredictivePipeline.- static extract_writer_args(spec)
Extract the arguments to initialize/instantiate a PredictivePipelineWriter from a key-word specification.
- Parameters:
spec – The key-word specification containing the arguments.
- Returns:
The arguments to initialize/instantiate a PredictivePipelineWriter.
- __init__(path=None, **kwargs)
Initialize/instantiate a PredictivePipelineWriter.
See
src.inout.writer.Writerandsrc.inout.writer.Writer.__init__().
- write(pipeline, prefix=None, info=True)
Write the predictive version of the given pipeline.
- Parameters:
pipeline (
Pipeline) – Pipeline (must be transformable to a predictive pipeline).prefix (str) – If None, the writing applies to path. If not None, the writing applies to prefix+path.
info (bool) – Whether to log an info message (True) or not (False).