// 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{}) }
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{}) }
// 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{}) }
func init() { common.Register(Sink{}) }
func init() { common.Register(&Net{}) }
func init() { gob.Register(SumNeuron{Activator: LinearTanh{}}) common.Register(SumNeuron{}) }
func init() { gob.Register(SqExpIso{}) common.Register(SqExpIso{}) }