C# Class numl.Supervised.NaiveBayes.NaiveBayesGenerator

A naive bayes generator.
Inheritance: Generator
Show file Open project: sethjuarez/numl Class Usage Examples

Public Methods

Method Description
Generate ( Matrix X, Vector y ) : IModel

Generate model based on a set of examples.

NaiveBayesGenerator ( int width ) : System

Constructor.

Private Methods

Method Description
CloneMeasure ( Measure measures ) : numl.Supervised.NaiveBayes.Measure[]

Clone measure.

GetBaseConditionals ( Matrix x ) : numl.Supervised.NaiveBayes.Measure[]

Gets base conditionals.

GetLabelStats ( Vector y ) : numl.Supervised.NaiveBayes.Statistic[]

Gets label statistics.

LabelIds ( Measure m ) : void

Method Details

Generate() public method

Generate model based on a set of examples.
Thrown when the requested operation is invalid.
public Generate ( Matrix X, Vector y ) : IModel
X Matrix The Matrix to process.
y numl.Math.LinearAlgebra.Vector The Vector to process.
return IModel

NaiveBayesGenerator() public method

Constructor.
public NaiveBayesGenerator ( int width ) : System
width int The width.
return System