Stay organized with collections
Save and categorize content based on your preferences.
Candidate Sampling Ops
Summary
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# Candidate Sampling Ops\n======================\n\nSummary\n-------\n\n| ### Classes ||\n|---------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| [tensorflow::ops::AllCandidateSampler](/versions/r2.14/api_docs/cc/class/tensorflow/ops/all-candidate-sampler) | Generates labels for candidate sampling with a learned unigram distribution. |\n| [tensorflow::ops::ComputeAccidentalHits](/versions/r2.14/api_docs/cc/class/tensorflow/ops/compute-accidental-hits) | Computes the ids of the positions in sampled_candidates that match true_labels. |\n| [tensorflow::ops::FixedUnigramCandidateSampler](/versions/r2.14/api_docs/cc/class/tensorflow/ops/fixed-unigram-candidate-sampler) | Generates labels for candidate sampling with a learned unigram distribution. |\n| [tensorflow::ops::LearnedUnigramCandidateSampler](/versions/r2.14/api_docs/cc/class/tensorflow/ops/learned-unigram-candidate-sampler) | Generates labels for candidate sampling with a learned unigram distribution. |\n| [tensorflow::ops::LogUniformCandidateSampler](/versions/r2.14/api_docs/cc/class/tensorflow/ops/log-uniform-candidate-sampler) | Generates labels for candidate sampling with a log-uniform distribution. |\n| [tensorflow::ops::UniformCandidateSampler](/versions/r2.14/api_docs/cc/class/tensorflow/ops/uniform-candidate-sampler) | Generates labels for candidate sampling with a uniform distribution. |"]]