LESSBase {less}R Documentation

LESSBase

Description

The base class for LESSRegressor and LESSClassifier

Value

R6 class of LESSBase

Super classes

less::BaseEstimator -> less::SklearnEstimator -> LESSBase

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of R6 Class of LESSBase

Usage
LESSBase$new(replications = NULL, scobject = NULL, isFitted = FALSE)
Arguments
replications

List to store the replications

scobject

Scaling object used for normalization (less::StandardScaler)

isFitted

Flag to check whether LESS is fitted


Method set_random_state()

Auxiliary function that sets random state attribute of the self class

Usage
LESSBase$set_random_state(random_state)
Arguments
random_state

seed number to be set as random state

Returns

self


Method get_n_subsets()

Auxiliary function returning the number of subsets

Usage
LESSBase$get_n_subsets()

Method get_n_neighbors()

Auxiliary function returning the number of neighbors

Usage
LESSBase$get_n_neighbors()

Method get_frac()

Auxiliary function returning the percentage of samples used to set the number of neighbors

Usage
LESSBase$get_frac()

Method get_n_replications()

Auxiliary function returning the number of replications

Usage
LESSBase$get_n_replications()

Method get_d_normalize()

Auxiliary function returning the flag for normalization

Usage
LESSBase$get_d_normalize()

Method get_scaling()

Auxiliary function returning the flag for scaling

Usage
LESSBase$get_scaling()

Method get_val_size()

Auxiliary function returning the validation set size

Usage
LESSBase$get_val_size()

Method get_random_state()

Auxiliary function returning the random seed

Usage
LESSBase$get_random_state()

Method get_isFitted()

Auxiliary function returning the isFitted flag

Usage
LESSBase$get_isFitted()

Method get_replications()

Auxiliary function returning the isFitted flag

Usage
LESSBase$get_replications()

Method clone()

The objects of this class are cloneable with this method.

Usage
LESSBase$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


[Package less version 0.1.0 Index]