class HyperParameter extends Cloneable
The HyperParameter
class provides a simple and flexible means for handling
model hyper-parameters. A model may have one or more hyper-parameters that
are organized into a map 'name -> (value, defaultV)'.
- Alphabetic
- By Inheritance
- HyperParameter
- Cloneable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new HyperParameter()
Value Members
- def ++(hp2: HyperParameter): HyperParameter
Concatenate 'this' hyper-parameter map with a second hyper-parameter map.
Concatenate 'this' hyper-parameter map with a second hyper-parameter map.
- hp2
the second hyper-parameter map
- def +=(name: String, value: Double, defaultV: Double): Unit
Add a new hyper-parameter to the map.
Add a new hyper-parameter to the map.
- name
the name of the hyper-parameter
- value
the value of the hyper-parameter
- defaultV
the defualt value of the hyper-parameter
- def -=(name: String): Unit
Remove the hyper-parameter with the given name from the map.
Remove the hyper-parameter with the given name from the map.
- name
the name of the hyper-parameter
- def apply(name: String): Double
Given the 'name', return the hyper-parameter value.
Given the 'name', return the hyper-parameter value.
- name
the name of the hyper-parameter
- def default(name: String): Double
Given the 'name', return the hyper-parameter default value.
Given the 'name', return the hyper-parameter default value.
- name
the name of the hyper-parameter
- def toString(): String
Convert the hyper-parameter map to a string.
Convert the hyper-parameter map to a string.
- Definition Classes
- HyperParameter → AnyRef → Any
- def update(name: String, value: Double): Unit
Given the 'name', update the hyper-parameter value.
Given the 'name', update the hyper-parameter value.
- name
the name of the hyper-parameter
- value
the value of the hyper-parameter
- def updateDefault(name: String, defaultV: Double): Unit
Given the 'name', update the hyper-parameter default value.
Given the 'name', update the hyper-parameter default value.
- name
the name of the hyper-parameter
- defaultV
the defualt value of the hyper-parameter
- def updateReturn(nvs: (String, Double)*): HyperParameter
Create and return a new set of hyper-parameters, updating the one with the given 'name'.
Create and return a new set of hyper-parameters, updating the one with the given 'name'.
- nvs
the name-value pair for the hyper-parameter
- def updateReturn(name: String, value: Double): HyperParameter
Create and return a new set of hyper-parameters, updating the one with the given 'name'.
Create and return a new set of hyper-parameters, updating the one with the given 'name'.
- name
the name of the hyper-parameter
- value
the value of the hyper-parameter