Skip to content

Commit aa27507

Browse files
committed
merge fix
1 parent e01ebe5 commit aa27507

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

docs/samples/Microsoft.ML.Samples/Dynamic/ImageAnalytics/ConvertToGrayScale.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static void Example()
2323
// hotdog.jpg hotdog
2424
// tomato.jpg tomato
2525

26-
var data = mlContext.Data.CreateTextLoader(new TextLoader.Arguments()
26+
var data = mlContext.Data.CreateTextLoader(new TextLoader.Options()
2727
{
2828
Columns = new[]
2929
{

docs/samples/Microsoft.ML.Samples/Dynamic/ImageAnalytics/ExtractPixels.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void Example()
2424
// hotdog.jpg hotdog
2525
// tomato.jpg tomato
2626

27-
var data = mlContext.Data.CreateTextLoader(new TextLoader.Arguments()
27+
var data = mlContext.Data.CreateTextLoader(new TextLoader.Options()
2828
{
2929
Columns = new[]
3030
{

docs/samples/Microsoft.ML.Samples/Dynamic/ImageAnalytics/LoadImages.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static void Example()
2323
// hotdog.jpg hotdog
2424
// tomato.jpg tomato
2525

26-
var data = mlContext.Data.CreateTextLoader(new TextLoader.Arguments()
26+
var data = mlContext.Data.CreateTextLoader(new TextLoader.Options()
2727
{
2828
Columns = new[]
2929
{

docs/samples/Microsoft.ML.Samples/Dynamic/ImageAnalytics/ResizeImages.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static void Example()
2323
// hotdog.jpg hotdog
2424
// tomato.jpg tomato
2525

26-
var data = mlContext.Data.CreateTextLoader(new TextLoader.Arguments()
26+
var data = mlContext.Data.CreateTextLoader(new TextLoader.Options()
2727
{
2828
Columns = new[]
2929
{

src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ private static bool TryParseSchema(IHost host, IMultiStreamSource files,
13031303
}
13041304

13051305
/// <summary>
1306-
/// Checks whether the source contains the valid TextLoader.Arguments depiction.
1306+
/// Checks whether the source contains the valid TextLoader.Options depiction.
13071307
/// </summary>
13081308
internal static bool FileContainsValidSchema(IHostEnvironment env, IMultiStreamSource files, out Options options)
13091309
{
@@ -1410,6 +1410,9 @@ void ICanSaveModel.Save(ModelSaveContext ctx)
14101410
_bindings.Save(ctx);
14111411
}
14121412

1413+
/// <summary>
1414+
/// The output <see cref="DataViewSchema"/> that will be produced by the reader.
1415+
/// </summary>
14131416
public DataViewSchema GetOutputSchema() => _bindings.OutputSchema;
14141417

14151418
/// <summary>

test/Microsoft.ML.Predictor.Tests/TestPredictors.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ public void CompareSvmPredictorResultsToLibSvm()
18061806
{
18071807
using (var env = new LocalEnvironment(1, conc: 1))
18081808
{
1809-
IDataView trainView = new TextLoader(env, new TextLoader.Arguments(), new MultiFileSource(GetDataPath(TestDatasets.mnistOneClass.trainFilename)));
1809+
IDataView trainView = new TextLoader(env, new TextLoader.Options(), new MultiFileSource(GetDataPath(TestDatasets.mnistOneClass.trainFilename)));
18101810
trainView =
18111811
NormalizeTransform.Create(env,
18121812
new NormalizeTransform.MinMaxArguments()
@@ -1815,7 +1815,7 @@ public void CompareSvmPredictorResultsToLibSvm()
18151815
},
18161816
trainView);
18171817
var trainData = new RoleMappedData(trainView, "Label", "Features");
1818-
IDataView testView = new TextLoader(env, new TextLoader.Arguments(), new MultiFileSource(GetDataPath(TestDatasets.mnistOneClass.testFilename)));
1818+
IDataView testView = new TextLoader(env, new TextLoader.Options(), new MultiFileSource(GetDataPath(TestDatasets.mnistOneClass.testFilename)));
18191819
ApplyTransformUtils.ApplyAllTransformsToData(env, trainView, testView);
18201820
var testData = new RoleMappedData(testView, "Label", "Features");
18211821

test/Microsoft.ML.Tests/AnomalyDetectionTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void RandomizedPcaTrainerBaselineTest()
3232
var mlContext = new MLContext(seed: 1, conc: 1);
3333
string featureColumn = "NumericFeatures";
3434

35-
var reader = new TextLoader(Env, new TextLoader.Arguments()
35+
var reader = new TextLoader(Env, new TextLoader.Options()
3636
{
3737
HasHeader = true,
3838
Separator = "\t",

0 commit comments

Comments
 (0)