| Hyperparameter | R Documentation |
An algorithm hyperparameter with optional validation. Implemented as a python descriptor object.
validationvalidation function
validation_messagevalidation message
namename of hyperparameter validate
data_typefunction to convert data type
objparent class to alter
descriptoractive binding that mimic's python descriptor class
new()Hyperparameter$new( name, validate = function(x) TRUE, validation_message = "", data_type = as.character, obj )
name(str): The name of this hyperparameter validate
validate(callable[object]->[bool]): A validation function or list of validation functions. Each function validates an object and returns False if the object value is invalid for this hyperparameter.
validation_message(str): A usage guide to display on validation failure.
data_type: function to convert data types
obj(R6Class): R6Class for descriptor class to modify
validate()Validate value
Hyperparameter$validate(value = NULL)
value: values to be validated
serialize_all()Return all non-None “hyperparameter“ values on “obj“ as a “dict[str,str].“
Hyperparameter$serialize_all(obj)
obj: R object to be serialized
clone()The objects of this class are cloneable with this method.
Hyperparameter$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.