Classifications interface

Classification results for a given classifier head.

Signature:

  export 
  
 declare 
  
 interface 
  
 Classifications 
  
 

Properties

Property Type Description
Category [] The array of predicted categories, usually sorted by descending scores, e.g., from high to low probability.
number The index of the classifier head these categories refer to. This is useful for multi-head models.
string The name of the classifier head, which is the corresponding tensor metadata name. Defaults to an empty string if there is no such metadata.

Classifications.categories

The array of predicted categories, usually sorted by descending scores, e.g., from high to low probability.

Signature:

  categories 
 : 
  
 Category 
 []; 
 

Classifications.headIndex

The index of the classifier head these categories refer to. This is useful for multi-head models.

Signature:

  headIndex 
 : 
  
 number 
 ; 
 

Classifications.headName

The name of the classifier head, which is the corresponding tensor metadata name. Defaults to an empty string if there is no such metadata.

Signature:

  headName 
 : 
  
 string 
 ; 
 
Create a Mobile Website
View Site in Mobile | Classic
Share by: