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:
				return p_values >= significance
			else:
				return p_values

		if self.cp_class.problem_type == "regression":
			intervals = None
			for predictor in self.predictors:

After Change


			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
		else:
			return predictions
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: GPflow/GPflow
Commit Name: 5809cb0b339612434f4f332a91a2cd3e4570c34d
Time: 2018-02-26
Author: james@prowler.io
File Name: gpflow/transforms.py
Class Name: LowerTriangular
Method Name: backward_tensor