public EasyML(string modelName, string trainingDataPath, string testingDataPath, string saveModelPath, MLContext mlContext, string separator = ",") { this.PathToTrainingData = trainingDataPath; this.PathToTestingData = testingDataPath; this.SaveModelTo = Path.Combine(modelName, $"{modelName}_{DateTime.Now.ToString("yyyy-mm-dd hh-mm")}.zip"); this.MLContext = mlContext; dataExtractor = new DataExtraction(MLContext, PathToTrainingData); dataExtractor.ConstructDataStructure(separator); }
public EasyML(string modelName, MLContext mlContext, string separator = ",") { this.PathToTrainingData = Path.Combine(Environment.CurrentDirectory, "Data", "taxi-fare-train.csv"); this.PathToTestingData = Path.Combine(Environment.CurrentDirectory, "Data", "taxi-fare-test.csv"); this.SaveModelTo = Path.Combine(Environment.CurrentDirectory, "Data", $"{modelName}_{DateTime.Now.ToString("yyyy-mm-dd hh-mm")}.zip"); this.MLContext = mlContext; dataExtractor = new DataExtraction(MLContext, PathToTrainingData); dataExtractor.ConstructDataStructure(separator); }