Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/p/y/py-sdm-HEAD/sdm/sdm.py   py-sdm(Download)
                    rmse, iteritems, iterkeys, izip, identity, lazy_range,
                    get_status_fn, read_cell_array)
from .mp_utils import ForkedData, get_pool, progressbar_and_updater
from .np_divs import (estimate_divs,
                      check_h5_settings, add_to_h5_cache, normalize_div_name)
            # make sure not to modify self.sigma_vals...
        folds = ForkedData(
                    list(KFold(n=num_bags, n_folds=num_folds, shuffle=True)))
        param_d['fold_idx'] = np.arange(num_folds)
        param_names, param_lens = zip(*sorted(
            #status_fn('Projecting: sigma = {}'.format(sigma))
            km = make_km(divs, sigma, method=self.km_method)
            sigma_kms[sigma] = ForkedData(km)
 
        labels_d = ForkedData(labels)
        sample_weight_d = ForkedData(sample_weight)