aab2ef03ff533c1160742fafd2bf12133e227ddb,nonconformist/ensemble.py,AggregatedCp,predict,#AggregatedCp#Any#Any#,41

Before Change


				if p_values is None:
					p_values = predictor.predict(x)
				else:
					p_values = np.dstack([p_values, predictor.predict(x)])

			p_values = self.p_agg_func(p_values)

			if significance:

After Change


	def predict(self, x, significance=None):
		is_regression = self.cp_class.problem_type == "regression"

		if is_regression:
			predictions = np.dstack([predictor.predict(x, significance) for
			                         predictor in self.predictors])
		else:
			predictions = np.dstack([predictor.predict(x) for
			                         predictor in self.predictors])

		predictions = self.p_agg_func(predictions)

		if significance and not is_regression:
			return predictions >= significance
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: donlnz/nonconformist
Commit Name: aab2ef03ff533c1160742fafd2bf12133e227ddb
Time: 2015-03-19
Author: henrik.linusson@gmail.com
File Name: nonconformist/ensemble.py
Class Name: AggregatedCp
Method Name: predict


Project Name: luispedro/mahotas
Commit Name: 7f5d55e309efbd0eee135ff5af520e3ddea310fb
Time: 2010-11-12
Author: lpc@cmu.edu
File Name: mahotas/freeimage.py
Class Name:
Method Name: _array_from_bitmap


Project Name: ANTsX/ANTsPy
Commit Name: 1ea4d793f13defcc2401259ac14dfb118fc4bd58
Time: 2018-11-23
Author: stnava@gmail.com
File Name: ants/utils/ndimage_to_list.py
Class Name:
Method Name: list_to_ndimage