我正在使用下面的示例代码,我想将差值转换为正常的预测。
请帮助
import numpy as np
import pyflux as pf
from pandas_datareader import DataReader
from datetime import datetime
import matplotlib.pyplot as plt
%matplotlib inline
ibm = DataReader(['JPM','GS','BAC','C','WFC','MS'], 'yahoo', datetime(2012,1,1), datetime(2016,6,28))
opening_prices = np.log(ibm['Open'])
model = pf.VAR(data=opening_prices, lags=2, integ=1)
x = model.fit()
model.predict(5)