read
Swift declarationfunc read(from url: URL) throws -> Self.TransformerReads the encoded transformer from a file. - Parameter url: A file URL. - Returns: The decoded transformer.
protocol · iOS 16.0+ · SDK 27.1
protocol SupervisedEstimator<Transformer, Annotation>An estimator that creates a transformer by fitting to a data set.
func read(from url: URL) throws -> Self.TransformerReads the encoded transformer from a file. - Parameter url: A file URL. - Returns: The decoded transformer.
func decode(from decoder: inout any EstimatorDecoder) throws -> Self.TransformerDecodes a previously fitted decodable transformer. - Parameter decoder: An estimator decoder. - Returns: The decoded transformer.
Omit the output parameters from the call. The result contains $ret and $out, with decoder inside $out.
13 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
SupervisedEstimator.appending(_:)
This declaration needs Swift generic type arguments. (no canonical witness for Other)
SupervisedEstimator.appending(_:)
This declaration needs Swift generic type arguments. (no canonical witness for Other)
SupervisedEstimator.appending(_:)
This declaration needs Swift generic type arguments. (no canonical witness for Other)
SupervisedEstimator.adaptedAsTemporal()
This protocol needs associated types that cannot yet cross the bridge.
SupervisedEstimator.appending(_:)
This declaration needs Swift generic type arguments. (no canonical witness for Other)
SupervisedEstimator.appending(_:)
This declaration needs Swift generic type arguments. (no canonical witness for Other)
SupervisedEstimator.appending(_:)
This protocol needs associated types that cannot yet cross the bridge.
SupervisedEstimator.encode(_:to:)
The iOS SDK compiler rejected this binding: member 'encode' cannot be used on value of type 'any SupervisedEstimator'; consider using a generic constraint instead [#ExistentialMemberAccess]
SupervisedEstimator.write(_:to:overwrite:)
The iOS SDK compiler rejected this binding: cannot access associated type 'Transformer' from 'SupervisedEstimator'; use a concrete type or generic parameter base instead
SupervisedEstimator.fitted(to:)
This declaration needs Swift generic type arguments. (no canonical witness for Self.Transformer.Input)
SupervisedEstimator.fitted(to:validateOn:)
This declaration needs Swift generic type arguments. (no canonical witness for Self.Transformer.Input)
SupervisedEstimator.fitted(to:eventHandler:)
This declaration needs Swift generic type arguments. (no canonical witness for Input)
SupervisedEstimator.fitted(to:validateOn:eventHandler:)
This declaration needs Swift generic type arguments. (no canonical witness for Input)