HyperParameter

scalation.HyperParameter
class HyperParameter extends Cloneable

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 Cloneable
class Object
trait Matchable
class 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

def +=(name: String, value: ValueType, defaultV: ValueType): Unit

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

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.

Value parameters

name

the name of the hyper-parameter

Attributes

def apply(name: String): ValueType

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

def default(name: String): ValueType

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

def toDouble: Array[Double]

Collect all values into an integer array.

Collect all values into an integer array.

Attributes

def toInt: Array[Int]

Collect all values into an integer array.

Collect all values into an integer array.

Attributes

override def toString: String

Convert the hyper-parameter map to a string.

Convert the hyper-parameter map to a string.

Attributes

Definition Classes
Any
def update(name: String, value: ValueType): Unit

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

def updateReturn(name: String, value: ValueType): HyperParameter

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

def updateReturn(nvs: (String, ValueType)*): HyperParameter

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

Attributes