Example #1
0
/*************************************************************************
Like MLPCreate0, but for ensembles.

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

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

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