5b332afd6a | ||
---|---|---|
Documentation | ||
Samples/UCI | ||
ZBaselines | ||
build | ||
pkg | ||
src | ||
test | ||
.gitattributes | ||
.gitignore | ||
BuildToolsVersion.txt | ||
CONTRIBUTING.md | ||
Directory.Build.props | ||
Directory.Build.targets | ||
DotnetCLIVersion.txt | ||
ISSUE_TEMPLATE.md | ||
LICENSE | ||
Microsoft.ML.sln | ||
PULL_REQUEST_TEMPLATE.md | ||
README.md | ||
ROADMAP.md | ||
build.cmd | ||
build.proj | ||
build.sh | ||
config.json | ||
dir.traversal.targets | ||
init-tools.cmd | ||
init-tools.msbuild | ||
init-tools.sh | ||
netci.groovy | ||
run.cmd | ||
run.sh |
README.md
Machine Learning in .NET
ML.NET provides state-of-the-art machine learning (ML) algorithms, transforms, and components, and powers ML pipelines in many Microsoft products. Developed and used internally at Microsoft for over 5 years, the goal is to make ML.NET useful for all developers, data scientists, and information workers and helpful in all products, services, and devices.
Build Status
Coming soon
Installation
You can install ML.NET NuGet from the CLI using:
dotnet add package Microsoft.ML
From package manager:
Install-Package Microsoft.ML
For an example of getting started with .NET Core, see here.
Building
To build ML.NET from source go to developers guide
Example
Simple snippet to train a model for sentiment classification (See the complete sample here):
var pipeline = new LearningPipeline();
pipeline.Add(new TextLoader<SentimentData>(dataPath, separator: ","));
pipeline.Add(new TextFeaturizer("Features", "SentimentText"));
pipeline.Add(new FastTreeBinaryClassifier());
var model = pipeline.Train<SentimentData, SentimentPrediction>();
Infer the trained model for predictions:
SentimentData data = new SentimentData
{
SentimentText = "Today is a great day!"
};
SentimentPrediction prediction = model.Predict(data);
Console.WriteLine("prediction: " + prediction.Sentiment);
Code of Conduct
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.
License
ML.NET is licensed under the MIT license.
.NET Foundation
ML.NET is a .NET Foundation project.
There are many .NET related projects on GitHub.
- .NET home repo - links to 100s of .NET projects, from Microsoft and the community.