(self, method_name, method_results)
Add results of a method.

        Parameters
        ----------
        method_results: {list, np.ndarray}
            experiment results of a method. contains k stateIO object with k-fold experiment results.

        method_name: str
            Name of the given method.
Add results of a method.
Add results of a method .
def __add_list_result(self, method_name, method_results):
        """
        Add results of a method.

        Parameters
        ----------
        method_results: {list, np.ndarray}
            experiment results of a method. contains k stateIO object with k-fold experiment results.

        method_name: str
            Name of the given method.
        """
        assert (isinstance(method_results, (list, np.ndarray)))
        # StateIO object
        # The type must be one of [0,1,2], otherwise, it will raise in that function.
        self._is_all_stateio = True
        result_type = _type_of_data(method_results)
        if result_type == 0:
            method_container = StateIOContainer(method_name=method_name, method_results=method_results)
            self._data_extracted[method_name] = method_container.extract_matrix()
            # get method summary
            # The summary, however, can not be inferred from a list of performances.
            # So if any lists of extracted data are given, we assume all the results are legal,
            # and thus we will not do further checking on it.
            self._data_summary[method_name] = _ContentSummary(method_results=method_results, method_type=result_type)
        elif result_type == 1:
            self._data_extracted[method_name] = copy.copy(method_results)
            self._is_all_stateio = False
            self._data_summary[method_name] = _ContentSummary(method_results=method_results, method_type=result_type)
        else:
            raise ValueError("The element in each list should be a single performance value.")
def __add_list_result ( self , method_name , method_results ) : assert ( isinstance ( method_results , ( list , np . ndarray ) ) ) # StateIO object # The type must be one of [0,1,2], otherwise, it will raise in that function. self . _is_all_stateio = True result_type = _type_of_data ( method_results ) if result_type == 0 : method_container = StateIOContainer ( method_name = method_name , method_results = method_results ) self . _data_extracted [ method_name ] = method_container . extract_matrix ( ) # get method summary # The summary, however, can not be inferred from a list of performances. # So if any lists of extracted data are given, we assume all the results are legal, # and thus we will not do further checking on it. self . _data_summary [ method_name ] = _ContentSummary ( method_results = method_results , method_type = result_type ) elif result_type == 1 : self . _data_extracted [ method_name ] = copy . copy ( method_results ) self . _is_all_stateio = False self . _data_summary [ method_name ] = _ContentSummary ( method_results = method_results , method_type = result_type ) else : raise ValueError ( "The element in each list should be a single performance value." )