1672b5a9a47b081aa3e61c9f2ca76fae26ed8730,cheml/wrappers/cheml_cml/cheml_wrapper.py,DistanceMatrix,fit,#DistanceMatrix#,221
Before Change
def fit(self):
from cheml.chem import DistanceMatrix
// check inputs
if isinstance(self.legal_inputs["df"], type(None)):
msg = "@Task //%i(%s): input data frame is required"%(self.iblock,self.SuperFunction)
raise IOError(msg)
try:
model = DistanceMatrix(**self.parameters)
except Exception as err:
msg = "@Task //%i(%s): " % (self.iblock + 1, self.SuperFunction) + type(err).__name__ + ": " + err.message
After Change
raise NameError(msg)
elif token == "df":
ar = self.inputs["df"].value
df = pd.DataFrame(model.transform(ar))
self.set_value(token, df)
self.outputs[token].count = order.count(token)
self.Base.send[(self.iblock, token)] = self.outputs[token]
del self.inputs
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: hachmannlab/chemml
Commit Name: 1672b5a9a47b081aa3e61c9f2ca76fae26ed8730
Time: 2017-11-12
Author: mojtabah@buffalo.edu
File Name: cheml/wrappers/cheml_cml/cheml_wrapper.py
Class Name: DistanceMatrix
Method Name: fit
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: tyarkoni/pliers
Commit Name: 8287ab99b05c33de320eb2db888b744fa3143f02
Time: 2017-05-05
Author: quinten.mcnamara@gmail.com
File Name: pliers/scikit.py
Class Name: PliersTransformer
Method Name: transform
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 37f1544cb19794294029aa64e7b119b69ef09f51
Time: 2018-11-20
Author: contact@againstthecurrent.ch
File Name: category_encoders/target_encoder.py
Class Name: TargetEncoder
Method Name: transform