---
title: labelSmoothing
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlclossdescriptor/labelsmoothing
---

# labelSmoothing

The value for label smoothing.

## Declaration

```swift
var labelSmoothing: Float { get }
```

## Discussion

Discussion The default value is 1.0. note: This is only valid for the following loss function types: MLCLossType.softmaxCrossEntropy MLCLossType.sigmoidCrossEntropy

## See Also

### Inspecting Loss Descriptors

- [lossType](mlcompute/mlclossdescriptor/losstype.md)
- [reductionType](mlcompute/mlclossdescriptor/reductiontype.md)
- [weight](mlcompute/mlclossdescriptor/weight.md)
- [classCount](mlcompute/mlclossdescriptor/classcount.md)
- [epsilon](mlcompute/mlclossdescriptor/epsilon.md)
- [delta](mlcompute/mlclossdescriptor/delta.md)
