public double[][] Predict(double[][] x) { CSVUtils.WriteMatrix(Config.PredictFeaturesFile, x); foreach (var line in OpenCommunication("Predict")) { Console.WriteLine(line); } return(CSVUtils.ReadMatrix(Config.PredictPredictionsFile)); }
public IEnumerable <string> Train(double[][] x, double[][] y) { CSVUtils.WriteMatrix(Config.TrainFeaturesFile, x); CSVUtils.WriteMatrix(Config.TrainTargetFile, y); return(OpenCommunication("Train")); }