src/orion/serving/experiments_resource.py
def on_get_experiment(self, req: Request, resp: Response, name: str):
        """
        Handle GET requests for experiments/:name where `name` is
        the user-defined name of the experiment
        """
        verify_query_parameters(req.params, ["version"])
        version = req.get_param_as_int("version")
        experiment = retrieve_experiment(name, version)

        status = _retrieve_status(experiment)
        algorithm = _retrieve_algorithm(experiment)
        best_trial = _retrieve_best_trial(experiment)

        response = build_experiment_response(experiment, status, algorithm, best_trial)
        resp.body = json.dumps(response)

        Handle GET requests for experiments/:name where `name` is
        the user-defined name of the experiment
        
Handle GET requests for experiments/:name where `name` is
the user-defined name of the experiment
Handle GET requests for experiments / : name where ` name ` is the user - defined name of the experiment
def on_get_experiment(self, req: Request, resp: Response, name: str):
        verify_query_parameters(req.params, ["version"])
        version = req.get_param_as_int("version")
        experiment = retrieve_experiment(name, version)
        status = _retrieve_status(experiment)
        algorithm = _retrieve_algorithm(experiment)
        best_trial = _retrieve_best_trial(experiment)
        response = build_experiment_response(experiment, status, algorithm, best_trial)
        resp.body = json.dumps(response)
def on_get_experiment ( self , req : Request , resp : Response , name : str ) : verify_query_parameters ( req . params , [ "version" ] ) version = req . get_param_as_int ( "version" ) experiment = retrieve_experiment ( name , version ) status = _retrieve_status ( experiment ) algorithm = _retrieve_algorithm ( experiment ) best_trial = _retrieve_best_trial ( experiment ) response = build_experiment_response ( experiment , status , algorithm , best_trial ) resp . body = json . dumps ( response )
Handle GET requests for experiments/:name where `name` is
the user-defined name of the experiment
Handle GET requests for experiments / : name where ` name ` is the user - defined name of the experiment
"""
        Handle GET requests for experiments/:name where `name` is
        the user-defined name of the experiment
        """
self
req
Request
resp
Response
name
str