[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-08 UTC."],[],[],null,["# MediaPipeTasksVision Framework Reference\n\nClassifications\n===============\n\n class Classifications : NSObject\n\nRepresents the list of classification for a given classifier head. Typically used as a result\nfor classification tasks.\n- `\n ``\n ``\n `\n\n ### [headIndex](#/c:objc(cs)MPPClassifications(py)headIndex)\n\n `\n ` \n The index of the classifier head these entries refer to. This is useful for multi-head models. \n\n #### Declaration\n\n Swift \n\n var headIndex: Int { get }\n\n- `\n ``\n ``\n `\n\n ### [headName](#/c:objc(cs)MPPClassifications(py)headName)\n\n `\n ` \n The optional name of the classifier head, which is the corresponding tensor metadata name. \n\n #### Declaration\n\n Swift \n\n var headName: String? { get }\n\n- `\n ``\n ``\n `\n\n ### [categories](#/c:objc(cs)MPPClassifications(py)categories)\n\n `\n ` \n An array of `Category` objects containing the predicted categories. \n\n #### Declaration\n\n Swift \n\n var categories: [../Classes/ResultCategory.html] { get }\n\n- `\n ``\n ``\n `\n\n ### [init(head:categories:)](#/c:objc(cs)MPPClassifications(im)initWithHeadIndex:categories:)\n\n `\n ` \n Initializes a new `Classifications` object with the given head index and array of categories.\n Head name is initialized to `nil`. \n\n #### Declaration\n\n Swift \n\n convenience init(head headIndex: Int, categories: [../Classes/ResultCategory.html])\n\n #### Parameters\n\n |--------------------|---------------------------------------------------------------------|\n | ` `*headIndex*` ` | The index of the classifier head. |\n | ` `*categories*` ` | An array of `Category` objects containing the predicted categories. |\n\n #### Return Value\n\n An instance of `Classifications` initialized with the given head index and\n array of categories.\n- `\n ``\n ``\n `\n\n ### [init(head:headName:categories:)](#/c:objc(cs)MPPClassifications(im)initWithHeadIndex:headName:categories:)\n\n `\n ` \n Initializes a new `Classifications` with the given head index, head name and array of\n categories. \n\n #### Declaration\n\n Swift \n\n init(head headIndex: Int, headName: String?, categories: [../Classes/ResultCategory.html])\n\n #### Parameters\n\n |--------------------|-----------------------------------------------------------------------------------|\n | ` `*headIndex*` ` | The index of the classifier head. |\n | ` `*headName*` ` | The name of the classifier head, which is the corresponding tensor metadata name. |\n | ` `*categories*` ` | An array of `Category` objects containing the predicted categories. |\n\n #### Return Value\n\n An object of `Classifications` initialized with the given head index, head name and\n array of categories.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MPPClassifications(im)init)\n\n `\n ` \n Undocumented\n- `\n ``\n ``\n `\n\n ### [+new](#/c:objc(cs)MPPClassifications(cm)new)\n\n `\n ` \n Undocumented"]]