diff --git a/NYCTaxiMultiOutputRegression/README.md b/NYCTaxiMultiOutputRegression/README.md index 127aa72..2cc1d95 100644 --- a/NYCTaxiMultiOutputRegression/README.md +++ b/NYCTaxiMultiOutputRegression/README.md @@ -68,7 +68,7 @@ string TestDataPath = "NYCTaxi/test.csv"; MLContext mlContext = new MLContext(seed: 0); // STEP 1: Common data loading configuration -TextLoader textLoader = mlContext.Data.CreateTextReader(new[] +TextLoader textLoader = mlContext.Data.CreateTextLoader(new[] { new TextLoader.Column("VendorId", DataKind.Text, 0), new TextLoader.Column("RateCode", DataKind.Text, 1), @@ -83,8 +83,8 @@ TextLoader textLoader = mlContext.Data.CreateTextReader(new[] separatorChar: ',' ); -IDataView baseTrainingDataView = textLoader.Read(TrainDataPath); -IDataView testDataView = textLoader.Read(TestDataPath); +IDataView baseTrainingDataView = textLoader.Load(TrainDataPath); +IDataView testDataView = textLoader.Load(TestDataPath); ``` ### 2. Building the Pipeline @@ -159,4 +159,4 @@ Currently, evaluation (i.e. computing metrics such as Root Mean Square Error (RM // However, for multi-output regression its vector // var predicted = trainedModel.Transform(testDataView); // var metrics = mlContext.Regression.Evaluate(predicted, "Y", "RegScores"); -``` \ No newline at end of file +```