private void AlgoritmAccurancy(weka.core.Instances insts, Classifier classifier, string algoritmName, bool?isNominal = null) { ClassifierManager manager = new ClassifierManager(insts); manager.EliminateTargetAttribute(); if (isNominal == true) { manager.Discreatization(manager.Instance); } else if (isNominal == false) { manager.NominalToBinary(manager.Instance); manager.Normalization(manager.Instance); } manager.Randomize(manager.Instance); TrainModel model = manager.Train(manager.Instance, classifier); SuccessfulAlgorithm.Add(new AlgorithmModel() { SuccessRatio = manager.FindAccurancy(), AlgorithName = algoritmName, TrainModel = model });; }