Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kats.models.LSTM not working!! #292

Open
nebiyebulan opened this issue Jan 12, 2023 · 0 comments
Open

kats.models.LSTM not working!! #292

nebiyebulan opened this issue Jan 12, 2023 · 0 comments

Comments

@nebiyebulan
Copy link

nebiyebulan commented Jan 12, 2023

When I run kats' lstm model with bo code, it freezes and does not output.
`df = pd.read_csv('uni_session_neww.csv', sep=';')
df.columns = ['time', 'value']

print(df.head())

ts=TimeSeriesData(df)
#ts.plot(cols=['value'])
#plt.show()
logging.basicConfig(level=logging.DEBUG)
params = LSTMParams(
hidden_size=5, # number of hidden layers
time_window=6,
num_epochs=30
)

m = LSTMModel(ts, params)
m.fit(verbose=1)
fcst = m.predict(steps=720)
print(fcst.head())

m.plot()
plt.title('LSTM')
plt.show()`
LSTM

@nebiyebulan nebiyebulan changed the title kts kats.models.LSTM not working!! Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant