parameters: (self)
return_statement: return self.solutions
docstring: returns a list of parameters
docstring_summary: returns a list of parameters
docstring_tokens: returns a list of parameters
function: def ask(self):
          '''returns a list of parameters'''
          # antithetic sampling
          if self.antithetic:
              self.epsilon_half = np.random.randn(self.half_popsize, self.num_params)
              self.epsilon = np.concatenate([self.epsilon_half, - self.epsilon_half])
          else:
              self.epsilon = np.random.randn(self.popsize, self.num_params)
  
          self.solutions = self.mu.reshape(1, self.num_params) + self.epsilon * self.sigma
  
          return self.solutions
function_tokens: def ask ( self ) : # antithetic sampling if self . antithetic : self . epsilon_half = np . random . randn ( self . half_popsize , self . num_params ) self . epsilon = np . concatenate ( [ self . epsilon_half , - self . epsilon_half ] ) else : self . epsilon = np . random . randn ( self . popsize , self . num_params ) self . solutions = self . mu . reshape ( 1 , self . num_params ) + self . epsilon * self . sigma return self . solutions