|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.classifier.bayes.datastore.HBaseBayesDatastore
public class HBaseBayesDatastore
Class implementing the Datastore for Algorithms to read HBase based model
Constructor Summary | |
---|---|
HBaseBayesDatastore(java.lang.String hbaseTable,
Parameters params)
|
Method Summary | |
---|---|
protected double |
getAlphaI()
|
protected double |
getCachedCell(java.lang.String row,
java.lang.String family,
java.lang.String column)
|
protected org.apache.hadoop.hbase.HBaseConfiguration |
getConfig()
|
protected java.lang.String |
getHbaseTable()
|
java.util.Collection<java.lang.String> |
getKeys(java.lang.String name)
get the keySet of a given Matrix/Vector as given by name |
protected Parameters |
getParameters()
|
protected org.apache.hadoop.hbase.client.Result |
getRowFromHbase(java.lang.String feature)
|
protected double |
getSigmaJFromHbase(java.lang.String feature)
|
protected double |
getSigmaJSigmaK()
|
protected double |
getSigmaJSigmaKFromHbase()
|
protected org.apache.hadoop.hbase.client.HTable |
getTable()
|
protected Cache<java.lang.String,org.apache.hadoop.hbase.client.Result> |
getTableCache()
|
protected double |
getThetaNormalizer()
|
protected double |
getVocabCount()
|
protected double |
getVocabCountFromHbase()
|
double |
getWeight(java.lang.String vectorName,
java.lang.String index)
Gets a double value from the Vector pointed to by the vectorName from its cell pointed to by
the index |
double |
getWeight(java.lang.String matrixName,
java.lang.String row,
java.lang.String column)
Gets a double value from the Matrix pointed to by the matrixName from its cell pointed to by
the row and column string |
protected double |
getWeightFromHbase(java.lang.String feature,
java.lang.String label)
|
void |
initialize()
Initializes the and loads the model into memory/cache if necessary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HBaseBayesDatastore(java.lang.String hbaseTable, Parameters params)
Method Detail |
---|
protected org.apache.hadoop.hbase.HBaseConfiguration getConfig()
protected org.apache.hadoop.hbase.client.HTable getTable()
protected Cache<java.lang.String,org.apache.hadoop.hbase.client.Result> getTableCache()
protected java.lang.String getHbaseTable()
protected Parameters getParameters()
protected double getThetaNormalizer()
protected double getAlphaI()
protected double getVocabCount()
protected double getSigmaJSigmaK()
public void initialize() throws InvalidDatastoreException
Datastore
initialize
in interface Datastore
InvalidDatastoreException
public java.util.Collection<java.lang.String> getKeys(java.lang.String name) throws InvalidDatastoreException
Datastore
name
getKeys
in interface Datastore
InvalidDatastoreException
public double getWeight(java.lang.String matrixName, java.lang.String row, java.lang.String column) throws InvalidDatastoreException
Datastore
matrixName
from its cell pointed to by
the row
and column
string
getWeight
in interface Datastore
InvalidDatastoreException
public double getWeight(java.lang.String vectorName, java.lang.String index) throws InvalidDatastoreException
Datastore
vectorName
from its cell pointed to by
the index
getWeight
in interface Datastore
InvalidDatastoreException
protected double getCachedCell(java.lang.String row, java.lang.String family, java.lang.String column)
protected double getWeightFromHbase(java.lang.String feature, java.lang.String label)
protected org.apache.hadoop.hbase.client.Result getRowFromHbase(java.lang.String feature)
protected double getSigmaJFromHbase(java.lang.String feature)
protected double getVocabCountFromHbase()
protected double getSigmaJSigmaKFromHbase()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |