Accord.Neuro.Networks.DeepBeliefNetwork.CreateMixedNetwork C# (CSharp) Method

CreateMixedNetwork() public static method

Creates a Mixed-Bernoulli network.
public static CreateMixedNetwork ( IStochasticFunction visible, IStochasticFunction hidden, int inputsCount ) : DeepBeliefNetwork
visible IStochasticFunction The to be used in the first visible layer.
hidden IStochasticFunction The to be used in all other layers.
inputsCount int The number of inputs for the network.
return DeepBeliefNetwork
        public static DeepBeliefNetwork CreateMixedNetwork(IStochasticFunction visible,
            IStochasticFunction hidden, int inputsCount, params int[] hiddenNeurons)
        {
            DeepBeliefNetwork network = new DeepBeliefNetwork(hidden, inputsCount, hiddenNeurons);

            foreach (StochasticNeuron neuron in network.machines[0].Visible.Neurons)
                neuron.ActivationFunction = visible;

            return network;
        }