Hi, thanks for the great work on this repository!
I'm currently running the demo-ts-classification.py example script for time series classification, and I encountered an error during the inference phase. Below are the details:
Traceback (most recent call last):
File "/home/zengjie/llm-abba-0.0.4/examples/demo-ts-classification.py", line 70, in
out_text = LLMABBA_classification.inference(
File "/home/zengjie/llm-abba-0.0.4/llmabba/llmabba.py", line 560, in inference
symbols_test_data, params_test_data = self.xabba.transform(data_scaled)
File "/home/zengjie/llm-abba-0.0.4/llmabba/xabba.py", line 695, in transform
series = series.reshape(-1, int(np.prod(self.recap_shape[1:])))
TypeError: 'NoneType' object is not subscriptable
Possible Cause:
From tracing the code, it seems that self.recap_shape is still None during transform(). This likely means that fit() was never called on xabba before transform(). But in the inference() method of LLMABBA, it directly calls self.xabba.transform(...) without any prior fitting.
My Questions:
Should self.xabba.fit(data_scaled) be explicitly called inside inference() before calling .transform()?
Or is it expected that users manually call fit() on the model before running inference?
If so, can we update the example script to reflect this?
Looking forward to your advice or a possible fix. Thanks again!
Best,
Fly-Cat-0
Hi, thanks for the great work on this repository!
I'm currently running the demo-ts-classification.py example script for time series classification, and I encountered an error during the inference phase. Below are the details:
Traceback (most recent call last):
File "/home/zengjie/llm-abba-0.0.4/examples/demo-ts-classification.py", line 70, in
out_text = LLMABBA_classification.inference(
File "/home/zengjie/llm-abba-0.0.4/llmabba/llmabba.py", line 560, in inference
symbols_test_data, params_test_data = self.xabba.transform(data_scaled)
File "/home/zengjie/llm-abba-0.0.4/llmabba/xabba.py", line 695, in transform
series = series.reshape(-1, int(np.prod(self.recap_shape[1:])))
TypeError: 'NoneType' object is not subscriptable
Possible Cause:
From tracing the code, it seems that self.recap_shape is still None during transform(). This likely means that fit() was never called on xabba before transform(). But in the inference() method of LLMABBA, it directly calls self.xabba.transform(...) without any prior fitting.
My Questions:
Should self.xabba.fit(data_scaled) be explicitly called inside inference() before calling .transform()?
Or is it expected that users manually call fit() on the model before running inference?
If so, can we update the example script to reflect this?
Looking forward to your advice or a possible fix. Thanks again!
Best,
Fly-Cat-0