简体   繁体   中英

How to add Tikhonov regularization in “scipy.optimize.least_squares”?

As the title, could anyone tell me a way to add "Tikhonov regularization" in "scipy.optimize.least_squares"? The default seems L2.

A straightforward way is to add more rows to your design matrix and objective vector.

In other words if you have A and b, and seek x to minimise

||A*x-b||

and you change A and b to

A~ = (A)
     (K)
b~ = (b)
     (k)

then the least squares problem: minimise

||A~*x - b~||

is minimising

||A*x-b||^2 + ||K*x-k||^2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM