Python 2.7 sklearn.svm 警告信息

Python 2.7 sklearn.svm warning message

我 运行 Python 中的支持向量回归使用:

model=SVR(C=1.0, epsilon=0.01,kernel='linear',verbose=True)   

我收到以下警告:

[LibSVM].........................................
Warning: using -h 0 may be faster

这是什么意思?我如何使用这些信息?

根据this post

This means, that optimization algorithm detected that with high probability (not in the strict, mathematical sense) you can speed up your training by turning the -h 0 flag in your options. Basically, -h is the shrinking heuristics, implemented in the libsvm package which for some data significantly reduces number of required computations, while in others - makes it slower.

此标志在 sklearn 中使用 'shrinking' 参数实现,您可以将其设置为 False (shrinking=False)