Exemple #1
0
        //不重复遗传算法
        public static FIntelligenc <GeneOnlyData> CreateOnlyGene(int maxGeneNum, int elementTypeNum, Func <GeneOnlyData, float> callBack = null)
        {
            FIntelligenc <GeneOnlyData> gd = new FIntelligenc <GeneOnlyData>();

            gd.CreateGene(maxGeneNum, elementTypeNum, elementTypeNum, callBack);
            return(gd);
        }
Exemple #2
0
        //非监督神经遗传算法
        public static FIntelligenc <UnLearnNeural> CreateUnLearnNeural(int maxGeneNum, int intputNum, int outputNum, int layerNum = 1, int neuralNum = 10, Func <UnLearnNeural, float> callBack = null)
        {
            FIntelligenc <UnLearnNeural> gd = new FIntelligenc <UnLearnNeural>();

            gd.CreateGene(maxGeneNum, 0, 0, callBack, (i, f) =>
            {
                f.CreateNet(intputNum, outputNum, layerNum, neuralNum);
            });
            return(gd);
        }