The base class for LESSRegressor and LESSClassifier
R6 class of LESSBase
less::BaseEstimator
-> less::SklearnEstimator
-> LESSBase
new()
Creates a new instance of R6 Class of LESSBase
LESSBase$new(replications = NULL, scobject = NULL, isFitted = FALSE)
replications
List to store the replications
scobject
Scaling object used for normalization (less::StandardScaler)
isFitted
Flag to check whether LESS is fitted
set_random_state()
Auxiliary function that sets random state attribute of the self class
LESSBase$set_random_state(random_state)
random_state
seed number to be set as random state
self
get_n_subsets()
Auxiliary function returning the number of subsets
LESSBase$get_n_subsets()
get_n_neighbors()
Auxiliary function returning the number of neighbors
LESSBase$get_n_neighbors()
get_frac()
Auxiliary function returning the percentage of samples used to set the number of neighbors
LESSBase$get_frac()
get_n_replications()
Auxiliary function returning the number of replications
LESSBase$get_n_replications()
get_d_normalize()
Auxiliary function returning the flag for normalization
LESSBase$get_d_normalize()
get_scaling()
Auxiliary function returning the flag for scaling
LESSBase$get_scaling()
get_val_size()
Auxiliary function returning the validation set size
LESSBase$get_val_size()
get_random_state()
Auxiliary function returning the random seed
LESSBase$get_random_state()
get_isFitted()
Auxiliary function returning the isFitted flag
LESSBase$get_isFitted()
get_replications()
Auxiliary function returning the isFitted flag
LESSBase$get_replications()
clone()
The objects of this class are cloneable with this method.
LESSBase$clone(deep = FALSE)
deep
Whether to make a deep clone.