efb9e31a852b3bfbea0ec52297fddb094af4cbf4,nonconformist/acp.py,CrossConformalClassifier,__init__,#CrossConformalClassifier#,243

Before Change


	             sampler=CrossSampler(),
	             nc_class_params=None,
	             n_models=10):
		self.predictors = []
		self.n_models = n_models
		self.cp_class = cp_class
		self.nc_class = nc_class
		self.nc_class_params = nc_class_params if nc_class_params else {}
		self.sampler = sampler

	def fit(self, x, y):
		self.predictors = []

After Change


	Examples
	--------
	
	def __init__(self,
				 predictor,
				 n_models=10):
		super(CrossConformalClassifier, self).__init__(predictor,
													   CrossSampler(),
													   n_models)

	def predict(self, x, significance=None):
		predictions = np.dstack([p.predict(x, significance=None)
		                         for p in self.predictors])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 14

Instances


Project Name: donlnz/nonconformist
Commit Name: efb9e31a852b3bfbea0ec52297fddb094af4cbf4
Time: 2015-11-12
Author: henrik@supindis.com
File Name: nonconformist/acp.py
Class Name: CrossConformalClassifier
Method Name: __init__


Project Name: donlnz/nonconformist
Commit Name: efb9e31a852b3bfbea0ec52297fddb094af4cbf4
Time: 2015-11-12
Author: henrik@supindis.com
File Name: nonconformist/acp.py
Class Name: CrossConformalClassifier
Method Name: __init__


Project Name: CSAILVision/semantic-segmentation-pytorch
Commit Name: 7c5ea376b885cac19f8f08d533254422dc5697d7
Time: 2019-02-23
Author: zhaohang0124@gmail.com
File Name: dataset.py
Class Name: TrainDataset
Method Name: __init__


Project Name: donlnz/nonconformist
Commit Name: efb9e31a852b3bfbea0ec52297fddb094af4cbf4
Time: 2015-11-12
Author: henrik@supindis.com
File Name: nonconformist/acp.py
Class Name: BootstrapConformalClassifier
Method Name: __init__