Esempio n. 1
0
/*************************************************************************
Like MLPCreateB2, but for ensembles.

  -- ALGLIB --
	 Copyright 18.02.2009 by Bochkanov Sergey
*************************************************************************/
func MlpeCreateB2(nin, nhid1, nhid2, nout int, b, d float64, ensemblesize int, ensemble *mlpensemble) error {
	net := mlpbase.NewMlp()

	if err := mlpbase.MlpCreateb2(nin, nhid1, nhid2, nout, b, d, net); err != nil {
		return err
	}
	return MlpeCreateFromNetwork(net, ensemblesize, ensemble)
}
Esempio n. 2
0
/*************************************************************************
Same as MLPCreateB0 but with two non-linear hidden layers.

  -- ALGLIB --
	 Copyright 30.03.2008 by Bochkanov Sergey
*************************************************************************/
func MlpCreateB2(nin, nhid1, nhid2, nout int, b, d float64) *MultiLayerPerceptron {
	network := NewMlp()
	mlpbase.MlpCreateb2(nin, nhid1, nhid2, nout, b, d, network.innerobj)
	return network
}