(self, predict_matrices)
return input_shape, committee_size
check the validity of given committee predictions.

        Parameters
        ----------
        predict_matrices: list
            The prediction matrix for each committee.
            Each committee predict matrix should have the shape [n_samples, n_classes] for probabilistic output
            or [n_samples] for class output.

        Returns
        -------
        input_shape: tuple
            The shape of the predict_matrix

        committee_size: int
            The number of committees.
check the validity of given committee predictions.
check the validity of given committee predictions .
def _check_committee_results(self, predict_matrices):
        """check the validity of given committee predictions.

        Parameters
        ----------
        predict_matrices: list
            The prediction matrix for each committee.
            Each committee predict matrix should have the shape [n_samples, n_classes] for probabilistic output
            or [n_samples] for class output.

        Returns
        -------
        input_shape: tuple
            The shape of the predict_matrix

        committee_size: int
            The number of committees.

        """
        shapes = [np.shape(X) for X in predict_matrices if X is not None]
        uniques = np.unique(shapes, axis=0)
        if len(uniques) > 1:
            raise Exception("Found input variables with inconsistent numbers of"
                            " shapes: %r" % [int(l) for l in shapes])
        committee_size = len(predict_matrices)
        if not committee_size > 1:
            raise ValueError("Two or more committees are expected, but received: %d" % committee_size)
        input_shape = uniques[0]
        return input_shape, committee_size
def _check_committee_results ( self , predict_matrices ) : shapes = [ np . shape ( X ) for X in predict_matrices if X is not None ] uniques = np . unique ( shapes , axis = 0 ) if len ( uniques ) > 1 : raise Exception ( "Found input variables with inconsistent numbers of" " shapes: %r" % [ int ( l ) for l in shapes ] ) committee_size = len ( predict_matrices ) if not committee_size > 1 : raise ValueError ( "Two or more committees are expected, but received: %d" % committee_size ) input_shape = uniques [ 0 ] return input_shape , committee_size