def build_dataset(X, y, method_conf, cv_conf,
                  outputdir=".",
                  grid=None,
                  verbose=False,
                  compress=0):
    n_samples = X.shape[0]
    n_targets = 1 if (y.ndim == 1) else y.shape[1]
    if n_targets > 1:
        warnings.warn("More than one target. Unexpected results or crashes "
                      "may occur if your methods and/or metrics "
                      "cannot handle multiple targets.", RuntimeWarning)
    output_file = path.join(outputdir, "dataset.joblib")
    folds = dict(make_folds(y, cv_conf, verbose=verbose),
                 src=path.basename(output_file))

    if verbose:
        print("Input dataset destination: {}".format(output_file))
    dataset = {"X": X, "Y": y,
               "n_samples": n_samples, "n_targets": n_targets,
               "folds": folds, "grid": grid}
    joblib.dump(dataset, output_file, compress=compress)
    return dataset
Reverse the effect of setup_paste_factories().
dataset/ETHPy150Open BenoitDamota/mempamal/mempamal/configuration.py/build_dataset--crossover with--dataset/ETHPy150Open rcbops/glance-buildpackage/glance/common/wsgi.py/teardown_paste_factories