Skip to content
Discussion options

You must be logged in to vote

Hi @AlbertXTang , thanks for asking.

Specifically, can the number of hidden units exceed the input data dimensions? For example, when the input data is 70, is it reasonable to consider setting 1.5 to 2 times the number of hidden units to capture more information?

Yes, this is possible and in fact recommended. The number of hidden units (alongside the model architecture) determines the capacity/#parameters of the model. With more capacity and very little data, it becomes more likely that the network overfits. With less capacity, you might get underfitting. The factor (1.5, 2, ...) mainly depends on how much data you have available (=samples/timesteps). If you have enough data to avoid ov…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AlbertXTang
Comment options

@stes
Comment options

stes Sep 3, 2025
Maintainer

Answer selected by AlbertXTang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants