---
title: "keypointsWithAnnotations(targetFrameRate:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mlactionclassifier/datasource/keypointswithannotations(targetframerate:)"
---

# keypointsWithAnnotations(targetFrameRate:)

Generates a data table with action annotations of the data source.

## Declaration

```swift
func keypointsWithAnnotations(targetFrameRate: Double = MLActionClassifier.__Defaults.targetFrameRate) throws -> MLDataTable
```

## Parameters

- `targetFrameRate`: The number of frames per second the method uses to extract body landmarks from the data source. This no effect if the data source is an doc://com.apple.createml/documentation/CreateML/MLActionClassifier/DataSource/labeledKeypointsDataFrame(_:sessionIdColumn:labelColumn:featureColumn:) or an doc://com.apple.createml/documentation/CreateML/MLActionClassifier/DataSource/labeledKeypointsData(table:sessionIdColumn:labelColumn:featureColumn:).

## Return Value

Return Value A data table.

## See Also

### Generating data tables from a data source

- [videosWithAnnotations()](createml/mlactionclassifier/datasource/videoswithannotations().md)
- [stratifiedSplit(proportions:seed:labelColumn:)](createml/mlactionclassifier/datasource/stratifiedsplit(proportions:seed:labelcolumn:).md)
