04f97136134ac7c6605f34af91ec483cad3c604f,src/deep_notebooks/dn_text_generation.py,,categorical_correlations,#Any#Any#,795
Before Change
def categorical_correlations(spn, dictionary):
categoricals = f.get_categoricals(spn)
corr = f.get_full_correlation(spn)
all_combinations = [(i,j) for i,j in itertools.product(range(spn.numFeatures), range(spn.numFeatures)) if i > j and np.abs(corr[i,j]) > correlation_threshold]
if isinstance(feature_combinations, int):
After Change
def categorical_correlations(spn, dictionary):
context = dictionary["context"]
categoricals = context.get_categoricals()
corr = get_full_correlation(spn, context)
num_features = len(spn.scope)
feature_names = context.feature_names
all_combinations = [(i, j) for i, j in
itertools.product(range(num_features),
range(num_features)) if
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: SPFlow/SPFlow
Commit Name: 04f97136134ac7c6605f34af91ec483cad3c604f
Time: 2018-09-19
Author: claas@voelcker.net
File Name: src/deep_notebooks/dn_text_generation.py
Class Name:
Method Name: categorical_correlations
Project Name: SPFlow/SPFlow
Commit Name: ac7f037e010a3531d8400c881ce4aec953772f57
Time: 2018-09-21
Author: claas@voelcker.net
File Name: src/deep_notebooks/dn_text_generation.py
Class Name:
Method Name: classification
Project Name: SPFlow/SPFlow
Commit Name: b80425cb2611ee031c4fe43e5c7969173d0aaaf7
Time: 2018-09-20
Author: claas@voelcker.net
File Name: src/deep_notebooks/dn_text_generation.py
Class Name:
Method Name: node_categorical_description