eqdisco.analysis.variable_interaction_network#
- eqdisco.analysis.variable_interaction_network(models, feature_names=None, weights=None)[source]#
Variables linked by their joint occurrence inside nonlinear subtrees.
For every function node that is not linear (not
add,sub,neg), all pairs of distinct variables below it interact. Node attributefrequency: share of models that use the variable; edge attributeweight: share of models in which the pair interacts (optionally weighted byweights, e.g. the \(R^2\) of each model).