private void ReadRules() { List <string> classifierFileNames = new List <string> { j48File, nngeFile }; J48 j48Model = new J48(); NNge nngeModel = new NNge(); foreach (var file in classifierFileNames) { //Checking if j48 or nnge file if (file.Contains("j48")) { j48Model.ReadRules(file); wekaModels.Add(j48Model); } else { nngeModel.ReadRules(file); wekaModels.Add(nngeModel); } } }
private void ReadRules() { List <string> classifierFileNames = new List <string> { j48File, nngeFile }; J48 j48Model = new J48(); NNge nngeModel = new NNge(); foreach (var file in classifierFileNames) { //Checking if j48 or nnge file if (file.Contains("j48")) { j48Model.ReadRules(file); wekaModels.Add(j48Model); //inputList[int.Parse(txtNum.Text) - 1].J48ModelAccuracy = j48Model.Accuracy; } else { nngeModel.ReadRules(file); wekaModels.Add(nngeModel); //inputList[int.Parse(txtNum.Text) - 1].NNgeAccuracy = nngeModel.Accuracy; } } }