---
title: lossValue
framework: coreml
role: symbol
role_heading: Type Property
path: coreml/mlmetrickey/lossvalue
---

# lossValue

The key you use to access the current loss (a float value).

## Declaration

```swift
class var lossValue: MLMetricKey { get }
```

## Discussion

Discussion Use this key to fetch the loss value in the metrics dictionary.

## See Also

### Getting the keys

- [epochIndex](coreml/mlmetrickey/epochindex.md)
- [miniBatchIndex](coreml/mlmetrickey/minibatchindex.md)
