Class HashCodeHasher
java.lang.Object
org.tribuo.hash.Hasher
org.tribuo.hash.HashCodeHasher
- 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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.tribuo.hash.Hasher
MIN_LENGTH
-
Constructor Summary
ConstructorsConstructorDescriptionHashCodeHasher
(String salt) Constructs a HashCodeHasher using the specified salt value. -
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
Hashes the supplied input using the hashing function.void
Used by the OLCUT configuration system, and should not be called by external code.void
The salt is transient, it must be set **to the same value as it was trained with** after theModel
is deserialized.toString()
Methods inherited from class org.tribuo.hash.Hasher
validateSalt
-
Constructor Details
-
HashCodeHasher
Constructs a HashCodeHasher using the specified salt value.- Parameters:
salt
- The salt value.
-
-
Method Details
-
hash
-
postConfig
public void postConfig() throws com.oracle.labs.mlrg.olcut.config.PropertyExceptionUsed by the OLCUT configuration system, and should not be called by external code.- Throws:
com.oracle.labs.mlrg.olcut.config.PropertyException
-
setSalt
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance() -
toString
-