Package org.tribuo.hash
Class HashingOptions
java.lang.Object
org.tribuo.hash.HashingOptions
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Options
An Options implementation which provides CLI arguments for the model hashing functionality.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Supported types of hashes in CLI programs. -
Field Summary
Modifier and TypeFieldDescriptionHash the model during training, options are {NONE,MOD,HC,SHA1,SHA256}Salt for hashing the modelFields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Options
getOptionsDescription
-
Field Details
-
modelHashingAlgorithm
@Option(longName="model-hashing-algorithm", usage="Hash the model during training, options are {NONE,MOD,HC,SHA1,SHA256}") public HashingOptions.ModelHashingType modelHashingAlgorithmHash the model during training, options are {NONE,MOD,HC,SHA1,SHA256} -
modelHashingSalt
@Option(longName="model-hashing-salt", usage="Salt for hashing the model") public String modelHashingSaltSalt for hashing the model
-
-
Constructor Details
-
HashingOptions
public HashingOptions()
-
-
Method Details
-
getHasher
Get the specified hasher.- Returns:
- The configured hasher.
-
getHashedTrainer
Gets the trainer wrapped in a hashing trainer.- Type Parameters:
T
- The output type.- Parameters:
innerTrainer
- The inner trainer.- Returns:
- The hashing trainer.
-