3ec8c6a88407166ae0f4f8fa5427be74509eac75,tfdeploy.py,TensorEnsemble,func_mean,#Any#,707
Before Change
@staticmethod
def func_mean(values):
return reduce(np.add, values) / len(values)
@staticmethod
def func_max(values):
return reduce(lambda a, b: np.max(a, b, axis=-1), values)
After Change
@staticmethod
def func_mean(values):
return np.mean(np.stack(values), axis=0)
@staticmethod
def func_max(values):
return np.amax(np.stack(values), axis=0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: riga/tfdeploy
Commit Name: 3ec8c6a88407166ae0f4f8fa5427be74509eac75
Time: 2016-06-28
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name: TensorEnsemble
Method Name: func_mean
Project Name: riga/tfdeploy
Commit Name: 3ec8c6a88407166ae0f4f8fa5427be74509eac75
Time: 2016-06-28
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name: TensorEnsemble
Method Name: func_max
Project Name: riga/tfdeploy
Commit Name: 3ec8c6a88407166ae0f4f8fa5427be74509eac75
Time: 2016-06-28
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name: TensorEnsemble
Method Name: func_min