Skip to content

Commit 3803bec

Browse files
committed
ScalarType ---> DataKind (massive renaming)
1 parent 0b99ebe commit 3803bec

File tree

55 files changed

+392
-392
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+392
-392
lines changed

docs/samples/Microsoft.ML.Samples/Dynamic/Calibrator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public static void Example()
3434
HasHeader = true,
3535
Columns = new[]
3636
{
37-
new TextLoader.Column("Sentiment", ScalarType.Boolean, 0),
38-
new TextLoader.Column("SentimentText", ScalarType.String, 1)
37+
new TextLoader.Column("Sentiment", DataKind.Boolean, 0),
38+
new TextLoader.Column("SentimentText", DataKind.String, 1)
3939
}
4040
});
4141

docs/samples/Microsoft.ML.Samples/Dynamic/FeatureSelectionTransform.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public static void Example()
3333
var reader = ml.Data.CreateTextLoader(
3434
columns: new[]
3535
{
36-
new TextLoader.Column("Label", ScalarType.Boolean, 0),
37-
new TextLoader.Column("Features", ScalarType.Single, new [] { new TextLoader.Range(1, 9) })
36+
new TextLoader.Column("Label", DataKind.Boolean, 0),
37+
new TextLoader.Column("Features", DataKind.Single, new [] { new TextLoader.Range(1, 9) })
3838
},
3939
hasHeader: true
4040
);

docs/samples/Microsoft.ML.Samples/Dynamic/FieldAwareFactorizationMachine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public static void Example()
2525
var reader = mlContext.Data.CreateTextLoader(
2626
columns: new[]
2727
{
28-
new TextLoader.Column("Sentiment", ScalarType.Boolean, 0),
29-
new TextLoader.Column("SentimentText", ScalarType.String, 1)
28+
new TextLoader.Column("Sentiment", DataKind.Boolean, 0),
29+
new TextLoader.Column("SentimentText", DataKind.String, 1)
3030
},
3131
hasHeader: true
3232
);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public static void Example()
2727
{
2828
Columns = new[]
2929
{
30-
new TextLoader.Column("ImagePath", ScalarType.String, 0),
31-
new TextLoader.Column("Name", ScalarType.String, 1),
30+
new TextLoader.Column("ImagePath", DataKind.String, 0),
31+
new TextLoader.Column("Name", DataKind.String, 1),
3232
}
3333
}).Read(imagesDataFile);
3434

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public static void Example()
2828
{
2929
Columns = new[]
3030
{
31-
new TextLoader.Column("ImagePath", ScalarType.String, 0),
32-
new TextLoader.Column("Name", ScalarType.String, 1),
31+
new TextLoader.Column("ImagePath", DataKind.String, 0),
32+
new TextLoader.Column("Name", DataKind.String, 1),
3333
}
3434
}).Read(imagesDataFile);
3535

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public static void Example()
2727
{
2828
Columns = new[]
2929
{
30-
new TextLoader.Column("ImagePath", ScalarType.String, 0),
31-
new TextLoader.Column("Name", ScalarType.String, 1),
30+
new TextLoader.Column("ImagePath", DataKind.String, 0),
31+
new TextLoader.Column("Name", DataKind.String, 1),
3232
}
3333
}).Read(imagesDataFile);
3434

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public static void Example()
2727
{
2828
Columns = new[]
2929
{
30-
new TextLoader.Column("ImagePath", ScalarType.String, 0),
31-
new TextLoader.Column("Name", ScalarType.String, 1),
30+
new TextLoader.Column("ImagePath", DataKind.String, 0),
31+
new TextLoader.Column("Name", DataKind.String, 1),
3232
}
3333
}).Read(imagesDataFile);
3434

docs/samples/Microsoft.ML.Samples/Dynamic/LogisticRegression.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@ public static void Example()
3737
HasHeader = true,
3838
Columns = new[]
3939
{
40-
new TextLoader.Column("age", ScalarType.Single, 0),
41-
new TextLoader.Column("workclass", ScalarType.String, 1),
42-
new TextLoader.Column("fnlwgt", ScalarType.Single, 2),
43-
new TextLoader.Column("education", ScalarType.String, 3),
44-
new TextLoader.Column("education-num", ScalarType.Single, 4),
45-
new TextLoader.Column("marital-status", ScalarType.String, 5),
46-
new TextLoader.Column("occupation", ScalarType.String, 6),
47-
new TextLoader.Column("relationship", ScalarType.String, 7),
48-
new TextLoader.Column("ethnicity", ScalarType.String, 8),
49-
new TextLoader.Column("sex", ScalarType.String, 9),
50-
new TextLoader.Column("capital-gain", ScalarType.Single, 10),
51-
new TextLoader.Column("capital-loss", ScalarType.Single, 11),
52-
new TextLoader.Column("hours-per-week", ScalarType.Single, 12),
53-
new TextLoader.Column("native-country", ScalarType.String, 13),
54-
new TextLoader.Column("Label", ScalarType.Boolean, 14)
40+
new TextLoader.Column("age", DataKind.Single, 0),
41+
new TextLoader.Column("workclass", DataKind.String, 1),
42+
new TextLoader.Column("fnlwgt", DataKind.Single, 2),
43+
new TextLoader.Column("education", DataKind.String, 3),
44+
new TextLoader.Column("education-num", DataKind.Single, 4),
45+
new TextLoader.Column("marital-status", DataKind.String, 5),
46+
new TextLoader.Column("occupation", DataKind.String, 6),
47+
new TextLoader.Column("relationship", DataKind.String, 7),
48+
new TextLoader.Column("ethnicity", DataKind.String, 8),
49+
new TextLoader.Column("sex", DataKind.String, 9),
50+
new TextLoader.Column("capital-gain", DataKind.Single, 10),
51+
new TextLoader.Column("capital-loss", DataKind.Single, 11),
52+
new TextLoader.Column("hours-per-week", DataKind.Single, 12),
53+
new TextLoader.Column("native-country", DataKind.String, 13),
54+
new TextLoader.Column("Label", DataKind.Boolean, 14)
5555
}
5656
});
5757

docs/samples/Microsoft.ML.Samples/Dynamic/TensorFlow/TextClassification.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public static void Example()
3636
var lookupMap = mlContext.Data.ReadFromTextFile(Path.Combine(modelLocation, "imdb_word_index.csv"),
3737
columns: new[]
3838
{
39-
new TextLoader.Column("Words", ScalarType.String, 0),
40-
new TextLoader.Column("Ids", ScalarType.Int32, 1),
39+
new TextLoader.Column("Words", DataKind.String, 0),
40+
new TextLoader.Column("Ids", DataKind.Int32, 1),
4141
},
4242
separatorChar: ','
4343
);

docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/BinaryClassification/SDCALogisticRegression.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public static void Example()
2828
var reader = mlContext.Data.CreateTextLoader(
2929
columns: new[]
3030
{
31-
new TextLoader.Column("Sentiment", ScalarType.Boolean, 0),
32-
new TextLoader.Column("SentimentText", ScalarType.String, 1)
31+
new TextLoader.Column("Sentiment", DataKind.Boolean, 0),
32+
new TextLoader.Column("SentimentText", DataKind.String, 1)
3333
},
3434
hasHeader: true
3535
);

0 commit comments

Comments
 (0)