HyperParameter
The HyperParameter
class provides a simple and flexible means for handling model/optimization hyper-parameters. A model/optimizer may have one or more hyper-parameters that are organized into a map name -> (value, defaultV). Allows hyper-parameters to be changed without constant re-compilation or resorting to long arguments lists Usage: hp("eta") = 0.01
Attributes
- Graph
-
- Supertypes
-
trait Cloneableclass Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Concatenate this hyper-parameter map with a second hyper-parameter map.
Concatenate this hyper-parameter map with a second hyper-parameter map.
Value parameters
- hp2
-
the second hyper-parameter map
Attributes
Add a new hyper-parameter to the map.
Add a new hyper-parameter to the map.
Value parameters
- defaultV
-
the defualt value of the hyper-parameter
- name
-
the name of the hyper-parameter
- value
-
the value of the hyper-parameter
Attributes
Remove the hyper-parameter with the given name from the map.
Remove the hyper-parameter with the given name from the map.
Value parameters
- name
-
the name of the hyper-parameter
Attributes
Given the name, return the hyper-parameter value.
Given the name, return the hyper-parameter value.
Value parameters
- name
-
the name of the hyper-parameter
Attributes
Given the name, return the hyper-parameter default value.
Given the name, return the hyper-parameter default value.
Value parameters
- name
-
the name of the hyper-parameter
Attributes
Collect all values into an integer array.
Collect all values into an integer array.
Attributes
Collect all values into an integer array.
Collect all values into an integer array.
Attributes
Convert the hyper-parameter map to a string.
Convert the hyper-parameter map to a string.
Attributes
- Definition Classes
-
Any
Given the name, update the hyper-parameter value.
Given the name, update the hyper-parameter value.
Value parameters
- name
-
the name of the hyper-parameter
- value
-
the value of the hyper-parameter
Attributes
Create and return new hyper-parameters, updating the one with the given name.
Create and return new hyper-parameters, updating the one with the given name.
Value parameters
- name
-
the name of the hyper-parameter
- value
-
the value of the hyper-parameter
Attributes
Create and return new hyper-parameters, updating the one with the given nvs.
Create and return new hyper-parameters, updating the one with the given nvs.
Value parameters
- nvs
-
the name-value pair for the hyper-parameter