org.apache.mahout.vectorizer.encoders
Class CachingContinuousValueEncoder

java.lang.Object
  extended by org.apache.mahout.vectorizer.encoders.FeatureVectorEncoder
      extended by org.apache.mahout.vectorizer.encoders.ContinuousValueEncoder
          extended by org.apache.mahout.vectorizer.encoders.CachingContinuousValueEncoder

public class CachingContinuousValueEncoder
extends ContinuousValueEncoder


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

CachingContinuousValueEncoder

public CachingContinuousValueEncoder(java.lang.String name,
                                     int dataSize)
Method Detail

getCaches

protected org.apache.mahout.math.map.OpenIntIntHashMap[] getCaches()

setProbes

public void setProbes(int probes)
Description copied from class: FeatureVectorEncoder
Sets the number of locations in the feature vector that a value should be in.

Overrides:
setProbes in class FeatureVectorEncoder
Parameters:
probes - Number of locations to increment.

hashForProbe

protected int hashForProbe(java.lang.String originalForm,
                           int dataSize,
                           java.lang.String name,
                           int probe)


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