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
Nested ClassesModifier and TypeClassDescriptionstatic enum
Supported types of hashes in CLI programs. -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface com.oracle.labs.mlrg.olcut.config.Options
header
-
Constructor Summary
Constructors -
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 modelHashingAlgorithm -
modelHashingSalt
@Option(longName="model-hashing-salt", usage="Salt for hashing the model") public String modelHashingSalt
-
-
Constructor Details
-
HashingOptions
public HashingOptions()
-
-
Method Details
-
getHasher
-
getHashedTrainer
Gets the trainer wrapped in a hashing trainer.- Type Parameters:
T
- The output type.- Parameters:
innerTrainer
- The inner trainer.- Returns:
- The hashing trainer.
-