ltbio.decision#
Overview#
Submodules#
Classes#
Helper class that provides a standard way to create an ABC using |
|
A Single Pipeline Unit is any agent that can act (use, process or make changes) to a collection (usually of Timeseries). |
|
- |
Contents#
- class ltbio.decision.BinaryDecision(decision_function: Callable[[ltbio.biosignals.Timeseries], bool], name=None)#
Bases:
digraph inheritanceb42148e613 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ABC" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Helper class that provides a standard way to create an ABC using"]; "BinaryDecision" [URL="BinaryDecision/index.html#ltbio.decision.BinaryDecision.BinaryDecision",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Decision" -> "BinaryDecision" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Decision" [URL="Decision/index.html#ltbio.decision.Decision.Decision",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "ABC" -> "Decision" [arrowsize=0.5,style="setlinewidth(0.5)"]; }ltbio.decision.Decision.DecisionHelper class that provides a standard way to create an ABC using inheritance.
- evaluate(object: ltbio.biosignals.Timeseries) bool#
- class ltbio.decision.DecisionMaker(decision: ltbio.decision.Decision.Decision, name: str = None)#
Bases:
digraph inheritance9c93e39b5c { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ABC" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Helper class that provides a standard way to create an ABC using"]; "DecisionMaker" [URL="DecisionMaker/index.html#ltbio.decision.DecisionMaker.DecisionMaker",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "SinglePipelineUnit" -> "DecisionMaker" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PipelineUnit" [URL="../pipeline/PipelineUnit/index.html#ltbio.pipeline.PipelineUnit.PipelineUnit",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Pipeline Units are the building blocks of Pipelines."]; "ABC" -> "PipelineUnit" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SinglePipelineUnit" [URL="../pipeline/PipelineUnit/index.html#ltbio.pipeline.PipelineUnit.SinglePipelineUnit",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A Single Pipeline Unit is any agent that can act (use, process or make changes) to a collection (usually of Timeseries)."]; "PipelineUnit" -> "SinglePipelineUnit" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ABC" -> "SinglePipelineUnit" [arrowsize=0.5,style="setlinewidth(0.5)"]; }ltbio.pipeline.PipelineUnit.SinglePipelineUnitA Single Pipeline Unit is any agent that can act (use, process or make changes) to a collection (usually of Timeseries). Following the Command design pattern, a SingleUnit is the abstract ‘Command’, so that Pipeline can execute various kinds of processing by calling the ‘apply’ method of each concrete unit.
E.g. Filter, Segmenter, FeatureExtractor, FeatureSelector, SupervisingTrainer, DecisionMaker Any subclass that implements ‘apply’.
Every subclass must define ‘apply’ and implement a concrete behaviour. To map the parameters’ names of ‘apply’ to the labels inside any arriving Packet, PIPELINE_INPUT_LABELS should be defined. To map the outputs to the labels of the resulting Packet, PIPELINE_OUTPUT_LABELS should be defined.
PIPELINE_INPUT_LABELS Maps every label of a needed input inside a Packet to the name of the corresponding ‘apply’ parameter. PIPELINE_OUTPUT_LABELS Maps every output name of ‘apply’ to a label to be saved inside a Packet.
- ART_PATH = 'resources/pipeline_media/decision_maker.png'#
- PIPELINE_INPUT_LABELS#
- PIPELINE_OUTPUT_LABELS#
- apply(timeseries: ltbio.biosignals.Timeseries)#
- class ltbio.decision.NAryDecision(decision_function: Callable[[ltbio.biosignals.Timeseries], int], name=None)#
Bases:
digraph inheritancea09b30dadd { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ABC" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Helper class that provides a standard way to create an ABC using"]; "Decision" [URL="Decision/index.html#ltbio.decision.Decision.Decision",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "ABC" -> "Decision" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NAryDecision" [URL="NAryDecision/index.html#ltbio.decision.NAryDecision.NAryDecision",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Decision" -> "NAryDecision" [arrowsize=0.5,style="setlinewidth(0.5)"]; }ltbio.decision.Decision.Decision- evaluate(object: ltbio.biosignals.Timeseries) int#