Skip to content

Commit adb53c4

Browse files
authored
Update Readme
1 parent 002d6b4 commit adb53c4

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

README.md

+10-13
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Along with these ML capabilities, this first release of ML.NET also brings the f
1818

1919
ML.NET runs on Windows, Linux, and macOS using [.NET Core](https://github.com/dotnet/core), or Windows using .NET Framework. 64 bit is supported on all platforms. 32 bit is supported on Windows, except for TensorFlow, LightGBM, and ONNX related functionality.
2020

21-
The current release is 0.10. Check out the [release notes](docs/release-notes/0.10/release-0.10.md) to see what's new.
21+
The current release is 0.11. Check out the [release notes](docs/release-notes/0.11/release-0.11.md) to see what's new.
2222

2323
First, ensure you have installed [.NET Core 2.1](https://www.microsoft.com/net/learn/get-started) or later. ML.NET also works on the .NET Framework 4.6.1 or later, but 4.7.2 or later is recommended.
2424

@@ -46,7 +46,7 @@ To build ML.NET from source please visit our [developers guide](docs/project-doc
4646

4747
| | Debug | Release |
4848
|:---|----------------:|------------------:|
49-
|**Linux**|[![x64-debug](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/machinelearning/MachineLearning-CI?branchName=master&jobname=Linux&configuration=Build_Debug)](https://dnceng.visualstudio.com/DotNet-Public/_build/latest?definitionId=104&branch=master)|[![x64-release](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/machinelearning/MachineLearning-CI?branchName=master&jobname=Linux&configuration=Build_Release)](https://dnceng.visualstudio.com/DotNet-Public/_build/latest?definitionId=104&branch=master)|
49+
|**CentOS**|[![x64-debug](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/machinelearning/MachineLearning-CI?branchName=master&jobname=CentOS&configuration=Build_Debug_Intrinsics)](https://dnceng.visualstudio.com/DotNet-Public/_build/latest?definitionId=104&branch=master)|[![x64-release](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/machinelearning/MachineLearning-CI?branchName=master&jobname=CentOS&configuration=Build_Release)](https://dnceng.visualstudio.com/DotNet-Public/_build/latest?definitionId=104&branch=master)|
5050
|**macOS**|[![x64-debug](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/machinelearning/MachineLearning-CI?branchName=master&jobname=macOS&configuration=Build_Debug)](https://dnceng.visualstudio.com/DotNet-Public/_build/latest?definitionId=104&branch=master)|[![x64-release](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/machinelearning/MachineLearning-CI?branchName=master&jobname=macOS&configuration=Build_Release)](https://dnceng.visualstudio.com/DotNet-Public/_build/latest?definitionId=104&branch=master)|
5151
|**Windows x64**|[![x64-debug](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/machinelearning/MachineLearning-CI?branchName=master&jobname=Windows_x64&configuration=Build_Debug)](https://dnceng.visualstudio.com/DotNet-Public/_build/latest?definitionId=104&branch=master)|[![x64-release](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/machinelearning/MachineLearning-CI?branchName=master&jobname=Windows_x64&configuration=Build_Release)](https://dnceng.visualstudio.com/DotNet-Public/_build/latest?definitionId=104&branch=master)|
5252
|**Windows x86**|[![Build Status](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/machinelearning/MachineLearning-CI?branchName=master&jobName=Windows_x86&configuration=Build_Debug)](https://dnceng.visualstudio.com/public/_build/latest?definitionId=104?branchName=master)|[![Build Status](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet/machinelearning/MachineLearning-CI?branchName=master&jobName=Windows_x86&configuration=Build_Release)](https://dnceng.visualstudio.com/public/_build/latest?definitionId=104?branchName=master)|
@@ -69,16 +69,14 @@ Here's an example of code to train a model to predict sentiment from text sample
6969

7070
```C#
7171
var mlContext = new MLContext();
72-
var reader = mlContext.Data.CreateTextLoader(new TextLoader.Arguments
73-
{
74-
Column = new[] {
75-
new TextLoader.Column("SentimentText", DataKind.Text, 1),
76-
new TextLoader.Column("Label", DataKind.Bool, 0),
77-
},
78-
HasHeader = true,
79-
Separator = ","
80-
});
81-
var data = reader.Read(dataPath);
72+
var loader = mlContext.Data.CreateTextLoader(new[]
73+
{
74+
new TextLoader.Column("SentimentText", DataKind.String, 1),
75+
new TextLoader.Column("Label", DataKind.Boolean, 0),
76+
},
77+
hasHeader: true,
78+
separatorChar: ',');
79+
var data = loader.Load(dataPath);
8280
var learningPipeline = mlContext.Transforms.Text.FeaturizeText("Features", "SentimentText")
8381
.Append(mlContext.BinaryClassification.Trainers.FastTree());
8482
var model = learningPipeline.Fit(data);
@@ -116,4 +114,3 @@ ML.NET is a [.NET Foundation](https://www.dotnetfoundation.org/projects) project
116114
There are many .NET related projects on GitHub.
117115

118116
- [.NET home repo](https://github.com/Microsoft/dotnet) - links to 100s of .NET projects, from Microsoft and the community.
119-

0 commit comments

Comments
 (0)