<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLHandPoseClassifier/DataSource/labeledFiles(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML20MLHandPoseClassifierV10DataSourceO12labeledFilesyAE10Foundation3URLV_tcAEmF"
  },
  "title" : "MLHandPoseClassifier.DataSource.labeledFiles(at:)"
}
-->

# MLHandPoseClassifier.DataSource.labeledFiles(at:)

Creates a data source from a folder that contains images, each named
after the hand pose it represents.

```
case labeledFiles(at: URL)
```

## Discussion

Create a hand-pose data source from a directory of images with the
`labeledFiles` case. You must name each image file with a hand-pose
label, followed by a period and an arbitrary string, ending with the
image file’s extension. For example, you can name a hand-pose
classifier’s training files as `Peace.3.png`, `ThumbsUp.1.jpg`,
`ThumbsUp.2.jpg`, and so on.

In this example, these image names give a hand-pose classifier at
least two class labels:

- `Peace` - `ThumbsUp`
- at: The URL to a folder in the file system that contains folders
  of hand pose images. The data source uses each file’s name before
  the first period as its classification label.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)