Exemple #1
0
/*************************************************************************
Like MLPCreate2, but for ensembles.

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

	if err := mlpbase.MlpCreate2(nin, nhid1, nhid2, nout, net); err != nil {
		return err
	}
	return MlpeCreateFromNetwork(net, ensemblesize, ensemble)
}
Exemple #2
0
/*************************************************************************
Same as MLPCreate0, but with two hidden layers (NHid1 and  NHid2  neurons)
with non-linear activation function. Output layer is linear.
 $ALL

  -- ALGLIB --
	 Copyright 04.11.2007 by Bochkanov Sergey
*************************************************************************/
func MlpCreate2(nin, nhid1, nhid2, nout int) *MultiLayerPerceptron {
	network := NewMlp()
	mlpbase.MlpCreate2(nin, nhid1, nhid2, nout, network.innerobj)
	return network
}