M-Taha
M-Taha
I am trying to write a new objective function like the following: ``` python def expert_loss(y_true, y_pred): # y_pred is n-dimensional, y_true is n+1 dimensional. return T.sqr(T.dot(y_true[:-1].T, y_pred) - y_true[-1]).mean(axis=-1)...
@joetigger Here is my simple example showing how to use TimeDistributedDense for time series forecasting with RNNs. Note that I have set the RNN to return a sequence. ``` python...
@joetigger Please take a look at the problem setting in this article: http://danielhnyk.cz/predicting-sequences-vectors-keras-using-rnn-lstm/. The author does not use TimeDistributedDense, but my solution below uses it to make his code more...
@joetigger I make the following claims: 1. I didn't limit TimeDistributedDense to saving time/memory. In the abstract way "TimeDistributedDense applies a same Dense (fully-connected) operation to every timestep." You might...
@joetigger You have re-invented the original approach in the article that I mentioned :) Yes, it does work, but it is inefficient for time series forecasting. My code does converge...
@fchollet Thank you for the answer and I am absolutely sorry for taking your time. In order to demonstrate the issue more clearly, I wrote a bare minimum code and...