class_docstr: Base class for actions sampler.
  
  Given a batch of distribution params(including mean and var), sample, clip and
  return [N, B, A] actions, where 'N' means num_samples, 'B' means batch_size,
  'A' means action_size.
class_docstr_tok: ["Base","class","for","actions","sampler",".","Given","a","batch","of","distribution","params","(","including","mean","and","var",")",",","sample",",","clip","and","return","[","N",",","B",",","A","]","actions",",","where","'N","'","means","num_samples",",","'","B","'","means","batch_size",",","'","A","'","means","action_size","."]
docstr: Refits distribution according to actions with index of ind.
  
  Args:
    target_sample_indices: A [B, M] sized tensor indicating the index
    samples: A nested structure corresponding to action_spec. Each action is a
      [B, N, A] sized tensor.
  
  Returns:
    distribution_params: Distribution related parameters refitted to
      best samples.
docstr_tok: ["Refits","distribution","according","to","actions","with","index","of","ind",".","Args",":","target_sample_indices",":","A","[","B",",","M","]","sized","tensor","indicating","the","index","samples",":","A","nested","structure","corresponding","to","action_spec",".","Each","action","is","a","[","B",",","N",",","A","]","sized","tensor",".","Returns",":","distribution_params",":","Distribution","related","parameters","refitted","to","best","samples","."]
code: def refit_distribution_to(self, target_sample_indices, samples):
      """Refits distribution according to actions with index of ind.
  
      Args:
        target_sample_indices: A [B, M] sized tensor indicating the index
        samples: A nested structure corresponding to action_spec. Each action is a
          [B, N, A] sized tensor.
  
      Returns:
        distribution_params: Distribution related parameters refitted to
          best samples.
      """
      raise NotImplementedError("refit_distribution not implemented.")
  
file_path: agents/tf_agents/policies/samplers/qtopt_cem_actions_sampler.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
label_desc: Use image node_id 2 for calling the ActionsSampler obj's underlying member method code with example usage: obj.refit_distribution_to(target_sample_indices, samples) without return types