Keras 3 API 文件 / KerasTuner / 超模型 / HyperXception

HyperXception

[來源]

HyperXception 類別

keras_tuner.applications.HyperXception(
    include_top=True, input_shape=None, input_tensor=None, classes=None, **kwargs
)

一個 Xception 超模型。

HyperXception 建構的模型將形狀為 (高度, 寬度, 通道) 的影像作為輸入。輸出是以獨熱編碼表示,其長度與 classes 參數指定的類別數量相符。

參數

  • include_top:布林值,是否包含網路頂部的全連接層。
  • input_shape:可選的形狀元組,例如 (256, 256, 3)。必須指定 input_shapeinput_tensor 其中之一。
  • input_tensor:可選的 Keras 張量(即 layers.Input() 的輸出),用作模型的影像輸入。必須指定 input_shapeinput_tensor 其中之一。
  • classes:可選的類別數量,用於將影像分類,僅在 include_top 為 True 且未指定 weights 參數時才需指定。
  • **kwargs:適用於所有超模型的其他關鍵字參數。請參閱 keras_tuner.HyperModel