/// <summary> /// Private method that trains a model on the current fold /// </summary> /// <param name="foldDirectories">Directory in which all the folds are placed</param> /// <param name="fold">the current fold under computation</param> /// <param name="concatenatedFile">training file that was created for this fold</param> /// <param name="silent">whether or not to be silent on the screen</param> /// <param name="learner">The svm learner with the relevant parameters</param> private void TrainFold(String[] foldDirectories, int fold, String concatenatedFile, bool silent, SVMLearn learner) { learner.ExecuteLearner("svm_learn.exe", concatenatedFile, Path.Combine(foldDirectories[fold], fold + ".model"), null, Path.Combine(foldDirectories[fold], fold + ".log.txt"), silent); }
/// <summary> /// Private method that trains a model on the current fold /// </summary> /// <param name="foldDirectories">Directory in which all the folds are placed</param> /// <param name="fold">the current fold under computation</param> /// <param name="concatenatedFile">training file that was created for this fold</param> /// <param name="silent">whether or not to be silent on the screen</param> /// <param name="learner">The svm learner with the relevant parameters</param> private void TrainFold(String[] foldDirectories, int fold, String concatenatedFile, bool silent, SVMLearn learner) { learner.ExecuteLearner("svm_learn.exe", concatenatedFile, Path.Combine(foldDirectories[fold], fold + ".model"), Path.Combine(foldDirectories[fold], fold + ".log.txt"), silent); }