/************************************************************************* Like MLPCreateR2, but for ensembles. -- ALGLIB -- Copyright 18.02.2009 by Bochkanov Sergey *************************************************************************/ func MlpeCreateR2(nin, nhid1, nhid2, nout int, a, b float64, ensemblesize int, ensemble *mlpensemble) error { net := mlpbase.NewMlp() if err := mlpbase.MlpCreater2(nin, nhid1, nhid2, nout, a, b, net); err != nil { return err } return MlpeCreateFromNetwork(net, ensemblesize, ensemble) }
/************************************************************************* Same as MLPCreateR0, but with two non-linear hidden layers. -- ALGLIB -- Copyright 30.03.2008 by Bochkanov Sergey *************************************************************************/ func MlpCreateR2(nin, nhid1, nhid2, nout int, a, b float64) *MultiLayerPerceptron { network := NewMlp() mlpbase.MlpCreater2(nin, nhid1, nhid2, nout, a, b, network.innerobj) return network }