B
B
berkut972020-03-26 13:12:18
Python
berkut97, 2020-03-26 13:12:18

Using LSTM in a model?

I am modeling the parameters of a gas turbine engine using a neural network with LSTM layers. I get a fairly accurate model, with the exception of falling down and up at the "thresholds" of values. Tried various combinations of activation functions, optimizers, and number of layers in the model, but couldn't solve the problem. Please tell me what I am missing or doing wrong.

My code:
5e7c7e0d78f4e989531264.png

The orange line is the original data and the blue line is the simulated data:
5e7c7f4162b47660254439.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2020-03-26
@tumbler

It looks like the original function is not smooth, more like discrete numbers. This means that the smooth function at the output is trying to model a discrete discontinuous function of the initial data - of course, it will wedge at the discontinuities. Can smoothing what for initial data to add?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question