Skip to content

Inconsistency when running the keras-io/examples/timeseries/timeseries_classification_transformer.py #1908

Open
@condor-cp

Description

@condor-cp

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).

x = layers.GlobalAveragePooling1D(data_format="channels_last")(x)

But then there is no pooling, just removing the feature dimension => Maybe another layer should be used.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions