(self, results: np.ndarray)
return self
Set previously available model results.
Set previously available model results.
Set previously available model results .
def set_results(self, results: np.ndarray):
        """Set previously available model results."""
        if self.samples is not None:
            assert self.samples.shape[0] == results.shape[0], \
                "Provided result array does not match existing number of existing samples!"

        self.results = results

        return self
def set_results ( self , results : np . ndarray ) : if self . samples is not None : assert self . samples . shape [ 0 ] == results . shape [ 0 ] , "Provided result array does not match existing number of existing samples!" self . results = results return self