parameters: (self)
return_statement: return self.form_response({
                  'endpoint': self._route_name,
                  'arm_allocations': arms_to_allocations,
                  'winner': bandit_class.choose_arm(arms_to_allocations),
                  })
docstring: Endpoint for bandit_epsilon POST requests.
  
          .. http:post:: /bandit/epsilon
  
             Predict the optimal arm from a set of arms, given historical data.
  
             :input: :class:`moe.views.schemas.rest.bandit_epsilon.BanditEpsilonRequest`
             :output: :class:`moe.views.schemas.bandit_pretty_view.BanditResponse`
  
             :status 200: returns a response
             :status 500: server error
docstring_summary: Endpoint for bandit_epsilon POST requests.
docstring_tokens: Endpoint for bandit_epsilon POST requests .
function: def bandit_epsilon_view(self):
          """Endpoint for bandit_epsilon POST requests.
  
          .. http:post:: /bandit/epsilon
  
             Predict the optimal arm from a set of arms, given historical data.
  
             :input: :class:`moe.views.schemas.rest.bandit_epsilon.BanditEpsilonRequest`
             :output: :class:`moe.views.schemas.bandit_pretty_view.BanditResponse`
  
             :status 200: returns a response
             :status 500: server error
  
          """
          params = self.get_params_from_request()
  
          subtype = params.get('subtype')
          historical_info = _make_bandit_historical_info_from_params(params)
  
          bandit_class = EPSILON_SUBTYPES_TO_BANDIT_METHODS[subtype].bandit_class(historical_info=historical_info, **params.get('hyperparameter_info'))
          arms_to_allocations = bandit_class.allocate_arms()
  
          return self.form_response({
                  'endpoint': self._route_name,
                  'arm_allocations': arms_to_allocations,
                  'winner': bandit_class.choose_arm(arms_to_allocations),
                  })
function_tokens: def bandit_epsilon_view ( self ) : params = self . get_params_from_request ( ) subtype = params . get ( 'subtype' ) historical_info = _make_bandit_historical_info_from_params ( params ) bandit_class = EPSILON_SUBTYPES_TO_BANDIT_METHODS [ subtype ] . bandit_class ( historical_info = historical_info , * * params . get ( 'hyperparameter_info' ) ) arms_to_allocations = bandit_class . allocate_arms ( ) return self . form_response ( { 'endpoint' : self . _route_name , 'arm_allocations' : arms_to_allocations , 'winner' : bandit_class . choose_arm ( arms_to_allocations ) , } )