Exemplo n.º 1
0
/*************************************************************************
Like MLPCreateB1, but for ensembles.

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

	if err := mlpbase.MlpCreateb1(nin, nhid, nout, b, d, net); err != nil {
		return err
	}
	return MlpeCreateFromNetwork(net, ensemblesize, ensemble)
}
Exemplo n.º 2
0
/*************************************************************************
Same as MLPCreateB0 but with non-linear hidden layer.

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