-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Inconsistency when running the keras-io/examples/timeseries/timeseries_classification_transformer.py #1908
Comments
Experienced the same problem: with
the number of parameters are (only show the last few rows that differ):
And the training stop very quickly with bad result:
While on page: https://keras.io/examples/timeseries/timeseries_classification_transformer/ it shows:
|
Hi , @fchollet
This line need to be changed to https://keras.io/examples/timeseries/timeseries_classification_transformer/ Can you make this change? can also add explanation why The input training data's shape is Thanks. |
Running the example shows inconsistency in number of parameters and model performance compared to what is displayed.
It seems that the global average pooling should take data_format to "channel_first" to reach the same number of parameters and the accuracy performance consistent with the displayed console log (tried with google colab).
keras-io/examples/timeseries/timeseries_classification_transformer.py
Line 115 in 2ac94c4
But then there is no pooling, just removing the feature dimension => Maybe another layer should be used.
The text was updated successfully, but these errors were encountered: