eqdisco.knowledge.symmetry_tests#
- eqdisco.knowledge.symmetry_tests(f, X, feature_names=None, n=500, random_state=0)[source]#
Translational and scaling symmetries of every pair of variables.
Translation: \(f(x_i+a, x_j+a)=f\) (depends on \(x_i-x_j\)); scaling: \(f(\lambda x_i,\lambda x_j)=f\) (depends on \(x_i/x_j\)). The shift \(a\) is 10 % of the larger standard deviation of the two variables and \(\lambda=1.1\). Returns the relative errors (small = symmetric).