(sample1, sample2, eps=1e-6,
        return_components=False)
return calculate_frechet_distance(mu1, sigma1, mu2, sigma2, eps=eps,
            return_components=return_components)
Both samples should be numpy arrays.
    Returns the Frechet distance.
Both samples should be numpy arrays.
    Returns the Frechet distance.
Both samples should be numpy arrays . Returns the Frechet distance .
def sample_frechet_distance(sample1, sample2, eps=1e-6,
        return_components=False):
    '''
    Both samples should be numpy arrays.
    Returns the Frechet distance.
    '''
    (mu1, sigma1), (mu2, sigma2) = [calculate_activation_statistics(s)
            for s in [sample1, sample2]]
    return calculate_frechet_distance(mu1, sigma1, mu2, sigma2, eps=eps,
            return_components=return_components)
def sample_frechet_distance ( sample1 , sample2 , eps = 1e-6 , return_components = False ) : ( mu1 , sigma1 ) , ( mu2 , sigma2 ) = [ calculate_activation_statistics ( s ) for s in [ sample1 , sample2 ] ] return calculate_frechet_distance ( mu1 , sigma1 , mu2 , sigma2 , eps = eps , return_components = return_components )