4ed84466b5e4bb5165d29a41ce27602d13ff64db,deepchem/models/__init__.py,Model,predict,#Model#Any#,144

Before Change


      y_preds = []
      for j in range(len(interval_points)-1):
        indices = range(interval_points[j], interval_points[j+1])
        y_preds.append(self.predict_on_batch(X[indices, :]))
      y_pred = np.concatenate(y_preds)
      y_pred = np.reshape(y_pred, np.shape(y))

After Change


      y_preds = []
      for j in range(len(interval_points)-1):
        indices = range(interval_points[j], interval_points[j+1])
        y_pred_on_batch = self.predict_on_batch(X[indices, :])
        y_pred_on_batch = np.reshape(y_pred_on_batch, (len(indices),))
        y_preds.append(y_pred_on_batch)

      y_pred = np.concatenate(y_preds)
      y_pred = np.reshape(y_pred, np.shape(y))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepchem/deepchem
Commit Name: 4ed84466b5e4bb5165d29a41ce27602d13ff64db
Time: 2016-01-21
Author: evan.n.feinberg@gmail.com
File Name: deepchem/models/__init__.py
Class Name: Model
Method Name: predict


Project Name: albermax/innvestigate
Commit Name: 6be5930b99adef6e6dab1a4cbc9c2cc63e874443
Time: 2017-12-24
Author: alber.maximilian@gmail.com
File Name: innvestigate/analyzer/base.py
Class Name: BaseNetwork
Method Name: analyze


Project Name: deepchem/deepchem
Commit Name: 9d385e0fe7e668a640ca4578b246eaced5b177ce
Time: 2016-10-15
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/keras_models/__init__.py
Class Name: KerasModel
Method Name: predict_on_batch