|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.vectorizer.encoders.FeatureVectorEncoder
org.apache.mahout.vectorizer.encoders.ContinuousValueEncoder
org.apache.mahout.vectorizer.encoders.CachingContinuousValueEncoder
public class CachingContinuousValueEncoder
Field Summary |
---|
Fields inherited from class org.apache.mahout.vectorizer.encoders.FeatureVectorEncoder |
---|
CONTINUOUS_VALUE_HASH_SEED, WORD_LIKE_VALUE_HASH_SEED |
Constructor Summary | |
---|---|
CachingContinuousValueEncoder(java.lang.String name,
int dataSize)
|
Method Summary | |
---|---|
protected org.apache.mahout.math.map.OpenIntIntHashMap[] |
getCaches()
|
protected int |
hashForProbe(java.lang.String originalForm,
int dataSize,
java.lang.String name,
int probe)
|
void |
setProbes(int probes)
Sets the number of locations in the feature vector that a value should be in. |
Methods inherited from class org.apache.mahout.vectorizer.encoders.ContinuousValueEncoder |
---|
addToVector, asString, getWeight, hashForProbe |
Methods inherited from class org.apache.mahout.vectorizer.encoders.FeatureVectorEncoder |
---|
addToVector, addToVector, addToVector, bytesForString, getName, getProbes, hash, hash, hash, hash, hash, hashesForProbe, isTraceEnabled, setTraceDictionary, trace, trace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingContinuousValueEncoder(java.lang.String name, int dataSize)
Method Detail |
---|
protected org.apache.mahout.math.map.OpenIntIntHashMap[] getCaches()
public void setProbes(int probes)
FeatureVectorEncoder
setProbes
in class FeatureVectorEncoder
probes
- Number of locations to increment.protected int hashForProbe(java.lang.String originalForm, int dataSize, java.lang.String name, int probe)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |