058c79c9653af78184deb94aa3853f8a37eec32a,pyinterpret/core/global_interpretation/partial_dependence.py,PartialDependence,partial_dependence,#PartialDependence#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,10

Before Change


        X_mutable = X.copy()

        means = np.zeros([grid_resolution for i in range(n_features)])
        sds = np.zeros([grid_resolution for i in range(n_features)])

        for i in range(grid_expanded.shape[0]):
            new_row = grid_expanded[i]
            row_id = id_grid_expanded[i]

After Change


            pdp = {}
            new_row = grid_expanded[i]
            row_id = id_grid_expanded[i]
            row_id = tuple(row_id.tolist())
            for feature_idx, feature_id in enumerate(feature_ids):
                X_mutable[feature_id] = new_row[feature_idx]

            predictions = predict_fn(X_mutable.values)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: datascienceinc/Skater
Commit Name: 058c79c9653af78184deb94aa3853f8a37eec32a
Time: 2017-03-02
Author: aikramer2@gmail.com
File Name: pyinterpret/core/global_interpretation/partial_dependence.py
Class Name: PartialDependence
Method Name: partial_dependence


Project Name: SPFlow/SPFlow
Commit Name: c3dad33e01d025c1a742963050f74132e79c7324
Time: 2018-10-31
Author: nicola.dimauro@uniba.it
File Name: src/spn/structure/leaves/cltree/MLE.py
Class Name:
Method Name: update_cltree_parameters_mle


Project Name: bashtage/linearmodels
Commit Name: 3b7c9ec865c02888620cdf215e61c616e1dcc7a2
Time: 2021-01-06
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/iv/test_model.py
Class Name:
Method Name: data


Project Name: marcoancona/DeepExplain
Commit Name: 2491af9de0dd8d20c4bb8236d9c51cdb33f14060
Time: 2018-02-23
Author: marco.ancona@inf.ethz.ch
File Name: deepexplain/tensorflow/methods.py
Class Name: IntegratedGradients
Method Name: run