Ejemplo n.º 1
0
/*************************************************************************
Like MLPCreateB0, but for ensembles.

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

	if err := mlpbase.MlpCreateb0(nin, nout, b, d, net); err != nil {
		return err
	}
	return MlpeCreateFromNetwork(net, ensemblesize, ensemble)
}
Ejemplo n.º 2
0
/*************************************************************************
Creates  neural  network  with  NIn  inputs,  NOut outputs, without hidden
layers with non-linear output layer. Network weights are filled with small
random values.

Activation function of the output layer takes values:

	(B, +INF), if D>=0
or
	(-INF, B), if D<0.

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