tensorflow:: ops:: ComputeAccidentalHits

#include <candidate_sampling_ops.h>

sampled_candidates-এ থাকা সেই অবস্থানগুলির আইডি গণনা করে যেগুলি true_labels-এর সাথে মেলে।

সারসংক্ষেপ

লগ-অডস এনসিই (log-odds NCE) করার সময়, এই অপের ফলাফলকে একটি স্পার্সটুডেন্স (SparseToDense) অপের মধ্যে দিয়ে পাঠিয়ে, তারপর স্যাম্পল করা ক্যান্ডিডেটগুলোর লজিটের সাথে যোগ করতে হবে। এর ফলে ক্লাসিফায়ার নিশ্চিত হয় যে স্যাম্পল করা লেবেলগুলো আসল লেবেলের সাথে মিলে গেলেও তা 'সরিয়ে' যায়।

যুক্তি:

  • স্কোপ: একটি স্কোপ অবজেক্ট
  • true_classes: UnpackSparseLabels-এর true_classes আউটপুট।
  • sampled_candidates: CandidateSampler-এর sampled_candidates আউটপুট।
  • num_true: Number of true labels per context.

ঐচ্ছিক অ্যাট্রিবিউটসমূহ (দেখুন Attrs ):

  • সিড: যদি সিড অথবা সিড২-এর যেকোনো একটির মান অশূন্য ধরা হয়, তবে র‍্যান্ডম নম্বর জেনারেটরটি প্রদত্ত সিড দ্বারা চালিত হয়। অন্যথায়, এটি একটি র‍্যান্ডম সিড দ্বারা চালিত হয়।
  • seed2: An second seed to avoid seed collision.

ফেরত:

  • Output সূচকসমূহ: true_candidates-এর সারিগুলোর সাথে সঙ্গতিপূর্ণ সূচকসমূহের একটি ভেক্টর।
  • Output আইডি: sampled_candidates-এর মধ্যে থাকা সেইসব পজিশনের আইডি-র একটি ভেক্টর, যেগুলো indices-এর সংশ্লিষ্ট ইনডেক্সযুক্ত সারির true_label-এর সাথে মেলে।
  • Output ওয়েট: ইনডেক্স এবং আইডি-র সমান দৈর্ঘ্যের একটি ভেক্টর, যার প্রতিটি উপাদান -FLOAT_MAX হবে।

নির্মাতা এবং ধ্বংসকারী

ComputeAccidentalHits (const :: tensorflow::Scope & scope, :: tensorflow::Input true_classes, :: tensorflow::Input sampled_candidates, int64 num_true)
ComputeAccidentalHits (const :: tensorflow::Scope & scope, :: tensorflow::Input true_classes, :: tensorflow::Input sampled_candidates, int64 num_true, const ComputeAccidentalHits::Attrs & attrs)

জনসাধারণের বৈশিষ্ট্য

ids
indices
operation
weights

পাবলিক স্ট্যাটিক ফাংশন

Seed (int64 x)
Seed2 (int64 x)

কাঠামো

tensorflow:: ops:: ComputeAccidentalHits:: Attrs

ComputeAccidentalHits-এর জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটারসমূহ।

জনসাধারণের বৈশিষ্ট্য

ids

::tensorflow::Output ids

সূচক

::tensorflow::Output indices

অপারেশন

Operation operation

ওজন

::tensorflow::Output weights

জনসাধারণের কার্যাবলী

ComputeAccidentalHits

 ComputeAccidentalHits(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input true_classes,
  ::tensorflow::Input sampled_candidates,
  int64 num_true
)

ComputeAccidentalHits

 ComputeAccidentalHits(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input true_classes,
  ::tensorflow::Input sampled_candidates,
  int64 num_true,
  const ComputeAccidentalHits::Attrs & attrs
)

পাবলিক স্ট্যাটিক ফাংশন

বীজ

Attrs Seed(
  int64 x
)

বীজ২

Attrs Seed2(
  int64 x
)