C# Class NClassifier.Bayesian.BayesianClassifier

An implementation of IClassifer based on Bayes' algorithm.
Inheritance: AbstractClassifier, ITrainableClassifier
Afficher le fichier Open project: colin-dumitru/Proiect-AI-2012---GUI Class Usage Examples

Méthodes publiques

Méthode Description
BayesianClassifier ( ) : System
BayesianClassifier ( IWordsDataSource wd ) : System
BayesianClassifier ( IWordsDataSource wd, ITokenizer tokenizer ) : System
BayesianClassifier ( IWordsDataSource wd, ITokenizer tokenizer, IStopWordProvider swp ) : System
CalculateOverallProbability ( WordProbability wps ) : double
Classify ( string input ) : double
Classify ( string category, string input ) : double
IsMatch ( string category, string input ) : bool
NormalizeSignificance ( double sig ) : double
TeachMatch ( string input ) : void
TeachMatch ( string category, string input ) : void
TeachNonMatch ( string input ) : void
TeachNonMatch ( string category, string input ) : void
TransformWord ( string word ) : string

Allows transformations to be done to the given word.

Private Methods

Méthode Description
CalcWordsProbability ( string category, string words ) : NClassifier.Bayesian.WordProbability[]
CheckCategoriesSupported ( string category ) : void
IsClassifiableWord ( string word ) : bool

Method Details

BayesianClassifier() public méthode

public BayesianClassifier ( ) : System
Résultat System

BayesianClassifier() public méthode

public BayesianClassifier ( IWordsDataSource wd ) : System
wd IWordsDataSource
Résultat System

BayesianClassifier() public méthode

public BayesianClassifier ( IWordsDataSource wd, ITokenizer tokenizer ) : System
wd IWordsDataSource
tokenizer ITokenizer
Résultat System

BayesianClassifier() public méthode

public BayesianClassifier ( IWordsDataSource wd, ITokenizer tokenizer, IStopWordProvider swp ) : System
wd IWordsDataSource
tokenizer ITokenizer
swp IStopWordProvider
Résultat System

CalculateOverallProbability() public méthode

public CalculateOverallProbability ( WordProbability wps ) : double
wps WordProbability
Résultat double

Classify() public méthode

public Classify ( string input ) : double
input string
Résultat double

Classify() public méthode

public Classify ( string category, string input ) : double
category string
input string
Résultat double

IsMatch() public méthode

public IsMatch ( string category, string input ) : bool
category string
input string
Résultat bool

NormalizeSignificance() public static méthode

public static NormalizeSignificance ( double sig ) : double
sig double
Résultat double

TeachMatch() public méthode

public TeachMatch ( string input ) : void
input string
Résultat void

TeachMatch() public méthode

public TeachMatch ( string category, string input ) : void
category string
input string
Résultat void

TeachNonMatch() public méthode

public TeachNonMatch ( string input ) : void
input string
Résultat void

TeachNonMatch() public méthode

public TeachNonMatch ( string category, string input ) : void
category string
input string
Résultat void

TransformWord() public méthode

Allows transformations to be done to the given word.
public TransformWord ( string word ) : string
word string The word to transform.
Résultat string