KerasTuner: 超参数调优 / API 文档 / 超模型 / HyperEfficientNet

HyperEfficientNet

[源代码]

HyperEfficientNet

keras_tuner.applications.HyperEfficientNet(
    input_shape=None, input_tensor=None, classes=None, augmentation_model=None, **kwargs
)

一个 EfficientNet 超模型。

HyperEfficientNet 构建的模型接收形状为 (height, width, channels) 的图像作为输入。输出是独热编码的,其长度与由 classes 参数指定的类别数量相匹配。

参数

  • input_shape: 可选的形状元组,例如 (256, 256, 3)。必须指定 input_shapeinput_tensor 其中之一。
  • input_tensor: 可选的 Keras 张量(即 layers.Input() 的输出),用作模型的图像输入。必须指定 input_shapeinput_tensor 其中之一。
  • classes: 可选的图像分类类别数量,仅当 include_top 为 True 且未指定 weights 参数时需要指定。
  • augmentation_model: 可选的用于图像增强的 ModelHyperModel 实例。
  • **kwargs: 适用于所有超模型的额外关键字参数。请参阅 keras_tuner.HyperModel