/************************************************************************* Like MLPCreateC2, but for ensembles. -- ALGLIB -- Copyright 18.02.2009 by Bochkanov Sergey *************************************************************************/ func MlpeCreateC2(nin, nhid1, nhid2, nout, ensemblesize int, ensemble *mlpensemble) error { net := mlpbase.NewMlp() if err := mlpbase.MlpCreatec2(nin, nhid1, nhid2, nout, net); err != nil { return err } return MlpeCreateFromNetwork(net, ensemblesize, ensemble) }
/************************************************************************* Same as MLPCreateC0, but with two non-linear hidden layers. -- ALGLIB -- Copyright 04.11.2007 by Bochkanov Sergey *************************************************************************/ func MlpCreateC2(nin, nhid1, nhid2, nout int) *MultiLayerPerceptron { network := NewMlp() mlpbase.MlpCreatec2(nin, nhid1, nhid2, nout, network.innerobj) return network }