09bfc1b3ef8494cf17a192bbe83df576ccdac86f,cesium/predict.py,,model_predictions,#Any#Any#Any#,16

Before Change


        except AttributeError:
            preds = model.predict(feature_df)
    else:
        preds = model.predict(feature_df)

    if len(preds.shape) == 1:
        return pd.Series(preds, index=feature_df.index, name="prediction")
    else:

After Change


    else:
        preds = model.predict(feature_df)

    predset = featureset.copy()
    if len(preds.shape) == 1:
        predset["prediction"] = (["name"], preds)
    else:
        if isinstance(model, GridSearchCV):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cesium-ml/cesium
Commit Name: 09bfc1b3ef8494cf17a192bbe83df576ccdac86f
Time: 2016-06-29
Author: brettnaul@gmail.com
File Name: cesium/predict.py
Class Name:
Method Name: model_predictions


Project Name: techfort/pycv
Commit Name: c8ba6700d85c3be085e4c9b5e68251030e497b2c
Time: 2015-06-28
Author: joe.minichino@gmail.com
File Name: chapter9/digits_image_process.py
Class Name:
Method Name:


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 85e42ea64f4d6fdebb88e5360025de2ec4e34ea0
Time: 2019-04-25
Author: beat.buesser@ie.ibm.com
File Name: art/attacks/fast_gradient.py
Class Name: FastGradientMethod
Method Name: generate