Line search fails in training ksvm prob.model

后端 未结 3 1786
独厮守ぢ
独厮守ぢ 2020-12-31 05:30

Following up from Invalid probability model for large support vector machines using ksvm in R:

I am training an SVM using ksvm from the kernlab package in R. I want

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-31 05:49

    Looking at the source code, this is the line that throws that error.

    It's on the method .probPlatt using the Newton method to optimize the function, in this case Platt's scaling. If you check line 3007 though you'll see some parameters pertaining to the method.

    One of such parameters is minstep basically the minimal numeric step the method should keep trying to optimize the function. You see, this is exactly the condition of the error in line 3090: if (stepsize < minstep). So, basically, the function is not converging, even when reaching the minimum step size.

    You can try changing minstep to lower values to circumvent it. Alexandros even commented these parameters should probably be in the interface.

提交回复
热议问题