6c79a442f2fdf6b88002510fc4ed60265ba7f6c9,utils.py,Signal,get_mean,#Signal#,195

Before Change


    def get_mean(self):
        if len(self.values) == 0:
            return ""
        if type(self.values[0]) == np.ndarray:
            return np.mean(np.concatenate(self.values))
        else:
            return np.mean(self.values)

    def get_max(self):
        if len(self.values) == 0:
            return ""
        if type(self.values[0]) == np.ndarray:

After Change


    def get_mean(self):
        if len(self.values) == 0:
            return ""
        return np.mean(self._get_values())

    def get_max(self):
        if len(self.values) == 0:
            return ""
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 13

Instances


Project Name: NervanaSystems/coach
Commit Name: 6c79a442f2fdf6b88002510fc4ed60265ba7f6c9
Time: 2018-01-05
Author: zach.dwiel@intel.com
File Name: utils.py
Class Name: Signal
Method Name: get_mean


Project Name: NervanaSystems/coach
Commit Name: 6c79a442f2fdf6b88002510fc4ed60265ba7f6c9
Time: 2018-01-05
Author: zach.dwiel@intel.com
File Name: utils.py
Class Name: Signal
Method Name: get_stdev


Project Name: NervanaSystems/coach
Commit Name: 6c79a442f2fdf6b88002510fc4ed60265ba7f6c9
Time: 2018-01-05
Author: zach.dwiel@intel.com
File Name: utils.py
Class Name: Signal
Method Name: get_max


Project Name: NervanaSystems/coach
Commit Name: 6c79a442f2fdf6b88002510fc4ed60265ba7f6c9
Time: 2018-01-05
Author: zach.dwiel@intel.com
File Name: utils.py
Class Name: Signal
Method Name: get_min