ee27c11166d39aafb9bf6196a037346c73ed2ae6,Orange/preprocess/transformation.py,Transformation,__call__,#Transformation#Any#,19
Before Change
self._last_domain = data.domain
self.attr_index = data.domain.index(self.variable)
if isinstance(data, Instance):
return self .transform(np.array([float(data[self.attr_index])]))[0]
elif isinstance(data, Table):
return self.transform(data.get_column_view(self.attr_index)[0])
else:
After Change
self.attr_index = data.domain.index(self.variable)
except (KeyError, ValueError):
if self.variable.compute_value is None:
raise ValueError("{} is not in domain".
format(self.variable.name) )
self.attr_index = None
self._last_domain = data.domain
if self.attr_index is None:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: biolab/orange3
Commit Name: ee27c11166d39aafb9bf6196a037346c73ed2ae6
Time: 2015-02-20
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/preprocess/transformation.py
Class Name: Transformation
Method Name: __call__
Project Name: rkcosmos/deepcut
Commit Name: 0347e36737b25671dff14c6c1bbbe5d090d71a06
Time: 2017-06-28
Author: titipata@allenai.org
File Name: deepcut/train.py
Class Name:
Method Name: train_model
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 37f1544cb19794294029aa64e7b119b69ef09f51
Time: 2018-11-20
Author: contact@againstthecurrent.ch
File Name: category_encoders/basen.py
Class Name: BaseNEncoder
Method Name: fit