---
title: "topLabels(_:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/classificationdistribution/toplabels(_:)"
---

# topLabels(_:)

Computes the most likely labels in the classification set.

## Declaration

```swift
func topLabels(_ amount: Int) -> [Label]
```

## Parameters

- `amount`: The number of top labels.

## Return Value

Return Value The labels with the highest probabilities.

## See Also

### Labeling and mapping

- [map(_:)](createmlcomponents/classificationdistribution/map(_:).md)
