<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLTextClassifier/ModelAlgorithmType/transferLearning(_:revision:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML16MLTextClassifierV18ModelAlgorithmTypeO16transferLearningyAeC016FeatureExtractorG0O_SiSgtcAEmF"
  },
  "title" : "MLTextClassifier.ModelAlgorithmType.transferLearning(_:revision:)"
}
-->

# MLTextClassifier.ModelAlgorithmType.transferLearning(_:revision:)

A text classification algorithm that uses transfer learning by leveraging a feature extractor to generate embeddings.

```
case transferLearning(MLTextClassifier.FeatureExtractorType, revision: Int?)
```

## Parameters

`_`

Feature extractor to be used by the transfer learning algorithm.

`revision`

The algorithm version. The only supported version is 1. If `nil` defaults to the latest version.

---

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)