dasf.feature_extraction.transform

Classes

ConcatenateToArray

Concatenate data from different Arrays into a single array.

SampleDataframe

Return a subset with random samples of the original dataset.

GetSubeCubeArray

Get a subcube with x% of samples from the original one.

GetSubDataframe

Get the first x% samples from the dataset.

Module Contents

class dasf.feature_extraction.transform.ConcatenateToArray(flatten=False)[source]

Bases: dasf.transforms.base.Transform

Concatenate data from different Arrays into a single array.

Parameters

flattenbool

If the arrays must be flatten prior concatenating. If False, the arrays must share the shape of last dimansions in order to be concatenated (the default is False).

__transform_generic(xp, **kwargs)
_transform_cpu(**kwargs)[source]

Respective immediate transform mocked function for local CPU(s).

_transform_gpu(**kwargs)[source]

Respective immediate transform mocked function for local GPU(s).

Parameters:

flatten (bool)

class dasf.feature_extraction.transform.SampleDataframe(percent)[source]

Return a subset with random samples of the original dataset.

Parameters

percentfloat

Percentage of the samples to get from the dataset.

run(X)[source]

Returns a subset with random samples from the dataset X.

Parameters

XAny

The dataset.

Returns

Any

The sampled subset.

Parameters:

percent (float)

class dasf.feature_extraction.transform.GetSubeCubeArray(percent)[source]

Get a subcube with x% of samples from the original one.

Parameters

percentfloat

Percentage of the samples to get from the cube.

transform(X)[source]
Parameters:

percent (float)

class dasf.feature_extraction.transform.GetSubDataframe(percent)[source]

Get the first x% samples from the dataset.

Parameters

percentfloat

Percentage of the samples to get from the dataframe.

transform(X)[source]
Parameters:

percent (float)