ML.NET is an open source and cross-platform machine learning framework for .NET.
Перейти к файлу
Dan Moseley 5b332afd6a
Update ISSUE_TEMPLATE.md
2018-05-06 20:32:33 -07:00
Documentation Initial commit 2018-05-03 17:22:00 -07:00
Samples/UCI Initial commit 2018-05-03 17:22:00 -07:00
ZBaselines Initial commit 2018-05-03 17:22:00 -07:00
build Initial commit 2018-05-03 17:22:00 -07:00
pkg Initial commit 2018-05-03 17:22:00 -07:00
src Get a working build (#1) 2018-05-04 14:47:21 -05:00
test Get a working build (#1) 2018-05-04 14:47:21 -05:00
.gitattributes Initial commit 2018-05-03 17:22:00 -07:00
.gitignore Initial commit 2018-05-03 17:22:00 -07:00
BuildToolsVersion.txt Initial commit 2018-05-03 17:22:00 -07:00
CONTRIBUTING.md Update contribution guide and issue/PR templates 2018-05-05 13:47:44 -07:00
Directory.Build.props Initial commit 2018-05-03 17:22:00 -07:00
Directory.Build.targets Initial commit 2018-05-03 17:22:00 -07:00
DotnetCLIVersion.txt Initial commit 2018-05-03 17:22:00 -07:00
ISSUE_TEMPLATE.md Update ISSUE_TEMPLATE.md 2018-05-06 20:32:33 -07:00
LICENSE Initial commit 2018-05-03 17:22:00 -07:00
Microsoft.ML.sln Add ML.NET Roadmap (#30) 2018-05-05 01:11:31 -07:00
PULL_REQUEST_TEMPLATE.md Update contribution guide and issue/PR templates 2018-05-05 13:47:44 -07:00
README.md Add ML.NET Roadmap (#30) 2018-05-05 01:11:31 -07:00
ROADMAP.md Add ML.NET Roadmap (#30) 2018-05-05 01:11:31 -07:00
build.cmd Initial commit 2018-05-03 17:22:00 -07:00
build.proj Initial commit 2018-05-03 17:22:00 -07:00
build.sh Get a working build (#1) 2018-05-04 14:47:21 -05:00
config.json Initial commit 2018-05-03 17:22:00 -07:00
dir.traversal.targets Initial commit 2018-05-03 17:22:00 -07:00
init-tools.cmd Initial commit 2018-05-03 17:22:00 -07:00
init-tools.msbuild Initial commit 2018-05-03 17:22:00 -07:00
init-tools.sh Get a working build (#1) 2018-05-04 14:47:21 -05:00
netci.groovy Initial commit 2018-05-03 17:22:00 -07:00
run.cmd Initial commit 2018-05-03 17:22:00 -07:00
run.sh Get a working build (#1) 2018-05-04 14:47:21 -05:00

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.