Classifications

공개 추상 클래스 분류

지정된 분류기 헤드에 대한 분류 목록을 나타냅니다. 일반적으로 분류 태스크의 결과로 사용됩니다.

공개 생성자

분류()

공개 메서드

추상 목록<카테고리>
categories()
Category 객체 목록입니다.
정적 분류
create(List<Category> categories, int headIndex, Optional<String> headName)
Classifications 인스턴스를 생성합니다.
정적 분류
createFromProto(ClassificationsProto.Classifications proto)
ERROR(/ClassificationsProto.Classifications) protobuf 메시지에서 Classifications 객체를 생성합니다.
추상 정수
headIndex()
이러한 항목이 참조하는 분류기 헤드의 색인입니다.
추상 선택사항<String>
headName()
해당하는 텐서 메타데이터 이름인 분류기 헤드의 이름(선택사항)입니다.

상속된 메서드

공개 생성자

public 분류 ()

공개 메서드

public summary List<Category> 카테고리 ()

Category 객체 목록입니다.

public static 분류 create (목록<Category> 카테고리, int headIndex, 선택사항<String> headName))

Classifications 인스턴스를 생성합니다.

매개변수
categories 예측 카테고리가 포함된 Category 객체의 목록입니다.
headIndex 분류기 헤드의 색인입니다.
headName 분류자 헤드의 이름(선택사항)입니다.

public static 분류 createFromProto (ClassificationsProto.Classifications proto)

ERROR(/ClassificationsProto.Classifications) protobuf 메시지에서 Classifications 객체를 생성합니다.

매개변수
proto 변환할 ERROR(/ClassificationsProto.Classifications) protobuf 메시지

public 추상화 int headIndex ()

이러한 항목이 참조하는 분류기 헤드의 색인입니다. 이는 다중 헤드 모델에 유용합니다.

public summary 선택사항<String> headName ()

해당하는 텐서 메타데이터 이름인 분류기 헤드의 이름(선택사항)입니다.