org.apache.mahout.classifier.bayes
Class SequenceFileModelReader
java.lang.Object
org.apache.mahout.classifier.bayes.SequenceFileModelReader
public final class SequenceFileModelReader
- extends Object
This Class reads the different interim files created during the Training stage as well as the Model File
during testing.
Method Summary |
static void |
loadFeatureWeights(InMemoryBayesDatastore datastore,
org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
|
static void |
loadLabelWeights(InMemoryBayesDatastore datastore,
org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
|
static void |
loadModel(InMemoryBayesDatastore datastore,
Parameters params,
org.apache.hadoop.conf.Configuration conf)
|
static void |
loadSumWeight(InMemoryBayesDatastore datastore,
org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
|
static void |
loadThetaNormalizer(InMemoryBayesDatastore datastore,
org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
|
static void |
loadWeightMatrix(InMemoryBayesDatastore datastore,
org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
|
static Map<String,Double> |
readLabelDocumentCounts(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
|
static Map<String,Double> |
readLabelSums(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
|
static double |
readSigmaJSigmaK(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
|
static double |
readVocabCount(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loadModel
public static void loadModel(InMemoryBayesDatastore datastore,
Parameters params,
org.apache.hadoop.conf.Configuration conf)
loadWeightMatrix
public static void loadWeightMatrix(InMemoryBayesDatastore datastore,
org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
loadFeatureWeights
public static void loadFeatureWeights(InMemoryBayesDatastore datastore,
org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
loadLabelWeights
public static void loadLabelWeights(InMemoryBayesDatastore datastore,
org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
loadThetaNormalizer
public static void loadThetaNormalizer(InMemoryBayesDatastore datastore,
org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
loadSumWeight
public static void loadSumWeight(InMemoryBayesDatastore datastore,
org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
readLabelSums
public static Map<String,Double> readLabelSums(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
readLabelDocumentCounts
public static Map<String,Double> readLabelDocumentCounts(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
readSigmaJSigmaK
public static double readSigmaJSigmaK(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
readVocabCount
public static double readVocabCount(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf)
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.