public final class HashCodeHasher extends Hasher
Modifier and Type | Class and Description |
---|---|
static class |
HashCodeHasher.HashCodeHasherProvenance
Provenance for the
HashCodeHasher . |
MIN_LENGTH
Constructor and Description |
---|
HashCodeHasher(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 |
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 HashCodeHasher(String salt)
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.