public ProcessConfiguration GetConfiguration(PipelineContext context) { var pc = new ProcessConfiguration(); pc["LearningAlgorithm"] = LearningAlgorithm.ToString(); pc["Iterations"] = Iterations.ToString(); pc["Dimensions"] = Dimensions; pc["LearningRate"] = LearningRate.ToString(); pc["TrainFile"] = context.GetAsString("TrainFile"); pc["TestFile"] = context.GetAsString("TestFile"); pc["AdditionalArgs"] = _additionalArgs; return(pc); }
private string BuildArguments(string trainFile, string testFile, string testOutput) { return(String.Format("-task r -train {0} -test {1} -method {2} -iter {3} -dim {4} -learn_rate {5} -out {6} -regular {7}", trainFile, testFile, LearningAlgorithm.ToString().ToLower(), Iterations, Dimensions, LearningRate, testOutput, Regularization)); }