805f6c8391582a4d65a18db8a68dc2d33e87bd84,enso/experiment/finetuning.py,IndicoSequenceLabel,predict,#IndicoSequenceLabel#Any#,70

Before Change


        for i in range(num_batches):
            data = X[i*batch_size: (i+1)*batch_size]
            predictions.extend(self.model.predict(data))
        return [json.dumps(targ) for targ in predictions]

    def __del__(self):
        self.model.clear()

After Change


        for i in range(num_batches):
            data = X[i*batch_size: (i+1)*batch_size]
            predictions.extend(self.model.predict(data))
        return predictions

    def __del__(self):
        self.model.clear()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: IndicoDataSolutions/Enso
Commit Name: 805f6c8391582a4d65a18db8a68dc2d33e87bd84
Time: 2018-07-25
Author: benlt@hotmail.co.uk
File Name: enso/experiment/finetuning.py
Class Name: IndicoSequenceLabel
Method Name: predict


Project Name: OpenMined/PySyft
Commit Name: afadb6b3193224c40ffb76496e1aa14567b3dcb4
Time: 2020-08-21
Author: 2017csb1092@iitrpr.ac.in
File Name: syft/grid/clients/data_centric_fl_client.py
Class Name: DataCentricFLClient
Method Name: simplify


Project Name: IndicoDataSolutions/Enso
Commit Name: 805f6c8391582a4d65a18db8a68dc2d33e87bd84
Time: 2018-07-25
Author: benlt@hotmail.co.uk
File Name: enso/experiment/finetuning.py
Class Name: FinetuneSequenceLabel
Method Name: predict