Ejemplo n.º 1
0
// init registers the types so they can be GobEncoded and GobDecoded
func init() {
	gob.Register(Sigmoid{})
	gob.Register(Linear{})
	gob.Register(Tanh{})
	gob.Register(LinearTanh{})

	common.Register(Sigmoid{})
	common.Register(Linear{})
	common.Register(Tanh{})
	common.Register(LinearTanh{})
}
Ejemplo n.º 2
0
Archivo: scale.go Proyecto: reggo/reggo
func init() {
	gob.Register(None{})
	gob.Register(Linear{})
	gob.Register(Normal{})
	//gob.Register(&Probability{})

	common.Register(&None{})
	common.Register(&Linear{})
	common.Register(&Normal{})
	common.Register(&InnerNormal{})
	//common.Register(&Probability{})
}
Ejemplo n.º 3
0
Archivo: loss.go Proyecto: reggo/reggo
// init registers all of the types into the common registry for
// encoding and decoding
func init() {
	gob.Register(SquaredDistance{})
	gob.Register(ManhattanDistance{})
	gob.Register(RelativeSquared(0))
	gob.Register(LogSquared{})
	common.Register(SquaredDistance{})
	common.Register(ManhattanDistance{})
	a := RelativeSquared(0)
	common.Register(a)
	b := RelativeLog(0)
	common.Register(b)
	common.Register(LogSquared{})
}
Ejemplo n.º 4
0
func init() {
	common.Register(Sink{})
}
Ejemplo n.º 5
0
Archivo: nnet.go Proyecto: reggo/reggo
func init() {
	common.Register(&Net{})
}
Ejemplo n.º 6
0
func init() {
	gob.Register(SumNeuron{Activator: LinearTanh{}})
	common.Register(SumNeuron{})
}
Ejemplo n.º 7
0
func init() {
	gob.Register(SqExpIso{})
	common.Register(SqExpIso{})
}