Skip to content

Commit

Permalink
update sample in README.MD with 0.2 features. (#304)
Browse files Browse the repository at this point in the history
* update sample with new text loader API.

* update with 0.2 stuff.
  • Loading branch information
codemzs authored Jun 5, 2018
1 parent a5faca6 commit ab4108d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Along with these ML capabilities this first release of ML.NET also brings the fi

ML.NET runs on Windows, Linux, and macOS - any platform where 64 bit [.NET Core](https://github.com/dotnet/core) or later is available.

The current release is 0.1. Check out the [release notes](docs/release-notes/0.1/release-0.1.md).
The current release is 0.2. Check out the [release notes](docs/release-notes/0.2/release-0.2.md).

First ensure you have installed [.NET Core 2.0](https://www.microsoft.com/net/learn/get-started) or later. ML.NET also works on the .NET Framework. Note that ML.NET currently must run in a 64 bit process.

Expand Down Expand Up @@ -66,7 +66,7 @@ Here's an example of code to train a model to predict sentiment from text sample

```C#
var pipeline = new LearningPipeline();
pipeline.Add(new TextLoader<SentimentData>(dataPath, separator: ","));
pipeline.Add(new TextLoader(dataPath).CreateFrom<SentimentData>(separator: ','));
pipeline.Add(new TextFeaturizer("Features", "SentimentText"));
pipeline.Add(new FastTreeBinaryClassifier());
var model = pipeline.Train<SentimentData, SentimentPrediction>();
Expand Down

0 comments on commit ab4108d

Please sign in to comment.