Docs: Does not reflect the current release of ML.Net

Created on 17 Feb 2019  Â·  6Comments  Â·  Source: dotnet/docs

Code sample does not reflect the API of the current NuGet package.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Area - ML.NET Guide

All 6 comments

@PeterPann23 what code sample do you refer to?

The sample project uses ML.NET v0.10; though it might skip using some latest additions.

Hi pkulikov
I think that the Iris sample should be using the new API when mapping the class to the columns.

@PeterPann23 do you mean the IrisData class should use the LoadColumn attribute? That is, apply the approach from the issue classification tutorial. If yes, I think it's a good suggestion and I'll update the tutorial the next week.

@JRAlexander the price prediction tutorial also might use the LoadColumn attribute as the current usage of the Column attribute only specifies the source index and doesn't define the name of a column (which is not the case for the sentiment analysis tutorial).

Yes, that's what I was thinking about, also to use the new method ( MLContext.Data.ReadFromTextFile) that will actually throw you a null exception if you not add the annotation. Some annotations are needed for one and not for the other (textloaderarguments). A cleanup of the concept may be needed but that's a different topic.

I feel for those that get introduced one should not learn the "old" way as well as understand the implications….

@PeterPann23 thanks for raising the issue; I've created two PRs that simplify data loading step as a result.

@PeterPann23 also it looks that the old API is going to be removed: dotnet/machinelearning#2593

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LJ9999 picture LJ9999  Â·  3Comments

svick picture svick  Â·  3Comments

JagathPrasad picture JagathPrasad  Â·  3Comments

Eilon picture Eilon  Â·  3Comments

mekomlusa picture mekomlusa  Â·  3Comments