Giter Site home page Giter Site logo

Comments (6)

fengdu78 avatar fengdu78 commented on July 23, 2024

这个可以不用除

from lihang-code.

huatangzhi avatar huatangzhi commented on July 23, 2024

除不影响结果,但是公式里面是有的吧

from lihang-code.

cyber520 avatar cyber520 commented on July 23, 2024

是啊

from lihang-code.

cyber520 avatar cyber520 commented on July 23, 2024

这里为啥要用append,不太理解

from lihang-code.

farsmile avatar farsmile commented on July 23, 2024

这里为啥要用append,不太理解

ret = np.append(ret, np.sqrt(0.5 * regularization * np.square(p)))
通过回调、开方的操做,将正则化项当成数据项,从而可以调用,scipy.optimize.leastsq

from lihang-code.

zhuyuedlut avatar zhuyuedlut commented on July 23, 2024

这里为啥要用append,不太理解

可以看leastsq库里提供的参数的介绍:

  f : callable
        The model function, f(x, ...).  It must take the independent
        variable as the first argument and the parameters to fit as
        separate remaining arguments.

the parameters to fit as separate remaining arguments,将用来调整的参数的数据(这里指的是正则项),作为其他参数传入

from lihang-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.