79269010

Date: 2024-12-10 16:41:42
Score: 4
Natty:
Report link

Hello i am new to AI stuff and also going through this example of using transformer block for time series classification.

Aside from the padding issue, may i ask why it use "channels_first" rather than "channels_last" in GlobalAveragePooling2D layer?

I have a 2D data like yours and reshape it to (batch, height, width, 1). "channel_first" give me a high accuracy to 9X% but not "channel_last".

The Keras example use 1D data, using "channel_last" but also result in a poor accuracy. But according to the definition "channels_last" should be correct

Reasons:
  • Blacklisted phrase (1): may i ask
  • RegEx Blacklisted phrase (1.5): i am new
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jerson