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

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

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

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