CreateMLComponents provides composable building blocks for building, training, and evaluating custom machine learning models and feature pipelines on iOS, macOS, tvOS, watchOS, and visionOS. You assemble pipelines from transformers and estimators such as BoostedTreeClassifier and BoostedTreeRegressor, combining preprocessing steps like CategoricalImputer, ColumnSelector, DateFeatureExtractor, and AudioFeaturePrint into composed stages with types like ComposedTransformer and ComposedTabularTransformer. Annotated data structures including AnnotatedFeature, AnnotatedBatch, and AnnotatedFiles carry features and labels through training, while augmentation components such as Augmenter, ApplyRandomly, and ChooseRandomly expand training data. You evaluate results using protocols and metrics like Classifier and ClassificationMetrics, and produce predictions with Classification and ClassificationDistribution.
Pipeline Building Blocks 18
The core protocols that define transformers and estimators you compose into pipelines.
- PrTransformeriOS 16.0+A transformer that takes an input and produces an output.
- PrEstimatoriOS 16.0+An estimator that creates a transformer by fitting to a data set.
- PrTabularTransformeriOS 16.0+A tabular transformer that transforms a data frame.
- PrTabularEstimatoriOS 16.0+A tabular estimator that creates a transformer by fitting to a data set in a data frame.
- PrTemporalTransformeriOS 16.0+A transformer that takes an asynchronous input sequence of temporal features and produces an asynchronous output sequence.
- PrTemporalEstimatorAn estimator that creates a transformer by fitting to a sequence of temporal features.
- PrSupervisedEstimatoriOS 16.0+An estimator that creates a transformer by fitting to a data set.
- PrSupervisedTabularEstimatoriOS 16.0+A tabular estimator that creates a transformer by fitting to a data set in a data frame.
- PrSupervisedTemporalEstimatorAn estimator that creates a transformer by fitting to a sequence of annotated temporal features.
- PrUpdatableEstimatoriOS 16.0+An estimator that can be incrementally updated.
- PrUpdatableSupervisedEstimatoriOS 16.0+A supervised estimator that can be incrementally updated.
- PrUpdatableSupervisedTabularEstimatoriOS 16.0+A supervised tabular estimator that can be incrementally updated.
- PrUpdatableSupervisedTemporalEstimatorA supervised temporal estimator that can be incrementally updated.
- PrUpdatableTabularEstimatoriOS 16.0+A tabular estimator that can be incrementally updated.
- PrUpdatableTemporalEstimatorA temporal estimator that can be incrementally updated.
- PrEstimatorEncoderiOS 16.0+A type that can encode values into a model representation.
- PrEstimatorDecoderiOS 16.0+A type that can decode values from a model representation.
- PrRandomTransformeriOS 17.0+A transformer that takes an input and a random number generator and produces a randomized output.
Composing Pipelines 3
Transformers that chain preprocessing and modeling stages into composed pipelines.
- StComposedTransformeriOS 16.0+A transformer that composes two transformers by applying them one after the other.
- StComposedTabularTransformeriOS 16.0+A transformer that composes two tabular transformers by applying them one after the other.
- StComposedTemporalTransformeriOS 16.0+A temporal transformer that composes two temporal transformers by applying them one after the other.
Adapting Components 21
Adaptors that bridge between transformer, estimator, supervised, and temporal component roles.
- StEstimatorToSupervisedAdaptoriOS 16.0+An adaptor that exposes an estimator as a supervised estimator.
- StEstimatorToTemporalAdaptorA temporal estimator wrapping an estimator.
- StSupervisedEstimatorToTemporalAdaptorA supervised temporal estimator wrapping a supervised estimator.
- StTabularEstimatorToSupervisedAdaptoriOS 16.0+An adaptor that exposes a tabular estimator as a tabular supervised estimator.
- StTabularTransformerToEstimatorAdaptoriOS 16.0+A tabular estimator that always returns a predefined tabular transformer.
- StTabularTransformerToUpdatableEstimatorAdaptoriOS 16.0+An updatable tabular estimator that always returns a predefined transformer.
- StTemporalAdaptoriOS 18.0+A temporal transformer that applies a regular transformer to each value of a temporal sequence.
- StTemporalEstimatorToSupervisedAdaptorAn adaptor that exposes a temporal estimator as a supervised temporal estimator.
- StTemporalTransformerToEstimatorAdaptorA temporal estimator that always returns a predefined temporal transformer.
- StTemporalTransformerToUpdatableEstimatorAdaptorA temporal estimator that always returns a predefined temporal transformer.
- StTransformerToEstimatorAdaptoriOS 16.0+An estimator that always returns a predefined transformer.
- StTransformerToTemporalAdaptorA temporal transformer that applies a regular transformer to each value of a temporal sequence.
- StTransformerToUpdatableEstimatorAdaptoriOS 16.0+An updatable estimator that always returns a predefined transformer.
- StUpdatableEstimatorToSupervisedAdaptoriOS 16.0+An adaptor that exposes an updatable estimator as an updatable supervised estimator.
- StUpdatableEstimatorToTemporalAdaptorAn updatable temporal estimator wrapping an updatable estimator.
- StUpdatableSupervisedEstimatorToTemporalAdaptorAn updatable supervised temporal estimator wrapping an updatable supervised estimator.
- StUpdatableTabularEstimatorToSupervisedAdaptoriOS 16.0+An adaptor that exposes an updatable tabular estimator as an updatable supervised tabular estimator.
- StUpdatableTemporalEstimatorToSupervisedAdaptorAn adaptor that exposes an updatable temporal estimator as an updatable supervised temporal estimator.
- StMLModelClassifierAdaptoriOS 16.0+A transformer that uses a Core ML model as a classifier.
- StMLModelRegressorAdaptoriOS 16.0+A transformer that uses a Core ML model as a regressor.
- StMLModelTransformerAdaptoriOS 16.0+A transformer that uses a Core ML model.
Classifiers 9
Estimators and models that learn to assign categorical labels.
- PrClassifieriOS 16.0+An estimator that predicts classification probabilities.
- StBoostedTreeClassifieriOS 16.0+A gradient boosted decision tree classifier.
- StLogisticRegressionClassifieriOS 16.0+A logistic regression classifier.
- StLogisticRegressionClassifierModeliOS 16.0+A trained logistic regression classifier model.
- StFullyConnectedNetworkClassifieriOS 16.0+A classifier that uses a fully connected network.
- StFullyConnectedNetworkClassifierModeliOS 16.0+A classifier model that uses a fully connected network.
- StFullyConnectedNetworkMultiLabelClassifieriOS 17.0+A classifier that uses a multi-label fully-connected network.
- StFullyConnectedNetworkMultiLabelClassifierModeliOS 17.0+A multi-label classifier model that uses a fully-connected network.
- StTreeClassifierModeliOS 16.0+A trained tree classifier model.
Regressors 8
Estimators and models that predict continuous numeric values.
- PrRegressoriOS 16.0+A transformer that predicts a float value.
- StBoostedTreeRegressoriOS 16.0+A gradient boosted decision tree regressor.
- StLinearRegressoriOS 16.0+A linear regressor.
- StLinearRegressorModeliOS 16.0+A trained linear regressor model.
- StMultivariateLinearRegressoriOS 18.0+A multivariate linear regressor.
- StFullyConnectedNetworkRegressoriOS 16.0+A regressor that uses a fully connected network.
- StFullyConnectedNetworkRegressorModeliOS 16.0+A regressor model that uses a fully connected network.
- StTreeRegressorModeliOS 16.0+A trained tree regressor model.
Time Series & Temporal Models 17
Estimators and sequence types for forecasting and classifying temporal data.
- StLinearTimeSeriesForecasteriOS 18.0+A time-series forecasting estimator.
- StLinearTimeSeriesForecasterConfigurationiOS 18.0+The configuration for a linear time-series forecaster.
- StTimeSeriesClassifierAn estimator that trains a model to classify time series sequences.
- StTimeSeriesClassifierConfigurationThe configuration for a time-series classifier.
- StTimeSeriesForecasterAnnotatedWindowsiOS 18.0+A sequence of forecasting windows on a time series shaped array.
- StTimeSeriesForecasterBatchesiOS 18.0+A sequence of forecaster batches on a time series shaped array.
- PrSupervisedTemporalEstimatorAn estimator that creates a transformer by fitting to a sequence of annotated temporal features.
- PrTemporalSequenceiOS 16.0+Async sequence for temporal features.
- StAnyTemporalSequenceiOS 16.0+A type-erased temporal sequence.
- StAnyTemporalIteratoriOS 16.0+A type-erased async iterator.
- StTemporalFeatureiOS 16.0+A temporal feature contains a segment identifier and a feature value.
- StTemporalFileSegmentiOS 16.0+A URL and a time range identifying a specific segment of a time-based (temporal) file.
- StTemporalSegmentIdentifieriOS 16.0+Uniquely identifiers a segment of a temporal sequence.
- StSlidingWindowsiOS 18.0+A sequence of windows on a time series shaped array.
- StSlidingWindowTransformeriOS 16.0+A temporal transformer that groups input elements.
- StPreprocessedFeatureSequenceiOS 16.0+An asynchronous sequence of eagerly stored temporal features.
- StDataFrameTemporalAnnotationParametersiOS 16.0+Annotation parameters for the dataframe containing temporal annotations.
Model Configuration 5
Value types that configure estimator training and capture model metadata.
- StBoostedTreeConfigurationiOS 16.0+A boosted tree configuration.
- StFullyConnectedNetworkConfigurationiOS 16.0+A fully connected network configuration.
- StMultivariateLinearRegressorConfigurationiOS 18.0+A linear regressor configuration.
- StModelMetadataiOS 17.0+User info keys that specify useful information about a model.
- StMetricsKeyiOS 16.0+A key that uniquely identifies a metric.
Tabular Preprocessing 19
Transformers that select, impute, scale, encode, and combine tabular feature columns.
- StColumnSelectoriOS 16.0+An operation that applies an estimator to a selection of columns.
- StColumnSelectorTransformeriOS 16.0+A transformer that applies a base transformer to specific columns in a data frame.
- StColumnConcatenatoriOS 16.0+A transformer that concatenates every numerical column in a dataframe into to a shaped array for each row.
- EnColumnSelectioniOS 16.0+A selection of columns from a data frame.
- StCategoricalImputeriOS 16.0+An estimator that replaces missing values in the categorical input.
- StNumericImputeriOS 16.0+An estimator that replaces missing values in the numeric input.
- StImputeTransformeriOS 16.0+A transformer that replaces missing values with a pre-defined value.
- StOneHotEncoderiOS 16.0+An estimator that encodes categorical values to an integer array.
- StOrdinalEncoderiOS 16.0+An ordinal encoder estimator encodes categorical values to ordinal integer values.
- StMaxAbsScaleriOS 16.0+An estimator that scales the input values so that the maximum absolute value is 1.0.
- StMinMaxScaleriOS 16.0+An estimator that scales the input values so that they all lie in a closed range.
- StRobustScaleriOS 16.0+An estimator that scales the input using statistics that are robust to outliers.
- StStandardScaleriOS 16.0+An estimator that standardizes the input by removing the mean and scaling to unit variance.
- StNormalizationScaleriOS 16.0+An estimator that normalizes the input values using a normalization strategy.
- StLinearTransformeriOS 16.0+A transformer that runs an input through a scale and offset.
- StReshaperiOS 16.0+A transformer that reshapes a shaped array.
- StOptionalUnwrapperiOS 16.0+A transformer that unwraps optional elements and throws when encountering missing values.
- StDateFeatureExtractoriOS 18.0+A time and date feature extractor.
- StDateFeaturesiOS 18.0+A set of date and time features.
Preprocessing Estimators 12
Estimators that pair a learned preprocessing stage with a downstream estimator.
- StPreprocessingEstimatoriOS 16.0+An estimator that composes a preprocessing transformer and an estimator.
- StPreprocessingSupervisedEstimatoriOS 16.0+A supervised estimator that composes a preprocessing transformer and a supervised estimator.
- StPreprocessingSupervisedTabularEstimatoriOS 17.0+A supervised tabular estimator that composes a preprocessing transformer and a supervised tabular estimator.
- StPreprocessingSupervisedTemporalEstimatorA supervised temporal estimator that composes a preprocessing transformer and a supervised temporal estimator.
- StPreprocessingTabularEstimatoriOS 17.0+An estimator that composes a preprocessing transformer and an estimator.
- StPreprocessingTemporalEstimatorA temporal estimator that composes a preprocessing transformer and a temporal estimator.
- StPreprocessingUpdatableEstimatoriOS 16.0+An updatable estimator that composes a preprocessing transformer and an updatable estimator.
- StPreprocessingUpdatableSupervisedEstimatoriOS 16.0+An updatable supervised estimator that composes a preprocessing transformer and an updatable supervised estimator.
- StPreprocessingUpdatableSupervisedTabularEstimatoriOS 17.0+An updatable supervised estimator that composes a preprocessing transformer and an updatable supervised estimator.
- StPreprocessingUpdatableSupervisedTemporalEstimatorAn updatable supervised temporal estimator that composes a preprocessing transformer and an updatable supervised temporal estimator.
- StPreprocessingUpdatableTabularEstimatoriOS 17.0+An updatable estimator that composes a preprocessing transformer and an updatable estimator.
- StPreprocessingUpdatableTemporalEstimatorAn updatable temporal estimator that composes a preprocessing transformer and an updatable temporal estimator.
Image Processing 13
Transformers and extractors that read, transform, and produce features from images.
- StImageReaderiOS 16.0+An image file reader.
- StImageScaleriOS 16.0+An image scaling transformer.
- StImageCropperiOS 16.0+An image crop transformer.
- StImageRotatoriOS 17.0+An image rotating transformer.
- StImageFlipperiOS 17.0+An image flipper transformer.
- StImageBluriOS 17.0+An image blurring transformer.
- StImageColorTransformeriOS 17.0+An image color transformer.
- StImageExposureAdjusteriOS 17.0+An image exposure adjusting transformer.
- StImageFeaturePrintiOS 16.0+ImageFeaturePrint image feature extractor.
- PrImageFeatureExtractoriOS 16.0+A transformer that takes an image and outputs image features.
- StMLModelImageFeatureExtractoriOS 16.0+An image feature extractor provided by an MLModel.
- StRandomImageCropperiOS 17.0+Crops an image at a random location.
- StRandomImageNoiseGeneratoriOS 17.0+A transformer that adds random noise to an image.
Audio & Video Processing 5
Readers and transformers that ingest and extract features from audio and video.
- StAudioReaderiOS 16.0+An audio file reader.
- StAudioConvertingTransformeriOS 16.0+A transformer for audio conversion.
- StAudioFeaturePrintiOS 16.0+A stream transformer that extracts audio features from audio buffers.
- StDownsampleriOS 16.0+A temporal transformer that down samples the input stream.
- StVideoReaderiOS 16.0+A video file reader.
Pose & Action Analysis 12
Extractors and types for body and hand pose, object detection, and action recognition.
- StHumanBodyPoseExtractoriOS 16.0+The human body pose image feature extractor.
- StHumanHandPoseExtractoriOS 16.0+The human hand pose image feature extractor.
- StHumanBodyActionCounteriOS 16.0+A human body action repetition counting transformer that takes window of human body poses and produces cumulative human body action repetition counts.
- StHumanBodyActionPeriodPredictoriOS 16.0+A human body action period predictor transformer that takes window of poses and produces a window of predictions.
- StPoseiOS 16.0+A pose that contains joint keypoints from a person, a hand, or a combination.
- StPoseSelectoriOS 16.0+A transformer that selects one pose from an array of poses.
- EnPoseSelectionStrategyiOS 16.0+Pose selection strategy.
- StJointKeyiOS 16.0+A key that uniquely identifies a joint.
- StJointPointiOS 16.0+A joint in a pose that contains a location and scoring information.
- StJointsSelectoriOS 16.0+Joints selector from a pose.
- StDetectedObjectiOS 17.0+An item in a detection result.
- StObjectDetectionAnnotationiOS 17.0+An object detection annotation.
Annotated Data 6
Structures that carry features, labels, and predictions through training and inference.
- StAnnotatedFeatureiOS 16.0+An annotated example for fitting a supervised estimator.
- StAnnotatedBatchiOS 18.0+A batch of annotated examples for fitting a supervised estimator.
- StAnnotatedFeatureProvideriOS 16.0+An adaptor that converts a regular estimator to a tabular estimator by selecting features and annotations from columns.
- StAnnotatedFilesiOS 16.0+An annotated files collection.
- StAnnotatedPredictioniOS 17.0+An annotated prediction.
- StEventiOS 16.0+Maintans the status of the pipeline.
Data Augmentation 7
Components that expand training data by applying random transformations.
- StAugmenteriOS 17.0+An augmenter.
- StAugmentationSequenceiOS 17.0+An async sequence of augmented elements.
- StUpsampledAugmentationSequenceiOS 17.0+An async sequence of augmented elements.
- StApplyRandomlyiOS 17.0+Randomly applies the transformer with the given probability.
- StApplyEachRandomlyiOS 17.0+Applies each transformer randomly given a probability.
- StChooseRandomlyiOS 17.0+Apply single transformation randomly chosen from a list of transformers.
- StShuffleRandomlyiOS 17.0+Apply transformations in a random order.
Predictions & Metrics 5
Types that represent model predictions and evaluate model performance.
- StClassificationiOS 16.0+An item in a classification result.
- StClassificationDistributioniOS 16.0+A classification distribution that contains a probability for each classification label.
- StClassificationMetricsiOS 16.0+Classification metrics.
- StMultiLabelClassificationMetricsiOS 17.0+Multi-label classification metrics.
- StObjectDetectionMetricsiOS 17.0+Metrics for object detection model.
Hyperparameter Optimization 3
Parameter ranges and strategies for tuning model hyperparameters.
- ClUniformRandomIntegerParameteriOS 17.0+Applies the transformer with a randomly generated input parameter.
- StUniformRandomFloatingPointParameteriOS 17.0+Applies the transformer with a randomly generated input parameter.
- EnOptimizationStrategyiOS 17.0+A linear optimization strategy.
Errors 13
Error types reported during data loading, preprocessing, training, and serialization.
- EnAudioPreprocessingErroriOS 16.0+Audio preprocessing errors.
- EnAudioReaderErroriOS 16.0+Audio reader errors.
- EnVideoReaderErroriOS 16.0+Video loader errors.
- EnCompatibilityErroriOS 17.0+A compatibility error.
- EnConcatenationErroriOS 16.0+Errors thrown when concatenating numeric values.
- EnDatasetErroriOS 16.0+Dataset processing errors.
- EnEstimatorEncodingErroriOS 16.0+An estimator encoding error.
- EnModelCompatibilityErroriOS 16.0+Errors related to CoreML model compatibility.
- EnModelUpdateErroriOS 16.0+An updatable model error.
- EnOptimizationErroriOS 17.0+An optimization error.
- EnPipelineDataErroriOS 16.0+Errors related to pipeline data affinity problems.
- EnTabularPipelineDataErroriOS 16.0+Errors related to tabular pipeline data affinity problems.
- EnSerializationErroriOS 16.0+A serialization error.
Structures 1
- StAugmentationBuilderiOS 17.0+A series of augmentations.
Type Aliases 1
- TyEventHandlerA closure to handle processing events.