def estimate_beta_parameters(dataset, meanfactor=2):
    """Estimates alpha and beta parameters for Beta distribution
    by using the mean of each feature
    """
    alpha = meanfactor * dataset.mean(0)
    beta = meanfactor - alpha
    return alpha, beta