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:

After Change


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

Frequency: 3

Non-data size: 5

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: 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


Project Name: scipy/scipy
Commit Name: 6f6513963c3f568e5ad985a17a4aee0192223935
Time: 2019-07-17
Author: pete.mahler.larsen@gmail.com
File Name: scipy/spatial/_spherical_voronoi.py
Class Name: SphericalVoronoi
Method Name: _calc_vertices_regions