/keras-tutorial

Some keras script to understand how the framework works

Primary LanguageHTML

keras time series tutorial

This repository is NOT up-to-date. Use under your own risk :-)

What is this repository for?

Este es un repositorio con código de ejemplos sobre keras o tensorflow para LSTM, GRU, RNN.

Some links of interest

keras examples

REGRESSION IN KERAS

ABOUT INPUT SHAPE

input_shape=(1, 1)

The first number is the number of timesteps the model should expect. Given only one timestep of data input the best possible approximation of any moving average is just to repeat the unique input value.

The second number is the number of inputs the model should expect at each timestep. This seems ok given your stated goal.

Your input has to be a list where each array has the batch size as the first dimension. Hence:

[(batch_size, 45, 8, 3),(batch_size, 45, 8, 3)...]

LAST LAYER + ACTIVATION

Whether or not you should use an Activation as the last layer, and what kind of activation, depends on the range of the values you want to output (for instance: if you want to output negative and positive values, don't use ReLU, etc. And never use softmax since it ouputs a probability distribution).

If you aren't sure, it's probably better not to use an Activation as the last layer (Dense would then be the last layer).

Also, "show_accuracy" should not be set for a regression problem. The notion of accuracy only makes sense for a classification problem.