321a0f455524b7553a66ff229f8b4c02c40a5fda,featuretools/synthesis/deep_feature_synthesis.py,DeepFeatureSynthesis,_handle_new_feature,#DeepFeatureSynthesis#Any#Any#,388
Before Change
self._max_hlevel(new_feature) > self.max_hlevel):
return
entity_id = new_feature.entity.id
if new_feature.hash() in all_features[entity_id]:
return
raise Exception("DFS runtime error: tried to add feature %s"
" more than once" % (new_feature.get_name()))
all_features[entity_id][new_feature.hash()] = new_feature
def _add_identity_features(self, all_features, entity):
converts all variables from the given entity into features
After Change
// Warn if this feature is already present, and it is not a seed feature.
// It is expected that a seed feature could also be generated by dfs.
if name in all_features[entity_id] and \
name not in (f.unique_name() for f in self.seed_features) :
logger.warning("Attempting to add feature %s which is already "
"present. This is likely a bug." % new_feature)
return
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: Featuretools/featuretools
Commit Name: 321a0f455524b7553a66ff229f8b4c02c40a5fda
Time: 2019-06-21
Author: chrisstadler@gmail.com
File Name: featuretools/synthesis/deep_feature_synthesis.py
Class Name: DeepFeatureSynthesis
Method Name: _handle_new_feature
Project Name: andresriancho/w3af
Commit Name: 4a878f17f0c18bf1dce3553b47f90f5c2c8e91d2
Time: 2018-07-19
Author: andres.riancho@gmail.com
File Name: w3af/plugins/grep/password_profiling.py
Class Name: password_profiling
Method Name: grep
Project Name: deepgram/kur
Commit Name: 7f268a42be1c0b6e59635e6b7ac1ff1605605ff1
Time: 2017-04-11
Author: ajsyp@syptech.net
File Name: kur/loss/ctc.py
Class Name: Ctc
Method Name: get_loss