org.apache.mahout.classifier.bayes
Class TrainClassifier

java.lang.Object
  extended by org.apache.mahout.classifier.bayes.TrainClassifier

public final class TrainClassifier
extends java.lang.Object

Train the Naive Bayes classifier with improved weighting

To run the twenty newsgroups example: refer http://cwiki.apache.org/MAHOUT/twentynewsgroups.html


Method Summary
static void main(java.lang.String[] args)
           
static void trainCNaiveBayes(java.lang.String dir, java.lang.String outputDir, BayesParameters params)
           
static void trainNaiveBayes(java.lang.String dir, java.lang.String outputDir, BayesParameters params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

trainNaiveBayes

public static void trainNaiveBayes(java.lang.String dir,
                                   java.lang.String outputDir,
                                   BayesParameters params)
                            throws java.io.IOException
Throws:
java.io.IOException

trainCNaiveBayes

public static void trainCNaiveBayes(java.lang.String dir,
                                    java.lang.String outputDir,
                                    BayesParameters params)
                             throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.