Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Machine learning Scikit学习移动平均值培训是否可行?_Machine Learning_Scikit Learn - Fatal编程技术网

Machine learning Scikit学习移动平均值培训是否可行?

Machine learning Scikit学习移动平均值培训是否可行?,machine-learning,scikit-learn,Machine Learning,Scikit Learn,我有一个关于scikit学习的问题。我想知道是否可以告诉scikit学会使用移动平均值作为我的标签值? 我有历史数据,如:team1、team2、run_distance1、run_distance2,并希望使用最近3次run_distance1的平均值作为当前值。sci套件有这种功能吗 这背后的想法是通过使用过去3场或X场比赛的移动平均值训练的历史数据来预测第1队和第2队的当前比赛 多谢各位 但是,仅仅向原始数据集中添加新功能,将其命名为mean3_run_distance1,并用最后3次ru

我有一个关于scikit学习的问题。我想知道是否可以告诉scikit学会使用移动平均值作为我的标签值? 我有历史数据,如:team1、team2、run_distance1、run_distance2,并希望使用最近3次run_distance1的平均值作为当前值。sci套件有这种功能吗

这背后的想法是通过使用过去3场或X场比赛的移动平均值训练的历史数据来预测第1队和第2队的当前比赛


多谢各位

但是,仅仅向原始数据集中添加新功能,将其命名为mean3_run_distance1,并用最后3次run_distance1的平均值填充,有什么问题?在那之后,只需将数据集提供给你想要的任何回归算法。谢谢,我只是想知道除了均值之外,是否还有一些内置函数。我相信有一些工具可以将原始数据转换为移动平均数据。您可以在其中一个响应中使用一个小函数,基于卷积的响应相当快:。然后使用转换后的数据作为回归输入-它也会很好地工作。这就是我一直在寻找的,谢谢