[英]Support vector regression online learning
I am predicting stock prices using support vector regression. 我正在使用支持向量回归预测股价。 I have trained with some values but when i predict the values every time I have to train based on that(online learning). 我已经训练了一些价值,但是每次我必须基于该价值进行训练(在线学习)时,我都会预测这些价值。 So i have passed the values to train inside the loop after predicted. 因此,在预测之后,我已经传递了值以在循环内进行训练。
inside loop
//prediction
clf.fit(testx[i],testy[i])
So when i call the fit function everytime how svr training work internally based on one input ? 所以,当我每次调用fit函数时,svr训练如何基于一个输入在内部进行工作?
clf.fit
is not incremental. clf.fit
不是增量的。 You have to pass all the previous training points in addition to the new instance to re-train a new model that benefits from the new data points unfortunately. 您必须通过新实例之外的所有先前训练点,才能重新训练一个不幸地受益于新数据点的新模型。
This is a limitation of the SMO algorithm implemented by the libsvm library used internally in the sklearn.svm.SVR
class. 这是sklearn.svm.SVR
类内部使用的libsvm库实现的SMO算法的限制。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.