lale.lib.lale.time_series_transformer module

class lale.lib.lale.time_series_transformer.CorrelationMatrix[source]

Bases: object

Calculate correlation coefficients matrix across all EEG channels.

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.Eigenvalues[source]

Bases: object

Take eigenvalues of a matrix, and sort them by magnitude in order to make them useful as features (as they have no inherent order).

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.FFT[source]

Bases: object

Apply Fast Fourier Transform to the last axis.

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.FFTWithTimeFreqCorrelation(start, end, max_hz, scale_option)[source]

Bases: object

Combines FFT with time and frequency correlation, taking both correlation coefficients and eigenvalues.

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.FreqCorrelation(start, end, scale_option, with_fft=False, with_corr=True, with_eigen=True)[source]

Bases: object

Correlation in the frequency domain. First take FFT with (start, end) slice options, then calculate correlation co-efficients on the FFT output, followed by calculating eigenvalues on the correlation co-efficients matrix. The output features are (fft, upper_right_diagonal(correlation_coefficients), eigenvalues) Features can be selected/omitted using the constructor arguments.

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.Log10[source]

Bases: object

Apply Log10

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.Magnitude[source]

Bases: object

Job: Take magnitudes of Complex data

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.Pipeline(pipeline)[source]

Bases: object

A Pipeline is an object representing the data transformations to make on the input data, finally outputting extracted features. pipeline: List of transforms to apply one by one to the input data

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.Resample(sample_rate)[source]

Bases: object

Resample time-series data.

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.Slice(start, stop)[source]

Bases: object

Job: Take a slice of the data on the last axis. Note: Slice(x, y) works like a normal python slice, that is x to (y-1) will be taken.

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.StandardizeFirst[source]

Bases: object

Scale across the first axis.

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.StandardizeLast[source]

Bases: object

Scale across the last axis.

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.TimeCorrelation(max_hz, scale_option, with_corr=True, with_eigen=True)[source]

Bases: object

Correlation in the time domain. First downsample the data, then calculate correlation co-efficients followed by calculating eigenvalues on the correlation co-efficients matrix. The output features are (upper_right_diagonal(correlation_coefficients), eigenvalues) Features can be selected/omitted using the constructor arguments.

apply(data)[source]
get_name()[source]
class lale.lib.lale.time_series_transformer.TimeFreqEigenVectorsImpl(window_length=1, window_step=0.5, fft_min_freq=1, fft_max_freq=24, sampling_frequency=250)[source]

Bases: object

get_transform_meta_output()[source]
transform(X, y=None)[source]
class lale.lib.lale.time_series_transformer.seizure_type_data(seizure_type, data)

Bases: tuple

property data

Alias for field number 1

property seizure_type

Alias for field number 0

lale.lib.lale.time_series_transformer.upper_right_triangle(matrix)[source]