예제 #1
0
파일: mlpe.go 프로젝트: rutmir/pr.optima
/*************************************************************************
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)
}
예제 #2
0
파일: neural.go 프로젝트: rutmir/pr.optima
/*************************************************************************
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
}