Parameters
Params
softneuro.core.Params(*args, **kwargs)
A special dictionary class that stores parameters.
This is a private class of softneuro, instance can not be constructed directly.
This object is pairs of key and value to provide parameters to layers, routines, and inputs/outputs in the network. Although it is quite similar to Dictionary of Python, it allows only string
for keys and only bool
, int
etc. for values.
Complete list of the available types for value is shown below.
List of available types for value
- None
- bool
- bool list
- int
- int list
- float
- float list
- str
- str list
- Params
Example
layer.params['padding'] = 'same'
layer.params['dilations'] = [2, 2]