Symbols: 68.7% of Apple's iOS API (463 of 674, exact) · Rows: 13: 8 ✅ 3 🟡 2 ❌ · iOS: 11.0+
Area: Imaging, photos & ML · Apple: CoreML · Issues: area:ml
- Adapted: isim parses the model specification itself and runs GLM models only. Xcode-compiled
.mlmodelcis undocumented.
| API / feature | Status | iOS | Notes |
|---|---|---|---|
Core ML data API (MLMultiArray, MLFeatureValue, MLDictionaryFeatureProvider, MLArrayBatchProvider, MLModelConfiguration, MLModelDescription) |
✅ | ≤17 | tested (shapes, strides, subscripts, feature values) |
Core ML models in projects (.mlmodel, .mlpackage; Xcode's generated model classes) |
✅ | ≤17 | adapted: isim build compiles each model in Compile Sources (or a synchronized folder) into <Name>.mlmodelc in the app with isim's format (the spec, what MLModel(contentsOf:) loads; a package's root model from its Manifest.json) instead of Apple's undocumented one, and generates Xcode's Swift classes from the model's description: <Name>Input / <Name>Output (MLFeatureProvider, a property per feature: Int64, Double, String, CVPixelBuffer, MLMultiArray, dictionaries, MLSequence; optional inputs), <Name> (init(configuration:), init(contentsOf:configuration:), load(configuration:) async and with a completion handler, urlOfModelInThisBundle, prediction(input:), prediction(<inputs>:), predictions(inputs:options:)); COREML_CODEGEN_LANGUAGE = None turns generation off. import CoreML re-exports Foundation, as Apple's does (the generated classes use URL and Bundle). Not generated: Objective-C model classes (isim's Core ML has no Objective-C interface yet). What a model can predict is the next row. Tested (HelloCoreMLModels: test_generated_model_classes, test_coreml_models) |
Core ML MLModel loading and prediction |
🟡 | ≤17 | adapted: Apple's compiled .mlmodelc format is undocumented and needs Apple's runtime, so Xcode-compiled models fail to load with a clear error (tested); MLModel.compileModel(at:) turns a .mlmodel spec into an isim .mlmodelc; descriptions are read for every model type (with stateDescriptionsByName); predictions run for GLM regressors/classifiers, tree ensembles and neural networks (next rows); ML programs and pipelines fail with a clear error (tested) |
Core ML tree ensembles (treeEnsembleRegressor, treeEnsembleClassifier) |
✅ | ≤17 | adapted: isim evaluates the spec's trees on the CPU (branch modes, missing values, base values, softmax / logistic post-transforms, class labels and probabilities). Tested (CoreMLTest: test_coreml_runtime) |
Core ML neural networks (neuralNetwork, neuralNetworkRegressor, neuralNetworkClassifier) and MLCustomLayer |
🟡 | ≤17 | adapted: isim runs the network on the CPU, layer by layer: inner product, activations (linear, ReLU, leaky / thresholded ReLU, tanh, scaled tanh, sigmoid, hard sigmoid, ELU, softsign, softplus), batch norm, softmax, add, multiply, concat, reshape, flatten, and custom layers (the app's MLCustomLayer class, found by className); float32 / float16 / raw weights. Other layer types (convolution, pooling, recurrent, …) fail with an error naming the layer. Tested (CoreMLTest) |
MLShapedArray, MLShapedArraySlice, MLShapedArrayProtocol, MLShapedArrayScalar |
✅ | ≤17 | adapted (pure Swift): shapes, strides, scalar / index / range subscripts, reshape, expand / squeeze, transpose, concatenation, identity and random arrays, Codable, conversion to and from MLMultiArray and MLFeatureValue. Tested (CoreMLTest) |
MLState, MLModel.makeState(), prediction(from:using:options:) |
✅ | 18.0 | adapted: state buffers come from the model description's state features and persist between predictions; withMultiArray(for:) reads and writes them. Tested (CoreMLTest) |
MLTensor, MLTensorScalar, MLTensorRangeExpression |
✅ | 18.0 | adapted: an eager CPU tensor (Double storage): creation, broadcasting arithmetic, comparisons, reductions, matmul, shape operations, gather / replacing, padding, resizing, top-k, subscripts, seeded random; shapedArray(of:) materialises it. Tested (CoreMLTest) |
MLComputeDevice, MLCPUComputeDevice, MLGPUComputeDevice, MLNeuralEngineComputeDevice, MLComputePlan, MLModelStructure |
✅ | ≤17 | adapted: isim computes on the CPU only, so MLModel.availableComputeDevices and MLComputeDevice.allComputeDevices list the CPU; MLComputePlan.load describes the model's structure (neural network layers, program or pipeline) with every layer on the CPU and no cost estimate. Tested (CoreMLTest) |
MLUpdateTask, MLUpdateContext, MLUpdateProgressHandlers, MLParameterKey, MLMetricKey |
🟡 | ≤17 | stub: the types exist so apps compile; on-device training is not implemented and creating an MLUpdateTask throws an .update error. Tested (CoreMLTest) |
MLSendableFeatureValue (init(_:) from values, shaped arrays and an MLFeatureValue, init(undefined:), type, isUndefined, isScalar, isShapedArray, the typed values, shapedArrayValue(of:)), MLFeatureValue(_:) from one |
✅ | 18.0 | adapted: a value over isim's immutable MLFeatureValue (issue #852, for Vision's CoreMLFeatureValueObservation). Unverified (no test yet) |
| Types not yet in isim (iOS 17 and earlier) | ❌ | ≤17 | not implemented, found by the 2026-10 sweep: MLCustomModel, MLModelAsset, MLTask (3 types; with their members under "Not yet in isim") |
| Types not yet in isim (iOS 18) | ❌ | 18.0 | not implemented, found by the 2026-10 sweep: MLComputePolicy, MLStateConstraint (2 types; with their members under "Not yet in isim") |
211 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.
List
init(featureProviderArray: [any MLFeatureProvider])static func load(asset: MLModelAsset, configuration: MLModelConfiguration) async throws -> MLComputePlanMLComputePolicystatic var cpuAndGPU: MLComputePolicystatic var cpuOnly: MLComputePolicyvar customMirror: Mirrorvar description: Stringinit(MLComputeUnits)func encode(commandBuffer: any MTLCommandBuffer, inputs: [any MTLTexture], outputs: [any MTLTexture]) throwsinit(parameters: [String : Any]) throwsMLCustomModelinit(modelDescription: MLModelDescription, parameterDictionary: [String : Any]) throwsinit(modelDescription: MLModelDescription, parameters: [String : Any]) throwsfunc prediction(from: any MLFeatureProvider, options: MLPredictionOptions) throws -> any MLFeatureProviderfunc predictions(from: any MLBatchProvider, options: MLPredictionOptions) throws -> any MLBatchProviderMLDictionaryConstraintinit?(coder: NSCoder)var keyType: MLFeatureTypeinit?(coder: NSCoder)var dictionaryConstraint: MLDictionaryConstraint?var imageConstraint: MLImageConstraint?init?(coder: NSCoder)var sequenceConstraint: MLSequenceConstraint?var stateConstraint: MLStateConstraint?MLFeatureValue.ImageOptionstatic let cropAndScale: MLFeatureValue.ImageOptionstatic let cropRect: MLFeatureValue.ImageOptioninit(String)init(rawValue: String)convenience init(CGImage: CGImage, constraint: MLImageConstraint, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(cgImage: CGImage, constraint: MLImageConstraint, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(cgImage: CGImage, orientation: CGImagePropertyOrientation, constraint: MLImageConstraint, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(CGImage: CGImage, orientation: CGImagePropertyOrientation, constraint: MLImageConstraint, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(CGImage: CGImage, orientation: CGImagePropertyOrientation, pixelsWide: Int, pixelsHigh: Int, pixelFormatType: OSType, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(cgImage: CGImage, orientation: CGImagePropertyOrientation, pixelsWide: Int, pixelsHigh: Int, pixelFormatType: OSType, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(cgImage: CGImage, pixelsWide: Int, pixelsHigh: Int, pixelFormatType: OSType, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(CGImage: CGImage, pixelsWide: Int, pixelsHigh: Int, pixelFormatType: OSType, options: [MLFeatureValue.ImageOption : Any]?) throwsinit?(coder: NSCoder)convenience init(imageAt: URL, constraint: MLImageConstraint, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(imageAt: URL, orientation: CGImagePropertyOrientation, constraint: MLImageConstraint, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(imageAt: URL, orientation: CGImagePropertyOrientation, pixelsWide: Int, pixelsHigh: Int, pixelFormatType: OSType, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(imageAt: URL, pixelsWide: Int, pixelsHigh: Int, pixelFormatType: OSType, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(imageAtURL: URL, constraint: MLImageConstraint, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(imageAtURL: URL, orientation: CGImagePropertyOrientation, constraint: MLImageConstraint, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(imageAtURL: URL, orientation: CGImagePropertyOrientation, pixelsWide: Int, pixelsHigh: Int, pixelFormatType: OSType, options: [MLFeatureValue.ImageOption : Any]?) throwsconvenience init(imageAtURL: URL, pixelsWide: Int, pixelsHigh: Int, pixelFormatType: OSType, options: [MLFeatureValue.ImageOption : Any]?) throwsvar metalDevice: (any MTLDevice)!MLImageConstraintinit?(coder: NSCoder)var pixelFormatType: OSTypevar pixelsHigh: Intvar pixelsWide: Intvar sizeConstraint: MLImageSizeConstraintMLImageSizeinit?(coder: NSCoder)var pixelsHigh: Intvar pixelsWide: IntMLImageSizeConstraintvar enumeratedImageSizes: [MLImageSize]init?(coder: NSCoder)var pixelsHighRange: NSRangevar pixelsWideRange: NSRangevar type: MLImageSizeConstraintTypeMLImageSizeConstraintTypecase enumeratedinit?(rawValue: Int)case rangecase unspecifiedMLKeyinit?(coder: NSCoder)var name: Stringvar scope: String?class func compileModel(at: URL, completionHandler: (Result<URL, any Error>) -> Void)convenience init(contentsOfURL: URL) throwsconvenience init(contentsOfURL: URL, configuration: MLModelConfiguration) throwsclass func load(MLModelAsset, configuration: MLModelConfiguration, completionHandler: (MLModel?, (any Error)?) -> Void)func parameterValue(for: MLParameterKey) throws -> Anyfunc prediction(from:using:)func predictions(fromBatch: any MLBatchProvider) throws -> any MLBatchProviderMLModelAssetfunc functionNames(completionHandler: ([String]?, (any Error)?) -> Void)convenience init(specification: Data) throwsconvenience init(specification: Data, blobMapping: [URL : Data]) throwsconvenience init(url: URL) throwsconvenience init(URL: URL) throwsfunc modelDescription(completionHandler: (MLModelDescription?, (any Error)?) -> Void)func modelDescription(ofFunctionNamed: String, completionHandler: (MLModelDescription?, (any Error)?) -> Void)var functionName: String?init?(coder: NSCoder)var optimizationHints: MLOptimizationHintsinit?(coder: NSCoder)var parameterDescriptionsByKey: [MLParameterKey : MLParameterDescription]var trainingInputDescriptionsByName: [String : MLFeatureDescription]static var customLayer: MLModelError.Codestatic var customModel: MLModelError.Codestatic var modelCollection: MLModelError.Codestatic var modelDecryption: MLModelError.Codestatic var modelDecryptionKeyFetch: MLModelError.Codestatic var parameters: MLModelError.Codestatic var predictionCancelled: MLModelError.Codestatic var update: MLModelError.Codestatic func load(asset: MLModelAsset) async throws -> MLModelStructurelet subModelNames: [String]MLModelStructure.Program.Argumentlet bindings: [MLModelStructure.Program.Binding]MLModelStructure.Program.Bindingcase name(String)case value(MLModelStructure.Program.Value)MLModelStructure.Program.Blocklet inputs: [MLModelStructure.Program.NamedValueType]let operations: [MLModelStructure.Program.Operation]let outputNames: [String]MLModelStructure.Program.Functionlet block: MLModelStructure.Program.Blocklet inputs: [MLModelStructure.Program.NamedValueType]MLModelStructure.Program.NamedValueTypelet name: Stringlet type: MLModelStructure.Program.ValueTypelet blocks: [MLModelStructure.Program.Block]MLModelStructure.Program.ValueMLModelStructure.Program.ValueTypeconvenience init(byConcatenatingMultiArrays: [MLMultiArray], alongAxis: Int, dataType: MLMultiArrayDataType)init?(coder: NSCoder)convenience init(concatenating: [MLMultiArray], axis: Int, dataType: MLMultiArrayDataType)init(pixelBuffer: CVPixelBuffer, shape: [NSNumber])convenience init(shape: [Int], dataType: MLMultiArrayDataType, strides: [Int])var pixelBuffer: CVPixelBuffer?func transfer(to: MLMultiArray)func withUnsafeBufferPointer<S, R>(ofType: S.Type, (UnsafeBufferPointer<S>) throws -> R) rethrows -> Rfunc withUnsafeMutableBufferPointer<S, R>(ofType: S.Type, (UnsafeMutableBufferPointer<S>, [Int]) throws -> R) rethrows -> Rinit?(coder: NSCoder)var shapeConstraint: MLMultiArrayShapeConstraintMLMultiArrayShapeConstraintvar enumeratedShapes: [[NSNumber]]init?(coder: NSCoder)var sizeRangeForDimension: [NSValue]var type: MLMultiArrayShapeConstraintTypeMLMultiArrayShapeConstraintTypecase enumeratedinit?(rawValue: Int)case rangecase unspecifiedMLNumericConstraintvar enumeratedNumbers: Set<NSNumber>?init?(coder: NSCoder)var maxNumber: NSNumbervar minNumber: NSNumberMLOptimizationHintsinit()MLOptimizationHints.ReshapeFrequencycase frequentcase infrequentvar reshapeFrequency: MLOptimizationHints.ReshapeFrequencyMLOptimizationHints.SpecializationStrategycasedefault``case fastPredictionvar specializationStrategy: MLOptimizationHints.SpecializationStrategyMLParameterDescriptionvar defaultValue: Anyinit?(coder: NSCoder)var key: MLParameterKeyvar numericConstraint: MLNumericConstraint?class var beta1: MLParameterKeyclass var beta2: MLParameterKeyclass var biases: MLParameterKeyclass var eps: MLParameterKeyclass var linkedModelFileName: MLParameterKeyclass var linkedModelSearchPath: MLParameterKeyclass var numberOfNeighbors: MLParameterKeyfunc scoped(to: String) -> MLParameterKeyclass var seed: MLParameterKeyclass var shuffle: MLParameterKeyclass var weights: MLParameterKeyinit?(coder: NSCoder)convenience init(empty: MLFeatureType)convenience init(int64Array: [NSNumber])convenience init(stringArray: [String])MLSequenceConstraintvar countRange: NSRangeinit?(coder: NSCoder)var valueDescription: MLFeatureDescriptioncase strides([Int])func relative(toShapedArrayAxis: Range<Int>) -> Range<Int>MLStateConstraintvar bufferShape: [Int]var dataType: MLMultiArrayDataTypeinit?(coder: NSCoder)MLTaskfunc cancel()var error: (any Error)?func resume()var state: MLTaskStatevar taskIdentifier: StringMLTaskStatecase cancellingcase completedcase failedinit?(rawValue: Int)case runningcase suspendedstatic .>=(_:_:)static .<=(_:_:)convenience init(forModelAt: URL, trainingData: any MLBatchProvider, completionHandler: (MLUpdateContext) -> Void) throwsconvenience init(forModelAt: URL, trainingData: any MLBatchProvider, progressHandlers: MLUpdateProgressHandlers) throwsconvenience init(forModelAtURL: URL, trainingData: any MLBatchProvider, completionHandler: (MLUpdateContext) -> Void) throwsconvenience init(forModelAtURL: URL, trainingData: any MLBatchProvider, progressHandlers: MLUpdateProgressHandlers) throwsfunc pointwiseMax(_:_:)func pointwiseMin(_:_:)func withMLTensorComputePolicy(_:_:)func withMLTensorComputePolicy<Result>(MLComputePolicy, () throws -> Result) rethrows -> Resultfunc withMLTensorComputePolicy<R>(MLComputePolicy, () async throws -> R) async rethrows -> R