---
title: MLCRegularizationType
framework: ML Compute
role: symbol
role_heading: Enumeration
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcregularizationtype
---

# MLCRegularizationType

A regularization function to use with an optimizer.

## Declaration

```swift
enum MLCRegularizationType
```

## Topics

### Enumeration Cases

- [MLCRegularizationType.none](mlcompute/mlcregularizationtype/none.md)
- [MLCRegularizationType.l1](mlcompute/mlcregularizationtype/l1.md)
- [MLCRegularizationType.l2](mlcompute/mlcregularizationtype/l2.md)

### Initializers

- [init(rawValue:)](mlcompute/mlcregularizationtype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting Types

- [MLCOptimizerDescriptor](mlcompute/mlcoptimizerdescriptor.md)
