72a8442d538cdbffff25ce639aebf10a79db612e,pliers/extractors/models.py,TFHubExtractor,_extract,#TFHubExtractor#Any#,48
Before Change
def _extract(self, stim):
features = listify(self.get_feature_names())
input = listify(stim.data)
if self.transform_fn:
input = self.transform_fn(input)
output = self.model.signatures["serving_default"](input).numpy() // or self.model(input).numpy()
return ExtractorResult(output, stim, self,
features=features)
After Change
def _extract(self, stim):
features = listify(self._get_feature_names())
inp = self._preprocess(stim)
out = self.model(inp).numpy()
out = self._postprocess(out)
return ExtractorResult(out, stim, self,
features=features)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: tyarkoni/pliers
Commit Name: 72a8442d538cdbffff25ce639aebf10a79db612e
Time: 2020-12-10
Author: rbrrcc@gmail.com
File Name: pliers/extractors/models.py
Class Name: TFHubExtractor
Method Name: _extract
Project Name: AIRLab-POLIMI/mushroom
Commit Name: 92e4a3be4beda3e39ae87ecf2af359584e5cbd16
Time: 2017-08-26
Author: carlo.deramo@gmail.com
File Name: PyPi/approximators/regressor.py
Class Name: Regressor
Method Name: _preprocess_predict
Project Name: AIRLab-POLIMI/mushroom
Commit Name: 92e4a3be4beda3e39ae87ecf2af359584e5cbd16
Time: 2017-08-26
Author: carlo.deramo@gmail.com
File Name: PyPi/approximators/regressor.py
Class Name: Regressor
Method Name: _preprocess_fit