eqdisco.knowledge.fit_surrogate#
- eqdisco.knowledge.fit_surrogate(X, y, hidden=(64, 64), random_state=0, max_iter=3000)[source]#
Smooth neural-network surrogate of the data (standardized inputs and output).
Returns a callable
f(X). Smoothness matters: the tests compare function values at nearby points, which piecewise-constant models (trees) cannot support.