## ------------------------------------------------
## Method `BaseEstimator$get_all_fields`
## ------------------------------------------------
TestClass <- R6::R6Class(classname = "TestClass",
inherit = BaseEstimator,
private = list(random_state = NULL))
exampleClass <- TestClass$new()
exampleClass$get_all_fields()
## ------------------------------------------------
## Method `BaseEstimator$get_attributes`
## ------------------------------------------------
exampleClass$get_attributes()
## ------------------------------------------------
## Method `BaseEstimator$set_random_state`
## ------------------------------------------------
exampleClass$set_random_state(2022)
Run the code above in your browser using DataLab