eqdisco.models.stlsq#

eqdisco.models.stlsq(Theta, y, threshold=0.1, ridge=0.0, max_iter=20, normalize=True, intercept=True)[source]#

Sequentially thresholded least squares (Brunton, Proctor and Kutz, 2016).

Least squares, then repeatedly: set the coefficients with \(|\xi_i|<\lambda\) to zero and refit on the remaining terms, until the support does not change. With normalize=True the threshold applies to the coefficients of the columns scaled to unit standard deviation (i.e. it is relative to the scale of each term). Returns (intercept, coef).