Code sample does not reflect the API of the current NuGet package.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@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
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