- Bugfix on interval forecast of quantreg
This commit is contained in:
parent
0b7799a9bb
commit
8bc4b966b6
@ -73,7 +73,7 @@ class QuantileRegression(fts.FTS):
|
|||||||
for k in np.arange(self.order , l):
|
for k in np.arange(self.order , l):
|
||||||
sample = ndata[k - self.order: k]
|
sample = ndata[k - self.order: k]
|
||||||
up = self.linearmodel(sample, self.upper_qt)
|
up = self.linearmodel(sample, self.upper_qt)
|
||||||
down = self.linearmodel(sample, self.down_qt)
|
down = self.linearmodel(sample, self.lower_qt)
|
||||||
ret.append([up, down])
|
ret.append([up, down])
|
||||||
|
|
||||||
ret = self.doInverseTransformations(ret, params=[data[self.order - 1:]], interval=True)
|
ret = self.doInverseTransformations(ret, params=[data[self.order - 1:]], interval=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user