GithubHelp home page GithubHelp logo

naivebayes's Introduction

Description

Sklearn Naive Bayes interpretation for GO. The project was implemented as part of a service that works with GaussianNB.

Install

go get github.com/MiXaiLL76/naivebayes

Example

TRAIN in Python train.ipynb
TEST in Golang examples/main.go

Implementing Naive Bayes Classes

GaussianNB sklearn

Method Description Status
fit(X, y[, sample_weight]) Fit Gaussian Naive Bayes according to X, y W.I.P.
get_weight() Get weight for this estimator. ✓ DONE
set_weight(weight) Set the weight of this estimator. ✓ DONE
predict(X) Perform classification on an array of test vectors X. ✓ DONE
predict_log_proba(X) Return log-probability estimates for the test vector X. ✓ DONE
predict_proba(X) Return probability estimates for the test vector X. ✓ DONE
score(X, y[, sample_weight]) Return the mean accuracy on the given test data and labels. ✓ DONE

Utility

Method Description Status
argmax(array []float64) Returns the indices of the maximum values ✓ DONE
logsumexp(array []float64) Compute the log of the sum of exponentials of input elements. ✓ DONE
getShape(array [][]float64) Return the shape of an array. ✓ DONE
AccuracyScore(y_true, y_pred) Accuracy classification score. ✓ DONE

naivebayes's People

Contributors

mixaill76 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.