Class ModHashCodeHasher
java.lang.Object
org.tribuo.hash.Hasher
org.tribuo.hash.ModHashCodeHasher
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>,Serializable
Hashes names using String.hashCode(), then reduces the dimension.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.tribuo.hash.Hasher
MIN_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionModHashCodeHasher(int dimension, String salt) ModHashCodeHasher(String salt) -
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenanceHashes the supplied input using the hashing function.voidUsed by the OLCUT configuration system, and should not be called by external code.voidThe salt is transient, it must be set **to the same value as it was trained with** after theModelis deserialized.toString()Methods inherited from class org.tribuo.hash.Hasher
validateSalt
-
Constructor Details
-
ModHashCodeHasher
-
ModHashCodeHasher
-
-
Method Details
-
postConfig
public void postConfig()Used by the OLCUT configuration system, and should not be called by external code. -
hash
-
setSalt
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance() -
toString
-