Contents

MLTextClassifier.ModelAlgorithmType.transferLearning(_:revision:)

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

Declaration

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.

Mentioned in

See Also

Selecting an algorithm type