(Y, W, domain)
return np.bincount(Y, weights=W, minlength=len(domain.class_var.values))
Determine the class distribution for a given array of
    classifications. Identify the number of classes from the data
    domain.

    Parameters
    ----------
    Y : ndarray, int
        Array of classifications.
    W : ndarray, float
        Weights.
    domain : Orange.data.domain.Domain
        Data domain.

    Returns
    -------
    dist : ndarray
        Class distribution.
Determine the class distribution for a given array of
    classifications. Identify the number of classes from the data
    domain.
Determine the class distribution for a given array of classifications . Identify the number of classes from the data domain .
def get_dist(Y, W, domain):
    """
    Determine the class distribution for a given array of
    classifications. Identify the number of classes from the data
    domain.

    Parameters
    ----------
    Y : ndarray, int
        Array of classifications.
    W : ndarray, float
        Weights.
    domain : Orange.data.domain.Domain
        Data domain.

    Returns
    -------
    dist : ndarray
        Class distribution.
    """
    return np.bincount(Y, weights=W, minlength=len(domain.class_var.values))
def get_dist ( Y , W , domain ) : return np . bincount ( Y , weights = W , minlength = len ( domain . class_var . values ) )