Skip to content

Demo project showing how to use CollectionDataSource to load data from files and System.Collections

License

Notifications You must be signed in to change notification settings

lqdev/mlnetserializedemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ML.NET Serialization Example

This repo is a sample application that shows how to use the newly introduced CollectionDataSource feature to load in data from files or System Collections. This is based off the MulticlassClassification_Iris sample on GitHub.

Requirements

This app was build on a Linux PC, but should work cross-platform on Mac and Windows

Build Project

dotnet restore
dotnet build

Run Sample

dotnet run -p myconsoleapp/myconsoleapp.csproj

Sample Output:

Automatically adding a MinMax normalization transform, use 'norm=Warn' or 'norm=No' to turn this behavior off.
Using 2 threads to train.
Automatically choosing a check frequency of 2.
Auto-tuning parameters: maxIterations = 12498.
Auto-tuning parameters: L2 = 2.66752E-05.
Auto-tuning parameters: L1Threshold (L1/L2) = 0.
Using best model from iteration 6.
Not training a calibrator because it is not needed.

Actual: setosa.     Predicted probability: setosa:      0.3475
                                           versicolor:  0.3316
                                           virginica:   0.3209

About

Demo project showing how to use CollectionDataSource to load data from files and System.Collections

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages