a68ba97309512f691feb25e6a07af7561fc56e3b,sklearn/inspection/_permutation_importance.py,,permutation_importance,#Any#Any#Any#Any#Any#Any#Any#,45

Before Change


    scorer = check_scoring(estimator, scoring=scoring)

    baseline_score = scorer(estimator, X, y)
    scores = np.zeros((X.shape[1], n_repeats))

    scores = Parallel(n_jobs=n_jobs)(delayed(_calculate_permutation_scores)(
        estimator, X, y, col_idx, random_state, n_repeats, scorer
    ) for col_idx in range(X.shape[1]))

After Change


    // the fact that variables are shared or not depending on the active
    // joblib backend (sequential, thread-based or process-based).
    random_state = check_random_state(random_state)
    random_seed = random_state.randint(np.iinfo(np.int32).max + 1)

    scorer = check_scoring(estimator, scoring=scoring)
    baseline_score = scorer(estimator, X, y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-learn/scikit-learn
Commit Name: a68ba97309512f691feb25e6a07af7561fc56e3b
Time: 2019-12-20
Author: g.lemaitre58@gmail.com
File Name: sklearn/inspection/_permutation_importance.py
Class Name:
Method Name: permutation_importance


Project Name: nl8590687/ASRT_SpeechRecognition
Commit Name: c621c0aeb96002bfc53e98eaad07af29532e1c55
Time: 2017-09-07
Author: 3210346136@qq.com
File Name: readdata.py
Class Name: DataSpeech
Method Name: data_genetator


Project Name: scikit-image/scikit-image
Commit Name: 9795e24cb5b3b7ffed0ca959a0986b28366908a9
Time: 2017-09-12
Author: peter@goldsborough.me
File Name: skimage/data/generate_shapes.py
Class Name:
Method Name: _generate_rectangle_mask