/************************************************************************* Like MLPCreateR1, but for ensembles. -- ALGLIB -- Copyright 18.02.2009 by Bochkanov Sergey *************************************************************************/ func MlpeCreateR1(nin, nhid, nout int, a, b float64, ensemblesize int, ensemble *mlpensemble) error { net := mlpbase.NewMlp() if err := mlpbase.MlpCreater1(nin, nhid, nout, a, b, net); err != nil { return err } return MlpeCreateFromNetwork(net, ensemblesize, ensemble) }
/************************************************************************* Same as MLPCreateR0, but with non-linear hidden layer. -- ALGLIB -- Copyright 30.03.2008 by Bochkanov Sergey *************************************************************************/ func MlpCreateR1(nin, nhid, nout int, a, b float64) *MultiLayerPerceptron { network := NewMlp() mlpbase.MlpCreater1(nin, nhid, nout, a, b, network.innerobj) return network }