Skip to content

mandyshieh/machinelearning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()
    .Add(new TextLoader<SentimentData>(dataPath, separator: ",")
    .Add(new TextFeaturizer("Features", "SentimentText")
    .Add(new FastTreeBinaryClassifier()
     Add(new PredictedLabelColumnOriginalValueConverter(PredictedLabelColumn = "PredictedLabel"});
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.

About

ML.NET is an open source and cross-platform machine learning framework for .NET.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.0%
  • C++ 1.6%
  • Shell 0.1%
  • Batchfile 0.1%
  • C 0.1%
  • CMake 0.1%