ltbio.features#

Overview#

Submodules#

Classes#

FeatureExtractor

-

FeatureSelector

-

HRVFeatures

Helper class that provides a standard way to create an ABC using

TimeFeatures

Class with implementation of extraction of of several time features.

Contents#

class ltbio.features.FeatureExtractor(feature_functions: Collection[Callable], name: str = None)#

Bases: ltbio.pipeline.PipelineUnit.SinglePipelineUnit

digraph inheritance27e6c9b586 { 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"]; "FeatureExtractor" [URL="FeatureExtractor/index.html#ltbio.features.FeatureExtractor.FeatureExtractor",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" -> "FeatureExtractor" [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)"]; }
ART_PATH = 'resources/pipeline_media/feature_extractor.png'#
PIPELINE_INPUT_LABELS#
PIPELINE_OUTPUT_LABELS#
apply(timeseries: ltbio.biosignals.Timeseries) Dict[str, ltbio.biosignals.Timeseries]#
class ltbio.features.FeatureSelector(selection_function: Callable[[numpy.ndarray], bool], name: str = None)#

Bases: ltbio.pipeline.PipelineUnit.SinglePipelineUnit

digraph inheritancea9276bc203 { 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"]; "FeatureSelector" [URL="FeatureSelector/index.html#ltbio.features.FeatureSelector.FeatureSelector",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" -> "FeatureSelector" [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)"]; }
ART_PATH = 'resources/pipeline_media/feature_selector.png'#
PIPELINE_INPUT_LABELS#
PIPELINE_OUTPUT_LABELS#
apply(features: Dict[str, ltbio.biosignals.Timeseries]) Dict[str, ltbio.biosignals.Timeseries]#
class ltbio.features.HRVFeatures#

Bases: abc.ABC

digraph inheritance1600ab961b { 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"]; "HRVFeatures" [URL="Features/index.html#ltbio.features.Features.HRVFeatures",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" -> "HRVFeatures" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

Helper class that provides a standard way to create an ABC using inheritance.

static hr(segment: numpy.ndarray) float#
static r_indices(segment: numpy.ndarray) float#
class ltbio.features.TimeFeatures#

Bases: abc.ABC

digraph inheritancebb77a14a7d { 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"]; "TimeFeatures" [URL="Features/index.html#ltbio.features.Features.TimeFeatures",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="Class with implementation of extraction of of several time features."]; "ABC" -> "TimeFeatures" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

Class with implementation of extraction of of several time features.

static deviation(segment: numpy.ndarray) float#
static mean(segment: numpy.ndarray) float#
static variance(segment: numpy.ndarray) float#