| DiagramScaler | R Documentation |
This is a class for preprocessing persistence diagrams with a given list of scalers, such as those included in scikit-learn.
rgudhi::PythonClass -> rgudhi::SKLearnClass -> rgudhi::PreprocessingStep -> DiagramScaler
new()The DiagramScaler constructor.
DiagramScaler$new(use = FALSE, scalers = list())
useA boolean value specifying whether to use the class. Defaults
to FALSE.
scalersA list of scalers to be fit on the persistence diagrams.
Defaults to list() which is an empty list. Each element of the list
is a length-2 base::list with two elements:
the first one is a list of coordinates;
the second one is an instantiated scaler class. Choices are MaxAbsScaler, MinMaxScaler, RobustScaler or StandardScaler.
An object of class DiagramScaler.
clone()The objects of this class are cloneable with this method.
DiagramScaler$clone(deep = FALSE)
deepWhether to make a deep clone.
Mathieu Carrière
X <- seq_circle(10)
ac <- AlphaComplex$new(points = X)
st <- ac$create_simplex_tree()
dgm <- st$compute_persistence()$persistence_intervals_in_dimension(0)
ds <- DiagramScaler$new()
ds$apply(dgm)
ds$fit_transform(list(dgm))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.