Get desktop application:
View/edit binary Protocol Buffers messages
A brute force implementation of top-k sampling, which traverses all existing embeddings in a KnowledgeBank and compares with given input.
The type of distance used for top-k.
The base config for a candidate sampler.
Used in:
Implementation is encoded in extension.
A sampler used in the sampled softmax/logistic layer. See https://www.tensorflow.org/extras/candidate_sampling.pdf for more details.
If the sampled key should be unique or not.
Used in:
Sample uniformly among both positive and negative data.
Sample log uniformly among both positive and negative data.
A single sample for negative sampling. See https://www.tensorflow.org/extras/candidate_sampling.pdf for details.
Used in:
Key of the sampled result.
Embedding of the sampled result.
Indicates if this is a positive sample (from the given keys) or negative.
The sampling probability (or expected count) of Q(key). Usually used in computing sampled logistic/softmax loss.
Context information for one sample input.
Used in:
List of positive samples. Usually used in negative sampling.
Activation used to compute the similarity. Usually used in top-k sampling.
A union of the results returned by various samplers.
Used in:
Types of similarity between two embeddings.
Used in:
A single sample for top-k sampling.
Used in:
Key of the sampled result.
Embedding of the sampled result.
Used in top k sample to indicate its similarity with the input.