654cb3ebcd25491bff876971adcea2d2305207f4,pgmpy/factors/continuous/ContinuousFactor.py,ContinuousFactor,reduce,#ContinuousFactor#Any#Any#,130
Before Change
raise TypeError("variables: Expected type list or array-like, "
"got type {var_type}".format(var_type=type(values)))
if not all([var in self.variables for var,value in values]):
raise ValueError("Variable not in scope.")
phi = self if inplace else self.copy()
var_to_remove = [var for var, value in values]
var_to_keep = [var for var in self.variables if var not in var_to_remove]
After Change
raise TypeError("variables: Expected type list or array-like, "
"got type {var_type}".format(var_type=type(values)))
for var,value in values:
if var not in phi.variables:
raise ValueError("{var} not in scope.".format(var=var))
phi = self if inplace else self.copy()
var_to_remove = [var for var, value in values]
var_to_keep = [var for var in self.variables if var not in var_to_remove]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: pgmpy/pgmpy
Commit Name: 654cb3ebcd25491bff876971adcea2d2305207f4
Time: 2016-07-01
Author: yashuseth2503@gmail.com
File Name: pgmpy/factors/continuous/ContinuousFactor.py
Class Name: ContinuousFactor
Method Name: reduce
Project Name: dask/dask-ml
Commit Name: 68c9bab4a5c6821c2a4395763c676ba796406c49
Time: 2020-08-17
Author: TomAugspurger@users.noreply.github.com
File Name: dask_ml/preprocessing/_encoders.py
Class Name: OneHotEncoder
Method Name: _transform
Project Name: deepgram/kur
Commit Name: 1f1adbf4aa47514d0ce857398fa0d1cb2956e267
Time: 2017-01-03
Author: ajsyp@syptech.net
File Name: kur/providers/shuffle_provider.py
Class Name: ShuffleProvider
Method Name: __init__