【发布时间】:2017-03-07 14:32:09
【问题描述】:
我想运行一个包含数千个 CSV 文件和各种组合的 ARIMA 模型
使用 Pyflux 这是一些python代码..
index =0
#filename has file names of thousands of files
for csvfile in filenames:
data = pd.read_csv(csvfile)
model = pf.ARIMA(data=data,ar=4,ma=4,integ=0,target='sunspot.year')
x = model.fit("MLE")
list_of_results[index] = list_of_tuples[index] + (x.summary(),)
index++
我可以在 Big Query 中加载这些 CSV,并希望将这个将数据发送到 ARIMA 模型的操作并行化,因为通过 ARIMA 模型使用这些文件或 BigQuery 结果运行数据的操作可以并行运行,以便我可以保存在此操作上花费大量时间。
有没有办法在 Google 数据流中实现这一点?
【问题讨论】:
标签: python google-bigquery google-cloud-dataflow apache-beam