src/orion/benchmark/__init__.py
def configuration(self):
        """Return a copy of an `Benchmark` configuration as a dictionary."""
        config = dict()

        config["name"] = self.name
        config["algorithms"] = self.algorithms

        targets = []
        for target in self.targets:
            str_target = {}
            assessments = target["assess"]
            str_assessments = dict()
            for assessment in assessments:
                str_assessments.update(assessment.configuration)
            str_target["assess"] = str_assessments

            tasks = target["task"]
            str_tasks = dict()
            for task in tasks:
                str_tasks.update(task.configuration)
            str_target["task"] = str_tasks

        targets.append(str_target)
        config["targets"] = targets

        if self.id is not None:
            config["_id"] = self.id

        return copy.deepcopy(config)
Return a copy of an `Benchmark` configuration as a dictionary.
Return a copy of an `Benchmark` configuration as a dictionary.
Return a copy of an ` Benchmark ` configuration as a dictionary .
def configuration(self):
        config = dict()
        config["name"] = self.name
        config["algorithms"] = self.algorithms
        targets = []
        for target in self.targets:
            str_target = {}
            assessments = target["assess"]
            str_assessments = dict()
            for assessment in assessments:
                str_assessments.update(assessment.configuration)
            str_target["assess"] = str_assessments
            tasks = target["task"]
            str_tasks = dict()
            for task in tasks:
                str_tasks.update(task.configuration)
            str_target["task"] = str_tasks
        targets.append(str_target)
        config["targets"] = targets
        if self.id is not None:
            config["_id"] = self.id
        return copy.deepcopy(config)
def configuration ( self ) : config = dict ( ) config [ "name" ] = self . name config [ "algorithms" ] = self . algorithms targets = [ ] for target in self . targets : str_target = { } assessments = target [ "assess" ] str_assessments = dict ( ) for assessment in assessments : str_assessments . update ( assessment . configuration ) str_target [ "assess" ] = str_assessments tasks = target [ "task" ] str_tasks = dict ( ) for task in tasks : str_tasks . update ( task . configuration ) str_target [ "task" ] = str_tasks targets . append ( str_target ) config [ "targets" ] = targets if self . id is not None : config [ "_id" ] = self . id return copy . deepcopy ( config )
Return a copy of an `Benchmark` configuration as a dictionary.
Return a copy of an ` Benchmark ` configuration as a dictionary .
"""Return a copy of an `Benchmark` configuration as a dictionary."""
self