Beispiel #1
0
def _get_lazy_emd_dataset(inf_cloud_dataset, cat_id, n_samples):
    return get_lazy_evaluation_dataset(
        inf_cloud_dataset, cat_id, n_samples,
        lambda c0, c1: np_metrics.emd(c0, c1) / n_samples)
Beispiel #2
0
def _get_lazy_emd_dataset(inf_cloud_dataset, cat_id, n_samples):
    return get_lazy_evaluation_dataset(
        inf_cloud_dataset, cat_id, n_samples,
        lambda c0, c1: np_metrics.emd(c0, c1) / n_samples)
Beispiel #3
0
def _get_lazy_emd_dataset(inf_cloud_dataset, cat_id, n_samples):
    def eval_fn(c0, c1):
        return np_metrics.emd(c0, c1)

    return get_lazy_evaluation_dataset(inf_cloud_dataset, cat_id, n_samples,
                                       eval_fn)