ipex-llm icon indicating copy to clipboard operation
ipex-llm copied to clipboard

Chronos : make is_predict=True works for BaseForecaster

Open rnwang04 opened this issue 1 year ago • 0 comments

Description

This PR makes is_predict=True works for BaseForecaster

1. Why the change?

https://github.com/intel-analytics/BigDL/issues/5874

2. User API changes

Before API is :

# BaseForecaster
x, y = tsdata_test.roll(lookback=48, horizon=0).to_numpy()
# AutoformerForecaster
x, y, x_enc, y_enc = tsdata_test.roll(lookback=48, horizon=1, is_predict=True, time_enc=True).to_numpy()

Now :

# BaseForecaster
x = tsdata_test.roll(lookback=48, horizon=1, is_predict=True).to_numpy()
# AutoformerForecaster
x, y, x_enc, y_enc = tsdata_test.roll(lookback=48, horizon=1, is_predict=True, time_enc=True).to_numpy()

3. Summary of the change

4. How to test?

  • [ ] Unit test
  • [ ] Application test

rnwang04 avatar Sep 21 '22 02:09 rnwang04