Skip to content

edvardsanta/MyML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyML

Just a machine learning lib written in Dotnet 8 framework

Features

  • Naive Bayes Classifier (Multinomial): designed for text classification tasks. The Multinomial variant is suitable for handling text data with multiple classes and word occurrences.

  • Generic Design: The library is designed to be generic and adaptable, allowing you to train classifiers for various types of data and labels.

  • Easy Training: Training a classifier is straightforward, and the library handles essential tasks such as feature extraction and Laplace (add-one) smoothing automatically.

Usage

// Create an instance of the classifier
var classifier = new MultinomialNaiveBayesClassifier();

// Train the classifier with your training data (ClassifierModel)
classifier.Train(trainingData);

// Make predictions
var prediction = classifier.Predict(textToClassify);

TODO

  • Do unit tests with possible use cases
  • Try other Supervised Learning (Decision Trees,Logistic Regression)

About

Just a lib written in Dotnet 8

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages