docstr: Initialize counterfactuals.
docstr_tok: ["Initialize","counterfactuals","."]
code: def initialize_CFs(
      self, query_instance, init_near_query_instance=False
  ):
      """Initialize counterfactuals."""
      inits = []
      for n in range(self.total_CFs):
          one_init = []
          for i in range(len(self.minx[0])):
              if i in self.feat_to_vary_idxs:
                  if init_near_query_instance:
                      one_init.append(query_instance[0][i] + (n * 0.01))
                  else:
                      one_init.append(
                          np.random.uniform(
                              self.minx[0][i], self.maxx[0][i]
                          )
                      )
              else:
                  one_init.append(query_instance[0][i])
          inits.append(np.array([one_init]))
      return inits
  
imports: import collections
  import copy
  import random
  import timeit
  import numpy
  import tensorflow
  from dice_ml import diverse_counterfactuals
  from dice_ml.counterfactual_explanations import CounterfactualExplanations
  from dice_ml.explainer_interfaces.explainer_base import ExplainerBase
label_desc: Use image node_id 15 for calling the DiceTensorFlow1 obj's underlying member method code with example usage: obj.initialize_CFs(query_instance, init_near_query_instance) and returns: inits