Example #1
0
        public double[][] Predict(double[][] x)
        {
            CSVUtils.WriteMatrix(Config.PredictFeaturesFile, x);

            foreach (var line in OpenCommunication("Predict"))
            {
                Console.WriteLine(line);
            }

            return(CSVUtils.ReadMatrix(Config.PredictPredictionsFile));
        }
Example #2
0
 public IEnumerable <string> Train(double[][] x, double[][] y)
 {
     CSVUtils.WriteMatrix(Config.TrainFeaturesFile, x);
     CSVUtils.WriteMatrix(Config.TrainTargetFile, y);
     return(OpenCommunication("Train"));
 }