示例#1
0
        public MMLocPac(string LoadFromFile = "")
            : base("MMLocPac")
        {
            //TODO: change this to load from SaveLocPacToFile

            if (LoadFromFile.Length > 0)
            {
                EvoWeights = new EvolutionWeights(null);
                Network    = (ActivationNetwork)EvoWeights.LoadWeightsFromFile(LoadFromFile);
            }
            else
            {
                Network = new DeepBeliefNetwork(new BernoulliFunction(), InputCount, 10, OutputCount);
            }
        }
示例#2
0
        public MMPac(string LoadFromFile = "")
            : base("MMPac")
        {
            if (LoadFromFile.Length > 0)
            {
                EvoWeights = new EvolutionWeights(null);
                Network    = EvoWeights.LoadWeightsFromFile(LoadFromFile);
            }
            else
            {
                Network = new DeepBeliefNetwork(new BernoulliFunction(), InputCount, OutputCount);
            }

            //for (int i = 0; i < OutputCount; i++) PreviousOutput.Add(0);
        }
示例#3
0
        public MMLocPacMemory(string LoadFromFile = "")
            : base("MMLocPacMemory")
        {
            //TODO: change this to load from SaveLocPacToFile

            if (LoadFromFile.Length > 0)
            {
                EvoWeights = new EvolutionWeights(null);
                Network    = EvoWeights.LoadWeightsFromFile(LoadFromFile);

                InputCount = Network.InputsCount;
            }
            else
            {
                Network = new ActivationNetwork(new BipolarSigmoidFunction(sigmoidAlphaValue), InputCount, HiddenCount, OutputCount);
            }
        }