src/orion/algo/tpe.py
def split_trials(self):
        """Split the observed trials into good and bad ones based on the ratio `gamma``"""
        sorted_trials = sorted(
            self._trials_info.values(), key=lambda x: x[1]["objective"]
        )
        sorted_points = [list(points) for points, results in sorted_trials]

        split_index = int(numpy.ceil(self.gamma * len(sorted_points)))

        below = sorted_points[:split_index]
        above = sorted_points[split_index:]

        return below, above
Split the observed trials into good and bad ones based on the ratio `gamma``
Split the observed trials into good and bad ones based on the ratio `gamma``
Split the observed trials into good and bad ones based on the ratio ` gamma ` `
def split_trials(self):
        sorted_trials = sorted(
            self._trials_info.values(), key=lambda x: x[1]["objective"]
        )
        sorted_points = [list(points) for points, results in sorted_trials]
        split_index = int(numpy.ceil(self.gamma * len(sorted_points)))
        below = sorted_points[:split_index]
        above = sorted_points[split_index:]
        return below, above
def split_trials ( self ) : sorted_trials = sorted ( self . _trials_info . values ( ) , key = lambda x : x [ 1 ] [ "objective" ] ) sorted_points = [ list ( points ) for points , results in sorted_trials ] split_index = int ( numpy . ceil ( self . gamma * len ( sorted_points ) ) ) below = sorted_points [ : split_index ] above = sorted_points [ split_index : ] return below , above
Split the observed trials into good and bad ones based on the ratio `gamma``
Split the observed trials into good and bad ones based on the ratio ` gamma ` `
"""Split the observed trials into good and bad ones based on the ratio `gamma``"""
self