PreprocessingStep: Preprocessing Step

PreprocessingStepR Documentation

Preprocessing Step

Description

Preprocessing Step

Preprocessing Step

Super classes

rgudhi::PythonClass -> rgudhi::SKLearnClass -> PreprocessingStep

Methods

Public methods

Inherited methods

Method apply()

Applies the class on a single persistence diagram and outputs the result.

Usage
PreprocessingStep$apply(diag)
Arguments
diag

A 2-column tibble::tibble specifying a persistence diagram.

Returns

A 2-column tibble::tibble storing the preprocessed persistence diagram.


Method fit()

Fits the class on a sample of persistence diagrams.

Usage
PreprocessingStep$fit(X, y = NULL)
Arguments
X

A list of 2-column tibble::tibbles specifying a sample of persistence diagrams.

y

An integer vector specifying persistence diagram labels (unused for now).

Returns

The class itself invisibly.


Method transform()

Applies the class on a sample of persistence diagrams.

Usage
PreprocessingStep$transform(X)
Arguments
X

A list of 2-column tibble::tibbles specifying a sample of persistence diagrams.

Returns

A list of 2-column tibble::tibbles storing the preprocessed persistence diagrams.


Method fit_transform()

Applies sequentially the ⁠$fit()⁠ and ⁠$transform()⁠ methods on a sample of persistence diagrams in a more efficient way than calling them directly.

Usage
PreprocessingStep$fit_transform(X, y = NULL)
Arguments
X

A list of 2-column tibble::tibbles specifying a sample of persistence diagrams.

y

An integer vector specifying persistence diagram labels (unused for now).

Returns

A list of 2-column tibble::tibbles storing the preprocessed persistence diagrams.


Method clone()

The objects of this class are cloneable with this method.

Usage
PreprocessingStep$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Author(s)

Mathieu Carrière


rgudhi documentation built on March 31, 2023, 11:38 p.m.