public final class ModHashCodeHasher extends Hasher
Modifier and Type | Class and Description |
---|---|
static class |
ModHashCodeHasher.ModHashCodeHasherProvenance
Provenance for the
ModHashCodeHasher . |
MIN_LENGTH
Constructor and Description |
---|
ModHashCodeHasher(int dimension,
String salt) |
ModHashCodeHasher(String salt) |
Modifier and Type | Method and Description |
---|---|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
String |
hash(String name)
Hashes the supplied input using the hashing function.
|
void |
postConfig()
Used by the OLCUT configuration system, and should not be called by external code.
|
void |
setSalt(String salt)
The salt is transient, it must be set **to the same value as it was trained with**
after the
Model is deserialized. |
String |
toString() |
validateSalt
public ModHashCodeHasher(String salt)
public ModHashCodeHasher(int dimension, String salt)
public void postConfig()
public String hash(String name)
Hasher
public void setSalt(String salt)
Hasher
Model
is deserialized.public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.