简体   繁体   English

机器学习算法预测下一个价值

[英]Machine learning algorithm to predict next value

I am trying to predict the next value of a series. 我正在尝试预测系列的下一个价值。 What the best machine learning / algorithm I need to use? 我需要使用哪种最佳的机器学习/算法?

I have for example this matrix: 例如,我有这个矩阵:

 [114, 160, 60, 27]
[74, 97, 73, 14]
[119, 157, 112, 23]

and I want to predict this values: 我想预测这个值:

 [114, 160, 60, 27 , **80 , 90**]
[74, 97, 73, 14 , **10 , 15**]
[119, 157, 112, 23 , **50 , 48**]

What is the best way to do it? 最好的方法是什么?

If I understand well your question, in your case : 如果我很了解您的问题,就您而言:

X = [114, 160, 60, 27] and Y = [80,90] [74, 97, 73, 14] [10,15] [119, 157, 112, 23] [50,48]
And you want to fit a machine learning algorithm on this data ? 您想在此数据上使用机器学习算法吗?

You could use any supervied learning algo like regression or SVM using X as input and Y as output. 您可以使用任何高级学习算法,例如使用X作为输入而Y作为输出的回归或SVM。

You could also use iterative learning : you learn a predictor f a step ahead with : 你也可以使用迭代学习:你学的预测f领先一步有:

X = [114, 160, 60, 27] and Y = [80] [74, 97, 73, 14] [10] [119, 157, 112, 23] [50]

You do the prediction one step ahead : 您可以提前进行预测:

f(X) = [pred1] [pred2] [pred3]

After that you incorporate the prediction in the input, so now you have : 之后,将预测合并到输入中,所以现在您有了:

Xbis = [114, 160, 60, 27, pred1] and Yter = [90] [74, 97, 73, 14,pred2] [15] [119, 157, 112, 23,pred3] [48]

And you train another predictor fbis on Xbis and Ybis. 和你训练的另一个预测fbis对X b是和Ybis。

So at the end, you have two predictors f and fbis , both of them predicting one step ahead. 因此,最后有两个预测变量ffbis ,它们都预测前进了一步。 It enables you to do prediction two step ahead. 它使您可以提前两步进行预测。 Of course, you will need more data to train a good predictor. 当然,您将需要更多数据来训练一个好的预测变量。

More generally, if you want to do time series prediction, you can use "the window method" which is a general method to create your input and output from the time series to then learn a predictor. 更一般而言,如果要进行时间序列预测,则可以使用“窗口方法”,这是一种通用方法,可以从时间序列创建输入和输出,然后学习预测变量。

Note also that LSTM are quite use in time series prediction and seems to give pretty good results. 还请注意,LSTM在时间序列预测中非常有用,并且似乎给出了很好的结果。

Hope this helps !! 希望这可以帮助 !!

Benoit 伯努瓦

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 机器学习来预测用户参与度 - Machine Learning to predict user engagements 如果我们必须在python中预测客户的下一个支出类别,那是什么样的机器学习问题? - What kind of Machine Learning Problem it is if we have to Predict customer next spend category in python? 我们可以在任何机器学习算法中限制响应变量的值吗? - Can we limit the value of a response variable in any machine learning algorithm? 用于将2d坐标映射到值的机器学习算法 - Machine learning algorithm for mapping a 2d coordinate to a value 使用机器学习预测 NA(缺失值) - Predict NA (missing values) with machine learning 如何在Google机器学习中预测图像 - How predict an image in google machine learning python机器学习上的ACO算法 - ACO algorithm on python machine learning 所需的机器学习方法:根据特征向量中的所有其他特征,预测最可能的特征值 - Machine Learning Approach needed: Predict most likely feature value given all other features in a feature vector 创建分类器并设置用于机器学习的训练数据后,无法预测该值。 显示一些错误 - Not able to predict the value after creating a classifier and setting up the training data for machine learning. Some error is showing 用于预测事件顺序的机器学习算法? - Machine Learning Algorithm for Predicting Order of Events?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM