c11520dbcc6c1c3889bc76a2b76f6adf5e99c54d,cde/density_estimator/BaseNNEstimator.py,BaseNNEstimator,fit_by_cv,#BaseNNEstimator#,39

Before Change



        // check if all results are available and rerun failed fit_evals
        for i, j in zip(param_ids, fold_ids):
            if (i, j) not in set(score_dict.keys()):
                _fit_eval(i, j)
        assert len(score_dict.keys()) == len(param_list) * len(train_splits)
        print(score_dict)

        // Select the best parameter setting

After Change


            failed_runs = [x for x in zip(param_ids, fold_ids) if x not in score_dict]
            if not failed_runs:
                break
            if verbose:
                print("{} runs succeeded, {} runs failed. Rerunning failed runs".format(len(score_dict.keys()),
                                                                                        len(failed_runs)))
            for (p, f) in failed_runs:
                try:
                    _fit_eval(p, f, verbose=verbose, i_rand=i)
                except Exception as e:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: c11520dbcc6c1c3889bc76a2b76f6adf5e99c54d
Time: 2019-05-02
Author: simonboehm@mailbox.org
File Name: cde/density_estimator/BaseNNEstimator.py
Class Name: BaseNNEstimator
Method Name: fit_by_cv


Project Name: acl-org/acl-anthology
Commit Name: 7419eacac2dfa909b280881524e685d7ea4d7ec7
Time: 2020-04-24
Author: post@cs.jhu.edu
File Name: bin/add_attachments.py
Class Name:
Method Name: add_attachment


Project Name: commonsense/conceptnet5
Commit Name: de83e84dd87aef0dea564de76c648c72d0f6b5a1
Time: 2017-04-05
Author: rob@luminoso.com
File Name: conceptnet5/vectors/evaluation/analogy.py
Class Name:
Method Name: eval_google_analogies