Package | Description |
---|---|
org.tribuo |
Provides the core interfaces and classes for using Tribuo.
|
org.tribuo.hash |
Provides the base interface and implementations of the
Model hashing
which obscures the feature names stored in a model. |
org.tribuo.sequence |
Provides core classes for working with sequences of
Example s. |
Modifier and Type | Method and Description |
---|---|
static <T extends Output<T>> |
ImmutableDataset.hashFeatureMap(Dataset<T> dataset,
Hasher hasher)
Creates an immutable shallow copy of the supplied dataset, using the hasher to generate a
HashedFeatureMap which transparently maps from the feature name to the hashed variant. |
Modifier and Type | Class and Description |
---|---|
class |
HashCodeHasher
Hashes names using String.hashCode().
|
class |
MessageDigestHasher
Hashes Strings using the supplied MessageDigest type.
|
class |
ModHashCodeHasher
Hashes names using String.hashCode(), then reduces the dimension.
|
Modifier and Type | Method and Description |
---|---|
Optional<Hasher> |
HashingOptions.getHasher()
Get the specified hasher.
|
Modifier and Type | Method and Description |
---|---|
static HashedFeatureMap |
HashedFeatureMap.generateHashedFeatureMap(FeatureMap map,
Hasher hasher)
Converts a standard
FeatureMap by hashing each entry
using the supplied hash function Hasher . |
Constructor and Description |
---|
HashingTrainer(Trainer<T> trainer,
Hasher hasher) |
Constructor and Description |
---|
HashingSequenceTrainer(SequenceTrainer<T> trainer,
Hasher hasher) |
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.