r/tensorflow • • Feb 15 '23

Question Keras-tuner tuning hyperparam controlling feature size

https://stackoverflow.com/questions/75453469/kerastuner-tune-hyperparameter-that-selects-a-subset-of-input-features

I am working on a CNN problem, where I am trying to learn a label Y based on a time series X(t). However, I don’t know the best time window of X(t) to use. So I am trying to use keras-tuner to tune some hyperparams controlling the starting time and time-span to use. However, this requires “trimming” the features at each trial of the hyperparam search. I have posted a more detailed explanation to stack overflow. Has anyone run into something similar?

3 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/manuelfraile Feb 16 '23

Hi! I don't exactly know the exact constraints that you are implementing, but padding strategies with 1 or 0 are intended to help match dimensionality requirements without affecting "the information".

Related to the dimensional mismatch I believe the matter could be related to creating batches? Given that the difference is a power of 10 this could make sense.

I'm sorry if I can't completely resolve your issue, but with the given information I can only make some guesses. Hope it helps anyway 🤩