---
title: "featureValue(for:)"
framework: coreml
role: symbol
role_heading: Instance Method
path: "coreml/mlfeatureprovider/featurevalue(for:)"
---

# featureValue(for:)

Accesses the feature value given the feature’s name.

## Declaration

```swift
func featureValue(for featureName: String) -> MLFeatureValue?
```

## Parameters

- `featureName`: The name of the feature of the desired value.

## Return Value

Return Value The value of the feature, or nil if no value exists for that name.

## See Also

### Accessing values

- [featureNames](coreml/mlfeatureprovider/featurenames.md)
