parameters: (self, num_strats, num_players)
return_statement: return (init_dist, init_regret)
docstring: Initialize solver parameters.
docstring_summary: Initialize solver parameters.
docstring_tokens: Initialize solver parameters .
function: def init_vars(self, num_strats, num_players):
      """Initialize solver parameters."""
      self.num_players = num_players
      if len(num_strats) != num_players:
        raise ValueError('Must specify num strategies for each player')
      init_dist = []
      for num_strats_i in num_strats:
        if self.rnd_init:
          init_dist_i = self.random.rand(num_strats_i)
        else:
          init_dist_i = np.ones(num_strats_i)
        init_dist_i /= init_dist_i.sum()
        init_dist.append(init_dist_i)
      init_regret = [np.zeros_like(dist_i) for dist_i in init_dist]
      return (init_dist, init_regret)
function_tokens: def init_vars ( self , num_strats , num_players ) : self . num_players = num_players if len ( num_strats ) != num_players : raise ValueError ( 'Must specify num strategies for each player' ) init_dist = [ ] for num_strats_i in num_strats : if self . rnd_init : init_dist_i = self . random . rand ( num_strats_i ) else : init_dist_i = np . ones ( num_strats_i ) init_dist_i /= init_dist_i . sum ( ) init_dist . append ( init_dist_i ) init_regret = [ np . zeros_like ( dist_i ) for dist_i in init_dist ] return ( init_dist , init_regret )