Beispiel #1
0
        public void TestRPROPFolded()
        {
            IMLDataSet trainingData = XOR.CreateNoisyXORDataSet(10);

            BasicNetwork network = NetworkUtil.CreateXORNetworkUntrained();

            var      folded      = new FoldedDataSet(trainingData);
            IMLTrain train       = new ResilientPropagation(network, folded);
            var      trainFolded = new CrossValidationKFold(train, 4);

            EncogUtility.TrainToError(trainFolded, 0.2);

            XOR.VerifyXOR((IMLRegression)trainFolded.Method, 0.2);
        }