示例#1
0
文件: mlpe.go 项目: rutmir/pr.optima
/*************************************************************************
Like MLPCreateR1, but for ensembles.

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

	if err := mlpbase.MlpCreater1(nin, nhid, nout, a, b, net); err != nil {
		return err
	}
	return MlpeCreateFromNetwork(net, ensemblesize, ensemble)
}
示例#2
0
/*************************************************************************
Same as MLPCreateR0, but with non-linear hidden layer.

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