Numpy-Neuron / nn /args.go
Jensen-holm's picture
re configured the Alg interface and the NN sttuct, now we have to work
a4aa491
raw
history blame
395 Bytes
package nn
type NNArgs struct {
epochs int
hiddenSize int
learningRate float64
activationFunc func()
}
func NewArgs(argsMap map[string]interface{}) *NNArgs {
return &NNArgs{
epochs: argsMap["epochs"].(int),
hiddenSize: argsMap["hidden_size"].(int),
learningRate: argsMap["learning_rate"].(float64),
activationFunc: argsMap["activation"].(func()),
}
}