Exemplo n.º 1
0
 public void TestRandomize()
 {
     var algo = new TrialAlgo();
     var anneal = new TrainAnneal(algo, new TrialScore());
     anneal.PerformRandomize(algo.LongTermMemory);
     anneal.FinishTraining();
     Assert.AreEqual(0, algo.LongTermMemory[0], AIFH.DefaultPrecision);
 }
Exemplo n.º 2
0
        public void TestRandomize()
        {
            var algo   = new TrialAlgo();
            var anneal = new TrainAnneal(algo, new TrialScore());

            anneal.PerformRandomize(algo.LongTermMemory);
            anneal.FinishTraining();
            Assert.AreEqual(0, algo.LongTermMemory[0], AIFH.DefaultPrecision);
        }