0

I am tring to use the HyperModel Class from KerasTuner as a superclass. I am using KerasTuner==1.1.3 and Keras==2.9.0

class ModelBuilder(keras_tuner.HyperModel):
    def declare_hyperparameters(self, hp):
        pass

    def build(self, hp):
        model = tf.keras.Sequential(layers=None, name=self.name)
        model.compile()
        return model

I can't find any documentation on what to return for the declare_hyperparamters(self, hp) method.

NameVergessen
  • 598
  • 8
  • 26

0 Answers0