公開抽象類別
分類
代表特定分類器標頭的分類清單。通常用於分類工作的結果。
公用建構函式
分類()
|
公用方法
抽象 清單<Category> |
categories()
Category 物件的清單。 |
靜態分類 | |
靜態分類 |
createFromProto(ClassificationsProto.Classifications proto)
從
ERROR(/ClassificationsProto.Classifications) protobuf 訊息建立 Classifications 物件。 |
抽象 int |
headIndex()
分類器的索引必須參照這些項目。
|
抽象 Optional<String> |
headName()
分類器標頭的選用名稱,這是對應的張量中繼資料名稱。
|
繼承的方法
公用建構函式
public 分類 ()
公用方法
public static 分類 create (List<Category> 類別, int headIndex, Optional<String> headName)
建立 Classifications
例項。
參數
categories | 包含預測類別的 Category 物件清單。 |
---|---|
headIndex | 分類器標頭的索引 |
headName | 分類器的標頭名稱 (選用)。 |
公開 靜態 分類 createFromProto (ClassificationsProto.Classifications proto)
從 ERROR(/ClassificationsProto.Classifications)
protobuf 訊息建立 Classifications
物件。
參數
proto | 要轉換的 ERROR(/ClassificationsProto.Classifications) protobuf 訊息。 |
---|
public 抽象 int headIndex ()
分類器的索引必須參照這些項目。這對多頭模型來說非常實用。