Skip to content

bug: Flowstate cannot forecast when the condition is h=1 #242

@JitaekJo

Description

@JitaekJo

Initial Checklist

What happened?

Hi,

please see the below error . I ran it locally.
When the h=2, the model returns correctly.

--> 102 res = tcf.forecast(
103 df=df,
104 h=1,
105 freq="W"
106 )
108 def explain_with_llm(table_md: str, prompt=
109 """
110 예측 결과를 표로 정리해줘.
(...)
113
114 """):
115 base = os.environ.get("OPENAI_BASE_URL", "http://xxx.xxx.xx.xxx:11434/v1").rstrip("/")

File c:\Users\jitaek.jo\AppData\Local\Programs\Python\Python312\Lib\site-packages\timecopilot\forecaster.py:177, in TimeCopilotForecaster.forecast(self, df, h, freq, level, quantiles)
122 def forecast(
...
--> 196 fcsts_mean_np = np.concatenate(fcsts_mean_tp)
197 if quantiles is not None:
198 fcsts_quantiles_np = np.concatenate(fcsts_quantiles_tp)

ValueError: zero-dimensional arrays cannot be concatenated

Relevant log output

Environment

0.0.20

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions