Questions tagged [keras]
Keras is a popular, open-source deep learning API for Python built on top of TensorFlow and is useful for fast implementation. Topics include efficient low-level tensor operations, computation of arbitrary gradients, scalable computations, export of graphs, etc.
2,723
questions
0
votes
0
answers
34
views
Cant pass input_shape to LSTM layer in Keras
I have a numpy array X_train of shape (number of samples, timestep , number of features) =...
0
votes
0
answers
32
views
Why does the AutoKeras NAS require reshaping of data?
Please take a look at the following source codes:
training.py
...
0
votes
0
answers
25
views
How to choose the right typt of ANN architecture for a regression model
So, im working on a project where i am leveraging ai to get accurate price predictions in terms of houses and real estate properties. I would like to use an artificial neural network so now i have to ...
1
vote
1
answer
263
views
Conv1D layer input and output in keras with input shape having 4 dimensions
Keras example on conv1d they mention that input shape can have 4 dimensions:
With extended batch shape [4, 7] (e.g. weather data where batch dimensions correspond to spatial location and the third ...
1
vote
1
answer
135
views
Why is the sprase categorical accuracy decreasing every epoch and predictions are always NaN?
Problem Summary
My model is built and compiled properly but gets the NaN validation loss on all epochs. The training set accuracy is also infinitesimally small and keeps decreasing. I couldn't find a ...
0
votes
0
answers
15
views
Meaning of mean squared error in multistep prediction
In multistep prediction with LSTM(keras), say we had this kind of result:
target = [[1,2,3] ,[4,5,6] ]
predictions = [[1.1,2.2,3.3] , [4.4,5.5,6.6]]
When we choose mean_squared_error as the loss ...
0
votes
0
answers
35
views
LSTM - How can I predict the status an hour before in advance?
I’m very beginner, I’m trying to design a prediction model for forecasting the status one hour ahead.I have 150 sample data, each consisting of of 24 hours of time-series data with multiple features (...
2
votes
1
answer
307
views
Role of stateful parameter vs shuffle parameter in LSTM keras
I'm trying to make prediction on a multivariate time series using LSTM. I know stateful=True in keras LSTM means state(hidden) of each sequence, in a batch, at index i - is passed to the next batch, ...
0
votes
0
answers
137
views
Custom Loss Function Returns Graph Execution Error: Can not squeeze dim[0], expected a dimension of 1, got 32
I have built a loss function which adds time and frequency weighted averages and variances to the MSE:
...
0
votes
0
answers
126
views
0
votes
0
answers
110
views
Custom loss and metric functions including additional parameter in Keras
The following example is based on this approach.
Similar to that approach, I am wanting to pass an additional parameter with y_true for my custom metric, as both will be used in the computation of ...
0
votes
0
answers
357
views
Value Error: One of the dimensions in the output is <= 0 due to downsampling in conv1d_9
i am trying to implement classification model on my dataset, which has 3 columns and 651 rows
Displacement Time Labels
0.000245879 0.01 Undamage
0.001954869 0.02 Damage
0.006545664 0.03 Undamage
0....
0
votes
0
answers
19
views
RNN model for predicting sequences based on sequences of different lengths with Keras
I have data that are sequences of repeated values of different lengths. The value is categorical and can take values from 1 to 184. I used padded with 0 and masking:
...
1
vote
1
answer
101
views
numpy in call method: how to run without eager execution?
I wrote an implementation of a feedback recurrent autoencoder in Keras. The key difference to a regular autoencoder is, that the decoded output is fed back to the input layers of both, encoder and ...
0
votes
0
answers
88
views
how to implement federated transfer learning?
I'm exploring the concept of Federated Learning and Transfer Learning and am interested in combining both to implement Federated Transfer Learning. I understand that Federated Learning allows model ...