← Back to report

CreateML.swiftinterface 3,684 rows

1// swift-interface-format-version: 1.0
2// swift-compiler-version: Apple Swift version 6.3.2 (swiftlang-6.3.2.1.2 clang-2100.0.123.2)
3// swift-module-flags: -target arm64e-apple-ios26.5 -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -Osize -library-level api -enable-experimental-feature DebugDescriptionMacro -user-module-version 1399.100.2 -module-name CreateML
4// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
5import AVFoundation
6@preconcurrency import Combine
7import Compression
1// swift-interface-format-version: 1.0
2// swift-compiler-version: Apple Swift version 6.4 (swiftlang-6.4.0.19.4 clang-2100.3.19.4)
3// swift-module-flags: -target arm64e-apple-ios27.0 -enable-objc-interop -enable-library-evolution -language-mode 6 -Osize -library-level api -enable-experimental-feature DebugDescriptionMacro -user-module-version 1410 -module-name CreateML
4// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4
5import AVFoundation
6@preconcurrency import Combine
7import Compression
… 17 unchanged lines …
25import _SwiftConcurrencyShims
26import os.log
27import os
28extension CreateML.MLBoostedTreeRegressor {
29 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
30 public struct ModelParameters {
31 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
32 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
33 @available(tvOS, unavailable)
34 public var validationData: CreateML.MLDataTable? {
35 get
36 set
37 }
38 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
39 public var validation: CreateML.MLBoostedTreeRegressor.ModelParameters.ValidationData {
40 get
41 set
42 }
43 public var maxDepth: Swift.Int
44 public var maxIterations: Swift.Int
45 public var minLossReduction: Swift.Double
46 public var minChildWeight: Swift.Double
47 public var randomSeed: Swift.Int
48 public var stepSize: Swift.Double
49 public var earlyStoppingRounds: Swift.Int?
50 public var rowSubsample: Swift.Double
51 public var columnSubsample: Swift.Double
52 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
53 public init(validation: CreateML.MLBoostedTreeRegressor.ModelParameters.ValidationData, maxDepth: Swift.Int = 6, maxIterations: Swift.Int = 10, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42, stepSize: Swift.Double = 0.3, earlyStoppingRounds: Swift.Int? = nil, rowSubsample: Swift.Double = 1.0, columnSubsample: Swift.Double = 1.0)
54 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
55 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
56 @available(tvOS, unavailable)
57 public init(validationData: CreateML.MLDataTable? = nil, maxDepth: Swift.Int = 6, maxIterations: Swift.Int = 10, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42, stepSize: Swift.Double = 0.3, earlyStoppingRounds: Swift.Int? = nil, rowSubsample: Swift.Double = 1.0, columnSubsample: Swift.Double = 1.0)
58 }
59}
60@available(*, unavailable)
61extension CreateML.MLBoostedTreeRegressor.ModelParameters : Swift.Sendable {
62}
63@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
64extension CreateML.MLBoostedTreeRegressor.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
65 public var description: Swift.String {
66 get
67 }
68 public var debugDescription: Swift.String {
69 get
70 }
71 public var playgroundDescription: Any {
25import _SwiftConcurrencyShims
26import os.log
27import os
28extension CreateML::MLBoostedTreeRegressor {
29 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
30 public struct ModelParameters {
31 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
32 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
33 @available(tvOS, unavailable)
34 public var validationData: CreateML::MLDataTable? {
35 get
36 set
37 }
38 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
39 public var validation: CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters.CreateML::ValidationData {
40 get
41 set
42 }
43 public var maxDepth: Swift::Int
44 public var maxIterations: Swift::Int
45 public var minLossReduction: Swift::Double
46 public var minChildWeight: Swift::Double
47 public var randomSeed: Swift::Int
48 public var stepSize: Swift::Double
49 public var earlyStoppingRounds: Swift::Int?
50 public var rowSubsample: Swift::Double
51 public var columnSubsample: Swift::Double
52 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
53 public init(validation: CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters.CreateML::ValidationData, maxDepth: Swift::Int = 6, maxIterations: Swift::Int = 10, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42, stepSize: Swift::Double = 0.3, earlyStoppingRounds: Swift::Int? = nil, rowSubsample: Swift::Double = 1.0, columnSubsample: Swift::Double = 1.0)
54 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
55 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
56 @available(tvOS, unavailable)
57 public init(validationData: CreateML::MLDataTable? = nil, maxDepth: Swift::Int = 6, maxIterations: Swift::Int = 10, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42, stepSize: Swift::Double = 0.3, earlyStoppingRounds: Swift::Int? = nil, rowSubsample: Swift::Double = 1.0, columnSubsample: Swift::Double = 1.0)
58 }
59}
60@available(*, unavailable)
61extension CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters : Swift::Sendable {
62}
63@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
64extension CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
65 public var description: Swift::String {
66 get
67 }
68 public var debugDescription: Swift::String {
69 get
70 }
71 public var playgroundDescription: Any {
… 3 unchanged lines …
75@available(macOS 12.0, iOS 15.0, *)
76@available(tvOS, unavailable)
77public struct MLHandPoseClassifier {
78 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
79 public var model: CoreML.MLModel
80 public let modelParameters: CreateML.MLHandPoseClassifier.ModelParameters
81 public var trainingMetrics: CreateML.MLClassifierMetrics
82 public var validationMetrics: CreateML.MLClassifierMetrics
83 public init(trainingData: CreateML.MLHandPoseClassifier.DataSource, parameters: CreateML.MLHandPoseClassifier.ModelParameters = ModelParameters()) throws
84 public init(checkpoint: CreateML.MLCheckpoint) throws
85 public static func train(trainingData: CreateML.MLHandPoseClassifier.DataSource, parameters: CreateML.MLHandPoseClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLHandPoseClassifier>
86 public static func makeTrainingSession(trainingData: CreateML.MLHandPoseClassifier.DataSource, parameters: CreateML.MLHandPoseClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLHandPoseClassifier>
87 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLHandPoseClassifier>
88 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLHandPoseClassifier>) throws -> CreateML.MLJob<CreateML.MLHandPoseClassifier>
89 public func prediction(from image: Foundation.URL) throws -> [(label: Swift.String, confidence: Swift.Double)]
90 public func predictions(from images: [Foundation.URL]) throws -> [[(label: Swift.String, confidence: Swift.Double)]]
91 public func evaluation(on annotatedImages: CreateML.MLHandPoseClassifier.DataSource) throws -> CreateML.MLClassifierMetrics
92 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
93 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
94}
95@available(*, unavailable)
96extension CreateML.MLHandPoseClassifier : Swift.Sendable {
97}
98@available(macOS 12.0, iOS 15.0, *)
99@available(tvOS, unavailable)
100extension CreateML.MLHandPoseClassifier : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
101 public var description: Swift.String {
102 get
103 }
104 public var debugDescription: Swift.String {
105 get
106 }
107 public var playgroundDescription: Any {
108 get
109 }
110}
111extension CreateML.MLBoostedTreeClassifier.ModelParameters {
112 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
113 public enum ValidationData {
114 case split(strategy: CreateML.MLSplitStrategy)
115 @available(macOS, introduced: 10.15, deprecated: 14.0)
116 @available(iOS, introduced: 15.0, deprecated: 17.0)
117 @available(tvOS, introduced: 16.0, deprecated: 17.0)
118 case table(CreateML.MLDataTable)
119 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
120 case dataFrame(TabularData.DataFrame)
121 case none
122 }
123}
124@available(*, unavailable)
125extension CreateML.MLBoostedTreeClassifier.ModelParameters.ValidationData : Swift.Sendable {
126}
127extension CreateML.MLImageClassifier {
128 @available(macOS 10.14, iOS 15.0, *)
129 @available(tvOS, unavailable)
130 public enum FeatureExtractorType : Swift.Sendable {
131 case scenePrint(revision: Swift.Int?)
132 @available(macOS 10.15, iOS 15.0, *)
133 @available(tvOS, unavailable)
134 case custom(CreateML.MLImageClassifier.CustomFeatureExtractor)
135 }
136 @available(macOS 10.15, iOS 15.0, *)
137 @available(tvOS, unavailable)
138 public struct CustomFeatureExtractor : Swift.Sendable {
139 public var modelPath: Foundation.URL
140 public var outputName: Swift.String?
141 public init(modelPath: Foundation.URL, outputName: Swift.String? = nil)
142 }
143}
144@available(macOS 10.14, iOS 15.0, *)
145@available(tvOS, unavailable)
146extension CreateML.MLImageClassifier.FeatureExtractorType : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
147 public var description: Swift.String {
148 get
149 }
150 public var debugDescription: Swift.String {
151 get
152 }
153 public var playgroundDescription: Any {
154 get
155 }
156}
157@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
158public let MLCreateErrorDomain: Swift.String
159@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
160public enum MLCreateError : Swift.Error, Swift.Sendable {
161 case generic(reason: Swift.String)
162 case type(reason: Swift.String)
163 case io(reason: Swift.String)
164 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
165 case cancelled
166 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
167 case incompatibleParameters(parameter: Swift.String, originalValue: Swift.String, newValue: Swift.String)
168 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
169 case modifiedTrainingData
170}
171@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
172extension CreateML.MLCreateError : Foundation.LocalizedError {
173 public var failureReason: Swift.String? {
174 get
175 }
176 public var errorDescription: Swift.String? {
177 get
178 }
179}
180@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
181extension CreateML.MLCreateError : Foundation.CustomNSError {
182 public static var errorDomain: Swift.String {
183 get
184 }
185 public var errorCode: Swift.Int {
186 get
187 }
188 public var errorUserInfo: [Swift.String : Any] {
189 get
190 }
191}
192@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
193extension CreateML.MLCreateError : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
194 public var description: Swift.String {
195 get
196 }
197 public var debugDescription: Swift.String {
198 get
199 }
200}
201@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
202public struct MLRandomForestRegressor : @unchecked Swift.Sendable {
203 public var model: CoreML.MLModel {
204 get
205 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
206 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
207 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
208 set
209 }
210 public var targetColumn: Swift.String
211 public var featureColumns: [Swift.String]
212 public let modelParameters: CreateML.MLRandomForestRegressor.ModelParameters
213 public var trainingMetrics: CreateML.MLRegressorMetrics {
214 get
215 }
216 public var validationMetrics: CreateML.MLRegressorMetrics {
217 get
218 }
219 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
220 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
221 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
222 public init(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
223 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
224 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
225 @available(tvOS, unavailable)
226 public init(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestRegressor.ModelParameters = ModelParameters(validationData: nil)) throws
227 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
228 public init(checkpoint: CreateML.MLCheckpoint) throws
229 @available(macOS, introduced: 12.0, deprecated: 14.0)
230 @available(iOS, introduced: 15.0, deprecated: 17.0)
231 @available(tvOS, introduced: 16.0, deprecated: 17.0)
232 public static func train(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLRandomForestRegressor>
233 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
234 public static func train(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestRegressor.ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLRandomForestRegressor>
235 @available(macOS, introduced: 12.0, deprecated: 14.0)
236 @available(iOS, introduced: 15.0, deprecated: 17.0)
237 @available(tvOS, introduced: 16.0, deprecated: 17.0)
238 public static func makeTrainingSession(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLRandomForestRegressor>
239 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
240 public static func makeTrainingSession(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestRegressor.ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLRandomForestRegressor>
241 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
242 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLRandomForestRegressor>
243 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
244 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLRandomForestRegressor>) throws -> CreateML.MLJob<CreateML.MLRandomForestRegressor>
245 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
246 public func predictions(from data: TabularData.DataFrame) throws -> TabularData.AnyColumn
247 @available(macOS, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
248 @available(iOS, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
249 @available(tvOS, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
250 public func predictions(from data: CreateML.MLDataTable) throws -> CreateML.MLUntypedColumn
251 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
252 public func evaluation(on labeledData: TabularData.DataFrame) -> CreateML.MLRegressorMetrics
253 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
254 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
255 @available(tvOS, unavailable)
256 public func evaluation(on labeledData: CreateML.MLDataTable) -> CreateML.MLRegressorMetrics
257 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
258 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
259}
260@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
261extension CreateML.MLRandomForestRegressor : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
262 public var description: Swift.String {
263 get
264 }
265 public var debugDescription: Swift.String {
266 get
267 }
268 public var playgroundDescription: Any {
269 get
270 }
271}
272extension CreateML.MLImageClassifier.ModelParameters {
273 @available(macOS 10.15, iOS 15.0, *)
274 @available(tvOS, unavailable)
275 public enum ValidationData : Swift.Sendable {
276 case split(strategy: CreateML.MLSplitStrategy)
277 case dataSource(CreateML.MLImageClassifier.DataSource)
278 @available(macOS, introduced: 10.15, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary validation data instead.")
279 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary validation data instead.")
280 @available(tvOS, unavailable)
281 case dictionary([Swift.String : [Foundation.URL]])
282 case none
283 }
284}
285extension CreateML.MLDataTable {
286 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
287 public struct ColumnNames : Swift.RandomAccessCollection {
288 public var startIndex: Swift.Int {
289 get
290 }
291 public var endIndex: Swift.Int {
292 get
293 }
294 public subscript(i: Swift.Int) -> Swift.String {
295 get
296 }
297 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
298 public typealias Element = Swift.String
299 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
300 public typealias Index = Swift.Int
301 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
302 public typealias Indices = Swift.Range<Swift.Int>
303 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
304 public typealias Iterator = Swift.IndexingIterator<CreateML.MLDataTable.ColumnNames>
305 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
306 public typealias SubSequence = Swift.Slice<CreateML.MLDataTable.ColumnNames>
307 }
308 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
309 public var columnNames: CreateML.MLDataTable.ColumnNames {
310 get
311 }
312}
313@available(*, unavailable)
314extension CreateML.MLDataTable.ColumnNames : Swift.Sendable {
315}
316@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
317extension CreateML.MLDataTable.ColumnNames : Swift.Equatable {
318 public static func == (lhs: CreateML.MLDataTable.ColumnNames, rhs: CreateML.MLDataTable.ColumnNames) -> Swift.Bool
319}
320@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
321extension CreateML.MLDataTable.ColumnNames : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
322 public var description: Swift.String {
323 get
324 }
325 public var debugDescription: Swift.String {
326 get
327 }
328 public var playgroundDescription: Any {
329 get
330 }
331}
332extension CreateML.MLDecisionTreeClassifier.ModelParameters {
333 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
334 public enum ValidationData {
335 case split(strategy: CreateML.MLSplitStrategy)
336 @available(macOS, introduced: 10.15, deprecated: 14.0)
337 @available(iOS, introduced: 15.0, deprecated: 17.0)
338 @available(tvOS, introduced: 16.0, deprecated: 17.0)
339 case table(CreateML.MLDataTable)
340 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
341 case dataFrame(TabularData.DataFrame)
342 case none
343 }
344}
345@available(*, unavailable)
346extension CreateML.MLDecisionTreeClassifier.ModelParameters.ValidationData : Swift.Sendable {
347}
348extension CreateML.MLDecisionTreeRegressor {
349 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
350 public struct ModelParameters {
351 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
352 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
353 @available(tvOS, unavailable)
354 public var validationData: CreateML.MLDataTable? {
355 get
356 set
357 }
358 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
359 public var validation: CreateML.MLDecisionTreeRegressor.ModelParameters.ValidationData {
360 get
361 set
362 }
363 public var maxDepth: Swift.Int
364 public var minLossReduction: Swift.Double
365 public var minChildWeight: Swift.Double
366 public var randomSeed: Swift.Int
367 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
368 public init(validation: CreateML.MLDecisionTreeRegressor.ModelParameters.ValidationData, maxDepth: Swift.Int = 6, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42)
369 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
370 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
371 @available(tvOS, unavailable)
372 public init(validationData: CreateML.MLDataTable? = nil, maxDepth: Swift.Int = 6, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42)
373 }
374}
375@available(*, unavailable)
376extension CreateML.MLDecisionTreeRegressor.ModelParameters : Swift.Sendable {
377}
378@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
379extension CreateML.MLDecisionTreeRegressor.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
380 public var description: Swift.String {
381 get
382 }
383 public var debugDescription: Swift.String {
384 get
385 }
386 public var playgroundDescription: Any {
387 get
388 }
389}
390@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
391public struct MLModelMetadata : Swift.Sendable {
392 public var author: Swift.String
393 public var shortDescription: Swift.String
394 public var license: Swift.String?
395 public var version: Swift.String
396 public var additional: [Swift.String : Swift.String]?
397 public init(author: Swift.String = NSFullUserName(), shortDescription: Swift.String = "A model trained using CreateML for use with CoreML.", license: Swift.String? = nil, version: Swift.String = "1", additional: [Swift.String : Swift.String]? = nil)
398}
399@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
400extension CreateML.MLDataTable {
401 public func write(to directoryURL: Foundation.URL) throws
402 public func write(toDirectory path: Swift.String) throws
403 public func writeCSV(to fileURL: Foundation.URL) throws
404 public func writeCSV(toFile path: Swift.String) throws
405}
406@available(macOS 10.14, iOS 15.0, *)
407@available(tvOS, unavailable)
408extension CreateML.MLImageClassifier {
409 public struct ModelParameters {
410 public var maxIterations: Swift.Int
411 public var augmentationOptions: CreateML.MLImageClassifier.ImageAugmentationOptions
412 @available(macOS 11.0, iOS 15.0, *)
413 @available(tvOS, unavailable)
414 public var algorithm: CreateML.MLImageClassifier.ModelParameters.ModelAlgorithmType {
415 get
416 set
417 }
418 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
419 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
420 @available(tvOS, unavailable)
421 public var validationData: [Swift.String : [Foundation.URL]]? {
422 get
423 set
424 }
425 @available(macOS 10.15, iOS 15.0, *)
426 @available(tvOS, unavailable)
427 public var validation: CreateML.MLImageClassifier.ModelParameters.ValidationData {
428 get
429 set
430 }
431 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use featureExtractor in ModelAlgorithmType instead.")
432 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use featureExtractor in ModelAlgorithmType instead.")
433 @available(tvOS, unavailable)
434 public var featureExtractor: CreateML.MLImageClassifier.FeatureExtractorType {
435 get
436 set
437 }
438 @available(macOS 11.0, iOS 15.0, *)
439 @available(tvOS, unavailable)
440 public init(validation: CreateML.MLImageClassifier.ModelParameters.ValidationData = __Defaults.validation, maxIterations: Swift.Int = __Defaults.maximumIterations, augmentation: CreateML.MLImageClassifier.ImageAugmentationOptions, algorithm: CreateML.MLImageClassifier.ModelParameters.ModelAlgorithmType = __Defaults.algorithm)
441 @available(macOS, introduced: 10.15, deprecated: 11.0, message: "Use featureExtractor in ModelAlgorithm Type instead.")
442 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use featureExtractor in ModelAlgorithm Type instead.")
443 @available(tvOS, unavailable)
444 public init(featureExtractor: CreateML.MLImageClassifier.FeatureExtractorType = .scenePrint(revision: 1), validation: CreateML.MLImageClassifier.ModelParameters.ValidationData = .split(strategy: .automatic), maxIterations: Swift.Int = 25, augmentationOptions: CreateML.MLImageClassifier.ImageAugmentationOptions = [])
445 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
446 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
447 @available(tvOS, unavailable)
448 public init(featureExtractor: CreateML.MLImageClassifier.FeatureExtractorType = .scenePrint(revision: 1), validationData: [Swift.String : [Foundation.URL]]?, maxIterations: Swift.Int = 25, augmentationOptions: CreateML.MLImageClassifier.ImageAugmentationOptions = [])
449 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
450 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
451 @available(tvOS, unavailable)
452 public init(featureExtractor: CreateML.MLImageClassifier.FeatureExtractorType = .scenePrint(revision: 1), validationData: CreateML.MLImageClassifier.DataSource, maxIterations: Swift.Int = 25, augmentationOptions: CreateML.MLImageClassifier.ImageAugmentationOptions = [])
453 }
454}
455@available(*, unavailable)
456extension CreateML.MLImageClassifier.ModelParameters : Swift.Sendable {
457}
458@available(macOS 10.14, iOS 15.0, *)
459@available(tvOS, unavailable)
460extension CreateML.MLImageClassifier.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
461 public var description: Swift.String {
462 get
463 }
464 public var debugDescription: Swift.String {
465 get
466 }
467 public var playgroundDescription: Any {
75@available(macOS 12.0, iOS 15.0, *)
76@available(tvOS, unavailable)
77public struct MLHandPoseClassifier {
78 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
79 public var model: CoreML::MLModel
80 public let modelParameters: CreateML::MLHandPoseClassifier.CreateML::ModelParameters
81 public var trainingMetrics: CreateML::MLClassifierMetrics
82 public var validationMetrics: CreateML::MLClassifierMetrics
83 public init(trainingData: CreateML::MLHandPoseClassifier.CreateML::DataSource, parameters: CreateML::MLHandPoseClassifier.CreateML::ModelParameters = ModelParameters()) throws
84 public init(checkpoint: CreateML::MLCheckpoint) throws
85 public static func train(trainingData: CreateML::MLHandPoseClassifier.CreateML::DataSource, parameters: CreateML::MLHandPoseClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLHandPoseClassifier>
86 public static func makeTrainingSession(trainingData: CreateML::MLHandPoseClassifier.CreateML::DataSource, parameters: CreateML::MLHandPoseClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLHandPoseClassifier>
87 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLHandPoseClassifier>
88 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLHandPoseClassifier>) throws -> CreateML::MLJob<CreateML::MLHandPoseClassifier>
89 public func prediction(from image: Foundation::URL) throws -> [(label: Swift::String, confidence: Swift::Double)]
90 public func predictions(from images: [Foundation::URL]) throws -> [[(label: Swift::String, confidence: Swift::Double)]]
91 public func evaluation(on annotatedImages: CreateML::MLHandPoseClassifier.CreateML::DataSource) throws -> CreateML::MLClassifierMetrics
92 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
93 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
94}
95@available(*, unavailable)
96extension CreateML::MLHandPoseClassifier : Swift::Sendable {
97}
98@available(macOS 12.0, iOS 15.0, *)
99@available(tvOS, unavailable)
100extension CreateML::MLHandPoseClassifier : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
101 public var description: Swift::String {
102 get
103 }
104 public var debugDescription: Swift::String {
105 get
106 }
107 public var playgroundDescription: Any {
108 get
109 }
110}
111extension CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters {
112 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
113 public enum ValidationData {
114 case split(strategy: CreateML::MLSplitStrategy)
115 @available(macOS, introduced: 10.15, deprecated: 14.0)
116 @available(iOS, introduced: 15.0, deprecated: 17.0)
117 @available(tvOS, introduced: 16.0, deprecated: 17.0)
118 case table(CreateML::MLDataTable)
119 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
120 case dataFrame(TabularData::DataFrame)
121 case none
122 }
123}
124@available(*, unavailable)
125extension CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters.CreateML::ValidationData : Swift::Sendable {
126}
127extension CreateML::MLImageClassifier {
128 @available(macOS 10.14, iOS 15.0, *)
129 @available(tvOS, unavailable)
130 public enum FeatureExtractorType : Swift::Sendable {
131 case scenePrint(revision: Swift::Int?)
132 @available(macOS 10.15, iOS 15.0, *)
133 @available(tvOS, unavailable)
134 case custom(CreateML::MLImageClassifier.CreateML::CustomFeatureExtractor)
135 }
136 @available(macOS 10.15, iOS 15.0, *)
137 @available(tvOS, unavailable)
138 public struct CustomFeatureExtractor : Swift::Sendable {
139 public var modelPath: Foundation::URL
140 public var outputName: Swift::String?
141 public init(modelPath: Foundation::URL, outputName: Swift::String? = nil)
142 }
143}
144@available(macOS 10.14, iOS 15.0, *)
145@available(tvOS, unavailable)
146extension CreateML::MLImageClassifier.CreateML::FeatureExtractorType : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
147 public var description: Swift::String {
148 get
149 }
150 public var debugDescription: Swift::String {
151 get
152 }
153 public var playgroundDescription: Any {
154 get
155 }
156}
157@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
158public let MLCreateErrorDomain: Swift::String
159@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
160public enum MLCreateError : Swift::Error, Swift::Sendable {
161 case generic(reason: Swift::String)
162 case type(reason: Swift::String)
163 case io(reason: Swift::String)
164 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
165 case cancelled
166 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
167 case incompatibleParameters(parameter: Swift::String, originalValue: Swift::String, newValue: Swift::String)
168 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
169 case modifiedTrainingData
170}
171@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
172extension CreateML::MLCreateError : Foundation::LocalizedError {
173 public var failureReason: Swift::String? {
174 get
175 }
176 public var errorDescription: Swift::String? {
177 get
178 }
179}
180@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
181extension CreateML::MLCreateError : Foundation::CustomNSError {
182 public static var errorDomain: Swift::String {
183 get
184 }
185 public var errorCode: Swift::Int {
186 get
187 }
188 public var errorUserInfo: [Swift::String : Any] {
189 get
190 }
191}
192@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
193extension CreateML::MLCreateError : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible {
194 public var description: Swift::String {
195 get
196 }
197 public var debugDescription: Swift::String {
198 get
199 }
200}
201@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
202public struct MLRandomForestRegressor : @unchecked Swift::Sendable {
203 public var model: CoreML::MLModel {
204 get
205 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
206 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
207 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
208 set
209 }
210 public var targetColumn: Swift::String
211 public var featureColumns: [Swift::String]
212 public let modelParameters: CreateML::MLRandomForestRegressor.CreateML::ModelParameters
213 public var trainingMetrics: CreateML::MLRegressorMetrics {
214 get
215 }
216 public var validationMetrics: CreateML::MLRegressorMetrics {
217 get
218 }
219 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
220 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
221 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
222 public init(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
223 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
224 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
225 @available(tvOS, unavailable)
226 public init(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestRegressor.CreateML::ModelParameters = ModelParameters(validationData: nil)) throws
227 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
228 public init(checkpoint: CreateML::MLCheckpoint) throws
229 @available(macOS, introduced: 12.0, deprecated: 14.0)
230 @available(iOS, introduced: 15.0, deprecated: 17.0)
231 @available(tvOS, introduced: 16.0, deprecated: 17.0)
232 public static func train(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLRandomForestRegressor>
233 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
234 public static func train(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestRegressor.CreateML::ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLRandomForestRegressor>
235 @available(macOS, introduced: 12.0, deprecated: 14.0)
236 @available(iOS, introduced: 15.0, deprecated: 17.0)
237 @available(tvOS, introduced: 16.0, deprecated: 17.0)
238 public static func makeTrainingSession(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLRandomForestRegressor>
239 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
240 public static func makeTrainingSession(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestRegressor.CreateML::ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLRandomForestRegressor>
241 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
242 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLRandomForestRegressor>
243 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
244 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLRandomForestRegressor>) throws -> CreateML::MLJob<CreateML::MLRandomForestRegressor>
245 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
246 public func predictions(from data: TabularData::DataFrame) throws -> TabularData::AnyColumn
247 @available(macOS, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
248 @available(iOS, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
249 @available(tvOS, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
250 public func predictions(from data: CreateML::MLDataTable) throws -> CreateML::MLUntypedColumn
251 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
252 public func evaluation(on labeledData: TabularData::DataFrame) -> CreateML::MLRegressorMetrics
253 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
254 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
255 @available(tvOS, unavailable)
256 public func evaluation(on labeledData: CreateML::MLDataTable) -> CreateML::MLRegressorMetrics
257 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
258 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
259}
260@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
261extension CreateML::MLRandomForestRegressor : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
262 public var description: Swift::String {
263 get
264 }
265 public var debugDescription: Swift::String {
266 get
267 }
268 public var playgroundDescription: Any {
269 get
270 }
271}
272extension CreateML::MLImageClassifier.CreateML::ModelParameters {
273 @available(macOS 10.15, iOS 15.0, *)
274 @available(tvOS, unavailable)
275 public enum ValidationData : Swift::Sendable {
276 case split(strategy: CreateML::MLSplitStrategy)
277 case dataSource(CreateML::MLImageClassifier.CreateML::DataSource)
278 @available(macOS, introduced: 10.15, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary validation data instead.")
279 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary validation data instead.")
280 @available(tvOS, unavailable)
281 case dictionary([Swift::String : [Foundation::URL]])
282 case none
283 }
284}
285extension CreateML::MLDataTable {
286 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
287 public struct ColumnNames : Swift::RandomAccessCollection {
288 public var startIndex: Swift::Int {
289 get
290 }
291 public var endIndex: Swift::Int {
292 get
293 }
294 public subscript(i: Swift::Int) -> Swift::String {
295 get
296 }
297 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
298 public typealias Element = Swift::String
299 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
300 public typealias Index = Swift::Int
301 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
302 public typealias Indices = Swift::Range<Swift::Int>
303 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
304 public typealias Iterator = Swift::IndexingIterator<CreateML::MLDataTable.CreateML::ColumnNames>
305 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
306 public typealias SubSequence = Swift::Slice<CreateML::MLDataTable.CreateML::ColumnNames>
307 }
308 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
309 public var columnNames: CreateML::MLDataTable.CreateML::ColumnNames {
310 get
311 }
312}
313@available(*, unavailable)
314extension CreateML::MLDataTable.CreateML::ColumnNames : Swift::Sendable {
315}
316@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
317extension CreateML::MLDataTable.CreateML::ColumnNames : Swift::Equatable {
318 public static func == (lhs: CreateML::MLDataTable.CreateML::ColumnNames, rhs: CreateML::MLDataTable.CreateML::ColumnNames) -> Swift::Bool
319}
320@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
321extension CreateML::MLDataTable.CreateML::ColumnNames : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
322 public var description: Swift::String {
323 get
324 }
325 public var debugDescription: Swift::String {
326 get
327 }
328 public var playgroundDescription: Any {
329 get
330 }
331}
332extension CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters {
333 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
334 public enum ValidationData {
335 case split(strategy: CreateML::MLSplitStrategy)
336 @available(macOS, introduced: 10.15, deprecated: 14.0)
337 @available(iOS, introduced: 15.0, deprecated: 17.0)
338 @available(tvOS, introduced: 16.0, deprecated: 17.0)
339 case table(CreateML::MLDataTable)
340 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
341 case dataFrame(TabularData::DataFrame)
342 case none
343 }
344}
345@available(*, unavailable)
346extension CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters.CreateML::ValidationData : Swift::Sendable {
347}
348extension CreateML::MLDecisionTreeRegressor {
349 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
350 public struct ModelParameters {
351 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
352 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
353 @available(tvOS, unavailable)
354 public var validationData: CreateML::MLDataTable? {
355 get
356 set
357 }
358 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
359 public var validation: CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters.CreateML::ValidationData {
360 get
361 set
362 }
363 public var maxDepth: Swift::Int
364 public var minLossReduction: Swift::Double
365 public var minChildWeight: Swift::Double
366 public var randomSeed: Swift::Int
367 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
368 public init(validation: CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters.CreateML::ValidationData, maxDepth: Swift::Int = 6, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42)
369 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
370 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
371 @available(tvOS, unavailable)
372 public init(validationData: CreateML::MLDataTable? = nil, maxDepth: Swift::Int = 6, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42)
373 }
374}
375@available(*, unavailable)
376extension CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters : Swift::Sendable {
377}
378@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
379extension CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
380 public var description: Swift::String {
381 get
382 }
383 public var debugDescription: Swift::String {
384 get
385 }
386 public var playgroundDescription: Any {
387 get
388 }
389}
390@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
391public struct MLModelMetadata : Swift::Sendable {
392 public var author: Swift::String
393 public var shortDescription: Swift::String
394 public var license: Swift::String?
395 public var version: Swift::String
396 public var additional: [Swift::String : Swift::String]?
397 public init(author: Swift::String = NSFullUserName(), shortDescription: Swift::String = "A model trained using CreateML for use with CoreML.", license: Swift::String? = nil, version: Swift::String = "1", additional: [Swift::String : Swift::String]? = nil)
398}
399@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
400extension CreateML::MLDataTable {
401 public func write(to directoryURL: Foundation::URL) throws
402 public func write(toDirectory path: Swift::String) throws
403 public func writeCSV(to fileURL: Foundation::URL) throws
404 public func writeCSV(toFile path: Swift::String) throws
405}
406@available(macOS 10.14, iOS 15.0, *)
407@available(tvOS, unavailable)
408extension CreateML::MLImageClassifier {
409 public struct ModelParameters {
410 public var maxIterations: Swift::Int
411 public var augmentationOptions: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions
412 @available(macOS 11.0, iOS 15.0, *)
413 @available(tvOS, unavailable)
414 public var algorithm: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType {
415 get
416 set
417 }
418 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
419 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
420 @available(tvOS, unavailable)
421 public var validationData: [Swift::String : [Foundation::URL]]? {
422 get
423 set
424 }
425 @available(macOS 10.15, iOS 15.0, *)
426 @available(tvOS, unavailable)
427 public var validation: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ValidationData {
428 get
429 set
430 }
431 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use featureExtractor in ModelAlgorithmType instead.")
432 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use featureExtractor in ModelAlgorithmType instead.")
433 @available(tvOS, unavailable)
434 public var featureExtractor: CreateML::MLImageClassifier.CreateML::FeatureExtractorType {
435 get
436 set
437 }
438 @available(macOS 11.0, iOS 15.0, *)
439 @available(tvOS, unavailable)
440 public init(validation: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ValidationData = __Defaults.validation, maxIterations: Swift::Int = __Defaults.maximumIterations, augmentation: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions, algorithm: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType = __Defaults.algorithm)
441 @available(macOS, introduced: 10.15, deprecated: 11.0, message: "Use featureExtractor in ModelAlgorithm Type instead.")
442 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use featureExtractor in ModelAlgorithm Type instead.")
443 @available(tvOS, unavailable)
444 public init(featureExtractor: CreateML::MLImageClassifier.CreateML::FeatureExtractorType = .scenePrint(revision: 1), validation: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ValidationData = .split(strategy: .automatic), maxIterations: Swift::Int = 25, augmentationOptions: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions = [])
445 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
446 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
447 @available(tvOS, unavailable)
448 public init(featureExtractor: CreateML::MLImageClassifier.CreateML::FeatureExtractorType = .scenePrint(revision: 1), validationData: [Swift::String : [Foundation::URL]]?, maxIterations: Swift::Int = 25, augmentationOptions: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions = [])
449 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
450 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
451 @available(tvOS, unavailable)
452 public init(featureExtractor: CreateML::MLImageClassifier.CreateML::FeatureExtractorType = .scenePrint(revision: 1), validationData: CreateML::MLImageClassifier.CreateML::DataSource, maxIterations: Swift::Int = 25, augmentationOptions: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions = [])
453 }
454}
455@available(*, unavailable)
456extension CreateML::MLImageClassifier.CreateML::ModelParameters : Swift::Sendable {
457}
458@available(macOS 10.14, iOS 15.0, *)
459@available(tvOS, unavailable)
460extension CreateML::MLImageClassifier.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
461 public var description: Swift::String {
462 get
463 }
464 public var debugDescription: Swift::String {
465 get
466 }
467 public var playgroundDescription: Any {
… 2 unchanged lines …
470}
471@available(macOS 12.0, iOS 15.0, *)
472@available(tvOS, unavailable)
473extension CreateML.MLHandActionClassifier {
474 public struct ModelParameters {
475 public var validation: CreateML.MLHandActionClassifier.ModelParameters.ValidationData
476 public var batchSize: Swift.Int
477 public var maximumIterations: Swift.Int
478 public var predictionWindowSize: Swift.Int
479 public var augmentationOptions: CreateML.MLHandActionClassifier.VideoAugmentationOptions
480 public var algorithm: CreateML.MLHandActionClassifier.ModelParameters.ModelAlgorithmType
481 public var targetFrameRate: Swift.Double
482 public init(validation: CreateML.MLHandActionClassifier.ModelParameters.ValidationData = .split(strategy: .automatic), batchSize: Swift.Int = MLHandActionClassifier.__Defaults.batchSize, maximumIterations: Swift.Int = MLHandActionClassifier.__Defaults.maximumIterations, predictionWindowSize: Swift.Int = MLHandActionClassifier.__Defaults.predictionWindowSize, augmentationOptions: CreateML.MLHandActionClassifier.VideoAugmentationOptions = [], algorithm: CreateML.MLHandActionClassifier.ModelParameters.ModelAlgorithmType = .gcn, targetFrameRate: Swift.Double = MLHandActionClassifier.__Defaults.targetFrameRate)
483 public enum ModelAlgorithmType : Swift.Equatable, Swift.Sendable {
484 case gcn
485 public static func == (a: CreateML.MLHandActionClassifier.ModelParameters.ModelAlgorithmType, b: CreateML.MLHandActionClassifier.ModelParameters.ModelAlgorithmType) -> Swift.Bool
486 public func hash(into hasher: inout Swift.Hasher)
487 public var hashValue: Swift.Int {
488 get
489 }
490 }
491 public enum ValidationData {
492 case split(strategy: CreateML.MLSplitStrategy)
493 case dataSource(CreateML.MLHandActionClassifier.DataSource)
494 case none
495 }
496 }
497}
498@available(*, unavailable)
499extension CreateML.MLHandActionClassifier.ModelParameters : Swift.Sendable {
500}
501@available(*, unavailable)
502extension CreateML.MLHandActionClassifier.ModelParameters.ValidationData : Swift.Sendable {
503}
504@available(macOS 12.0, iOS 15.0, *)
505@available(tvOS, unavailable)
506extension CreateML.MLHandActionClassifier.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
507 public var description: Swift.String {
508 get
509 }
510 public var debugDescription: Swift.String {
511 get
512 }
513 public var playgroundDescription: Any {
514 get
515 }
516}
517@available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
518public enum MLSplitStrategy : Swift.Sendable {
519 case automatic
520 case fixed(ratio: Swift.Double, seed: Swift.Int?)
521 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
522 public func resolve(count: Swift.Int) -> (ratio: Swift.Double, seed: Swift.Int)
523}
524extension CreateML.MLDataTable {
525 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
526 public init(contentsOf url: Foundation.URL, options: CreateML.MLDataTable.ParsingOptions = ParsingOptions()) throws
527 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
528 public struct ParsingOptions : Swift.Sendable {
529 public var containsHeader: Swift.Bool
530 public var delimiter: Swift.String
531 public var comment: Swift.String
532 public var escape: Swift.String
533 public var doubleQuote: Swift.Bool
534 public var quote: Swift.String
535 public var skipInitialSpaces: Swift.Bool
536 public var missingValues: [Swift.String]
537 public var lineTerminator: Swift.String
538 public var selectColumns: [Swift.String]?
539 public var maxRows: Swift.Int?
540 public var skipRows: Swift.Int
541 public init(containsHeader: Swift.Bool = true, delimiter: Swift.String = ",", comment: Swift.String = "", escape: Swift.String = "\\", doubleQuote: Swift.Bool = true, quote: Swift.String = "\"", skipInitialSpaces: Swift.Bool = true, missingValues: [Swift.String] = ["NA"], lineTerminator: Swift.String = "\n", selectColumns: [Swift.String]? = nil, maxRows: Swift.Int? = nil, skipRows: Swift.Int = 0)
542 }
543}
544extension CreateML.MLLogisticRegressionClassifier {
545 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
546 public struct ModelParameters {
547 public var maxIterations: Swift.Int
548 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
549 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
550 @available(tvOS, unavailable)
551 public var validationData: CreateML.MLDataTable? {
552 get
553 set
554 }
555 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
556 public var validation: CreateML.MLLogisticRegressionClassifier.ModelParameters.ValidationData {
557 get
558 set
559 }
560 public var l1Penalty: Swift.Double
561 public var l2Penalty: Swift.Double
562 public var stepSize: Swift.Double
563 public var convergenceThreshold: Swift.Double
564 public var featureRescaling: Swift.Bool
565 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
566 public init(validation: CreateML.MLLogisticRegressionClassifier.ModelParameters.ValidationData = .split(strategy: .automatic), maxIterations: Swift.Int = 10, l1Penalty: Swift.Double = 0, l2Penalty: Swift.Double = 0.01, stepSize: Swift.Double = 1.0, convergenceThreshold: Swift.Double = 0.01, featureRescaling: Swift.Bool = true)
567 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
568 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
569 @available(tvOS, unavailable)
570 public init(validationData: CreateML.MLDataTable?, maxIterations: Swift.Int = 10, l1Penalty: Swift.Double = 0, l2Penalty: Swift.Double = 0.01, stepSize: Swift.Double = 1.0, convergenceThreshold: Swift.Double = 0.01, featureRescaling: Swift.Bool = true)
571 }
572}
573@available(*, unavailable)
574extension CreateML.MLLogisticRegressionClassifier.ModelParameters : Swift.Sendable {
575}
576@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
577extension CreateML.MLLogisticRegressionClassifier.ModelParameters : Swift.CustomStringConvertible {
578 public var description: Swift.String {
579 get
580 }
581}
582@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
583extension CreateML.MLLogisticRegressionClassifier.ModelParameters : Swift.CustomDebugStringConvertible {
584 public var debugDescription: Swift.String {
585 get
586 }
587}
588@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
589extension CreateML.MLLogisticRegressionClassifier.ModelParameters : Swift.CustomPlaygroundDisplayConvertible {
590 public var playgroundDescription: Any {
591 get
592 }
593}
594extension CreateML.MLRandomForestRegressor {
595 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
596 public struct ModelParameters {
597 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
598 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
599 @available(tvOS, unavailable)
600 public var validationData: CreateML.MLDataTable? {
601 get
602 set
603 }
604 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
605 public var validation: CreateML.MLRandomForestRegressor.ModelParameters.ValidationData {
606 get
607 set
608 }
609 public var maxDepth: Swift.Int
610 public var maxIterations: Swift.Int
611 public var minLossReduction: Swift.Double
612 public var minChildWeight: Swift.Double
613 public var randomSeed: Swift.Int
614 public var rowSubsample: Swift.Double
615 public var columnSubsample: Swift.Double
616 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
617 public init(validation: CreateML.MLRandomForestRegressor.ModelParameters.ValidationData, maxDepth: Swift.Int = 6, maxIterations: Swift.Int = 10, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42, rowSubsample: Swift.Double = 0.8, columnSubsample: Swift.Double = 0.8)
618 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
619 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
620 @available(tvOS, unavailable)
621 public init(validationData: CreateML.MLDataTable? = nil, maxDepth: Swift.Int = 6, maxIterations: Swift.Int = 10, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42, rowSubsample: Swift.Double = 0.8, columnSubsample: Swift.Double = 0.8)
622 }
623}
624@available(*, unavailable)
625extension CreateML.MLRandomForestRegressor.ModelParameters : Swift.Sendable {
626}
627@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
628extension CreateML.MLRandomForestRegressor.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
629 public var description: Swift.String {
630 get
631 }
632 public var debugDescription: Swift.String {
633 get
634 }
635 public var playgroundDescription: Any {
636 get
637 }
638}
639extension CreateML.MLImageClassifier {
640 @available(macOS 10.14, iOS 15.0, *)
641 @available(tvOS, unavailable)
642 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
643 @available(macOS 10.14, iOS 15.0, *)
644 @available(tvOS, unavailable)
645 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
646}
647@available(macOS 10.15, iOS 15.0, *)
648@available(tvOS, unavailable)
649extension CreateML.MLSoundClassifier {
650 public struct ModelParameters {
651 public var validation: CreateML.MLSoundClassifier.ModelParameters.ValidationData
652 public var maxIterations: Swift.Int
653 public var overlapFactor: Swift.Double
654 @available(macOS 11.0, iOS 15.0, *)
655 @available(tvOS, unavailable)
656 public var algorithm: CreateML.MLSoundClassifier.ModelParameters.ModelAlgorithmType {
657 get
658 set
659 }
660 @available(macOS 12.0, iOS 15.0, *)
661 @available(tvOS, unavailable)
662 public var featureExtractionTimeWindowSize: Foundation.TimeInterval {
663 get
664 set
665 }
666 @available(macOS 11.0, iOS 15.0, *)
667 @available(tvOS, unavailable)
668 public init(validation: CreateML.MLSoundClassifier.ModelParameters.ValidationData = __Defaults.validation, maxIterations: Swift.Int = __Defaults.maximumIterations, overlapFactor: Swift.Double = __Defaults.overlapFactor, algorithm: CreateML.MLSoundClassifier.ModelParameters.ModelAlgorithmType = __Defaults.algorithm)
669 public init(validation: CreateML.MLSoundClassifier.ModelParameters.ValidationData = .split(strategy: .automatic), maxIterations: Swift.Int = 25, overlapFactor: Swift.Double = 0.5)
670 @available(macOS 12.0, iOS 15.0, *)
671 @available(tvOS, unavailable)
672 public init(validation: CreateML.MLSoundClassifier.ModelParameters.ValidationData = __Defaults.validation, maxIterations: Swift.Int = __Defaults.maximumIterations, overlapFactor: Swift.Double = __Defaults.overlapFactor, algorithm: CreateML.MLSoundClassifier.ModelParameters.ModelAlgorithmType = __Defaults.algorithm, featureExtractionTimeWindowSize: Foundation.TimeInterval = __Defaults.defaultVGGishTimeWindow)
673 @available(macOS 12.0, iOS 15.0, *)
674 @available(tvOS, unavailable)
675 public enum FeaturePrintType : Swift.Equatable, Swift.CustomStringConvertible, Swift.Sendable {
676 case sound
677 public var description: Swift.String {
678 get
679 }
680 public static func == (a: CreateML.MLSoundClassifier.ModelParameters.FeaturePrintType, b: CreateML.MLSoundClassifier.ModelParameters.FeaturePrintType) -> Swift.Bool
681 public func hash(into hasher: inout Swift.Hasher)
682 public var hashValue: Swift.Int {
683 get
684 }
685 }
686 }
687}
688@available(*, unavailable)
689extension CreateML.MLSoundClassifier.ModelParameters : Swift.Sendable {
690}
691@available(macOS 10.15, iOS 15.0, *)
692@available(tvOS, unavailable)
693extension CreateML.MLSoundClassifier.ModelParameters : Swift.CustomStringConvertible {
694 public var description: Swift.String {
695 get
696 }
697}
698@available(macOS 10.15, iOS 15.0, *)
699@available(tvOS, unavailable)
700extension CreateML.MLSoundClassifier.ModelParameters : Swift.CustomDebugStringConvertible {
701 public var debugDescription: Swift.String {
702 get
703 }
704}
705@available(macOS 10.15, iOS 15.0, *)
706@available(tvOS, unavailable)
707extension CreateML.MLSoundClassifier.ModelParameters : Swift.CustomPlaygroundDisplayConvertible {
708 public var playgroundDescription: Any {
709 get
710 }
711}
712@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
713extension CreateML.MLDataTable {
714 public var rows: CreateML.MLDataTable.Rows {
715 get
716 }
717 public struct Rows {
718 }
719}
720@available(*, unavailable)
721extension CreateML.MLDataTable.Rows : Swift.Sendable {
722}
723@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
724extension CreateML.MLDataTable.Rows : Swift.RandomAccessCollection {
725 public typealias Element = CreateML.MLDataTable.Row
726 public subscript(index: Swift.Int) -> CreateML.MLDataTable.Rows.Element {
727 get
728 }
729 public var startIndex: Swift.Int {
730 get
731 }
732 public var endIndex: Swift.Int {
733 get
734 }
735 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
736 public typealias Index = Swift.Int
737 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
738 public typealias Indices = Swift.Range<Swift.Int>
739 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
740 public typealias Iterator = Swift.IndexingIterator<CreateML.MLDataTable.Rows>
741 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
742 public typealias SubSequence = Swift.Slice<CreateML.MLDataTable.Rows>
743}
744@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
745extension CreateML.MLDataTable.Rows : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
746 public var description: Swift.String {
747 get
748 }
749 public var debugDescription: Swift.String {
750 get
751 }
752 public var playgroundDescription: Any {
753 get
754 }
755}
756@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
757public struct MLLogisticRegressionClassifier : @unchecked Swift.Sendable {
758 public var model: CoreML.MLModel {
759 get
760 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
761 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
762 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
763 set
764 }
765 public var targetColumn: Swift.String
766 public var featureColumns: [Swift.String]
767 public let modelParameters: CreateML.MLLogisticRegressionClassifier.ModelParameters
768 public var trainingMetrics: CreateML.MLClassifierMetrics {
769 get
770 }
771 public var validationMetrics: CreateML.MLClassifierMetrics {
772 get
773 }
774 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
775 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
776 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
777 public init(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLogisticRegressionClassifier.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
778 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
779 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
780 @available(tvOS, unavailable)
781 public init(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLogisticRegressionClassifier.ModelParameters = ModelParameters(validationData: nil)) throws
782 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
783 public init(checkpoint: CreateML.MLCheckpoint) throws
784 @available(macOS, introduced: 12.0, deprecated: 14.0)
785 @available(iOS, introduced: 15.0, deprecated: 17.0)
786 @available(tvOS, introduced: 16.0, deprecated: 17.0)
787 public static func train(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLogisticRegressionClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLLogisticRegressionClassifier>
788 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
789 public static func train(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLogisticRegressionClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLLogisticRegressionClassifier>
790 @available(macOS, introduced: 12.0, deprecated: 14.0)
791 @available(iOS, introduced: 15.0, deprecated: 17.0)
792 @available(tvOS, introduced: 16.0, deprecated: 17.0)
793 public static func makeTrainingSession(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLogisticRegressionClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLLogisticRegressionClassifier>
794 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
795 public static func makeTrainingSession(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLogisticRegressionClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLLogisticRegressionClassifier>
796 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
797 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLLogisticRegressionClassifier>
798 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
799 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLLogisticRegressionClassifier>) throws -> CreateML.MLJob<CreateML.MLLogisticRegressionClassifier>
800 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
801 public func predictions(from data: TabularData.DataFrame) throws -> TabularData.AnyColumn
802 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
803 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
804 @available(tvOS, unavailable)
805 public func predictions(from data: CreateML.MLDataTable) throws -> CreateML.MLUntypedColumn
806 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
807 public func evaluation(on labeledData: TabularData.DataFrame) -> CreateML.MLClassifierMetrics
808 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
809 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
810 @available(tvOS, unavailable)
811 public func evaluation(on labeledData: CreateML.MLDataTable) -> CreateML.MLClassifierMetrics
812 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
813 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
814}
815@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
816extension CreateML.MLLogisticRegressionClassifier : Swift.CustomStringConvertible {
817 public var description: Swift.String {
818 get
819 }
820}
821@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
822extension CreateML.MLLogisticRegressionClassifier : Swift.CustomDebugStringConvertible {
823 public var debugDescription: Swift.String {
824 get
825 }
826}
827@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
828extension CreateML.MLLogisticRegressionClassifier : Swift.CustomPlaygroundDisplayConvertible {
829 public var playgroundDescription: Any {
830 get
831 }
832}
833@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
834extension CreateML.MLDataColumn {
835 public static func == (a: CreateML.MLDataColumn<Element>, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
836 public static func != (a: CreateML.MLDataColumn<Element>, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
837 public static func > (a: CreateML.MLDataColumn<Element>, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
838 public static func < (a: CreateML.MLDataColumn<Element>, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
839 public static func >= (a: CreateML.MLDataColumn<Element>, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
840 public static func <= (a: CreateML.MLDataColumn<Element>, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
841 public static func == (a: CreateML.MLDataColumn<Element>, b: Element) -> CreateML.MLDataColumn<Swift.Bool>
842 public static func != (a: CreateML.MLDataColumn<Element>, b: Element) -> CreateML.MLDataColumn<Swift.Bool>
843 public static func > (a: CreateML.MLDataColumn<Element>, b: Element) -> CreateML.MLDataColumn<Swift.Bool>
844 public static func < (a: CreateML.MLDataColumn<Element>, b: Element) -> CreateML.MLDataColumn<Swift.Bool>
845 public static func >= (a: CreateML.MLDataColumn<Element>, b: Element) -> CreateML.MLDataColumn<Swift.Bool>
846 public static func <= (a: CreateML.MLDataColumn<Element>, b: Element) -> CreateML.MLDataColumn<Swift.Bool>
847 public static func == (a: Element, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
848 public static func != (a: Element, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
849 public static func > (a: Element, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
850 public static func < (a: Element, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
851 public static func >= (a: Element, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
852 public static func <= (a: Element, b: CreateML.MLDataColumn<Element>) -> CreateML.MLDataColumn<Swift.Bool>
853}
854@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
855extension CreateML.MLDataColumn where Element == Swift.Int {
856 public static func + (a: CreateML.MLDataColumn<Swift.Int>, b: CreateML.MLDataColumn<Swift.Int>) -> CreateML.MLDataColumn<Swift.Int>
857 public static func - (a: CreateML.MLDataColumn<Swift.Int>, b: CreateML.MLDataColumn<Swift.Int>) -> CreateML.MLDataColumn<Swift.Int>
858 public static func * (a: CreateML.MLDataColumn<Swift.Int>, b: CreateML.MLDataColumn<Swift.Int>) -> CreateML.MLDataColumn<Swift.Int>
859 public static func / (a: CreateML.MLDataColumn<Swift.Int>, b: CreateML.MLDataColumn<Swift.Int>) -> CreateML.MLDataColumn<Swift.Int>
860 public static func + (a: Swift.Int, b: CreateML.MLDataColumn<Swift.Int>) -> CreateML.MLDataColumn<Swift.Int>
861 public static func - (a: Swift.Int, b: CreateML.MLDataColumn<Swift.Int>) -> CreateML.MLDataColumn<Swift.Int>
862 public static func * (a: Swift.Int, b: CreateML.MLDataColumn<Swift.Int>) -> CreateML.MLDataColumn<Swift.Int>
863 public static func / (a: Swift.Int, b: CreateML.MLDataColumn<Swift.Int>) -> CreateML.MLDataColumn<Swift.Int>
864 public static func + (a: CreateML.MLDataColumn<Swift.Int>, b: Swift.Int) -> CreateML.MLDataColumn<Swift.Int>
865 public static func - (a: CreateML.MLDataColumn<Swift.Int>, b: Swift.Int) -> CreateML.MLDataColumn<Swift.Int>
866 public static func * (a: CreateML.MLDataColumn<Swift.Int>, b: Swift.Int) -> CreateML.MLDataColumn<Swift.Int>
867 public static func / (a: CreateML.MLDataColumn<Swift.Int>, b: Swift.Int) -> CreateML.MLDataColumn<Swift.Int>
868}
869@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
870extension CreateML.MLDataColumn where Element == Swift.Double {
871 public static func + (a: CreateML.MLDataColumn<Swift.Double>, b: CreateML.MLDataColumn<Swift.Double>) -> CreateML.MLDataColumn<Swift.Double>
872 public static func - (a: CreateML.MLDataColumn<Swift.Double>, b: CreateML.MLDataColumn<Swift.Double>) -> CreateML.MLDataColumn<Swift.Double>
873 public static func * (a: CreateML.MLDataColumn<Swift.Double>, b: CreateML.MLDataColumn<Swift.Double>) -> CreateML.MLDataColumn<Swift.Double>
874 public static func / (a: CreateML.MLDataColumn<Swift.Double>, b: CreateML.MLDataColumn<Swift.Double>) -> CreateML.MLDataColumn<Swift.Double>
875 public static func + (a: Swift.Double, b: CreateML.MLDataColumn<Swift.Double>) -> CreateML.MLDataColumn<Swift.Double>
876 public static func - (a: Swift.Double, b: CreateML.MLDataColumn<Swift.Double>) -> CreateML.MLDataColumn<Swift.Double>
877 public static func * (a: Swift.Double, b: CreateML.MLDataColumn<Swift.Double>) -> CreateML.MLDataColumn<Swift.Double>
878 public static func / (a: Swift.Double, b: CreateML.MLDataColumn<Swift.Double>) -> CreateML.MLDataColumn<Swift.Double>
879 public static func + (a: CreateML.MLDataColumn<Swift.Double>, b: Swift.Double) -> CreateML.MLDataColumn<Swift.Double>
880 public static func - (a: CreateML.MLDataColumn<Swift.Double>, b: Swift.Double) -> CreateML.MLDataColumn<Swift.Double>
881 public static func * (a: CreateML.MLDataColumn<Swift.Double>, b: Swift.Double) -> CreateML.MLDataColumn<Swift.Double>
882 public static func / (a: CreateML.MLDataColumn<Swift.Double>, b: Swift.Double) -> CreateML.MLDataColumn<Swift.Double>
883}
884@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
885extension CreateML.MLDataColumn where Element == Swift.Bool {
886 public static func || (a: CreateML.MLDataColumn<Swift.Bool>, b: CreateML.MLDataColumn<Swift.Bool>) -> CreateML.MLDataColumn<Swift.Bool>
887 public static func && (a: CreateML.MLDataColumn<Swift.Bool>, b: CreateML.MLDataColumn<Swift.Bool>) -> CreateML.MLDataColumn<Swift.Bool>
888}
889@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
890public struct MLDecisionTreeRegressor : @unchecked Swift.Sendable {
891 public var model: CoreML.MLModel {
892 get
893 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
894 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
895 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
896 set
897 }
898 public var targetColumn: Swift.String
899 public var featureColumns: [Swift.String]
900 public let modelParameters: CreateML.MLDecisionTreeRegressor.ModelParameters
901 public var trainingMetrics: CreateML.MLRegressorMetrics {
902 get
903 }
904 public var validationMetrics: CreateML.MLRegressorMetrics {
905 get
906 }
907 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
908 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
909 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
910 public init(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
911 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
912 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
913 @available(tvOS, unavailable)
914 public init(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeRegressor.ModelParameters = ModelParameters(validationData: nil)) throws
915 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
916 public init(checkpoint: CreateML.MLCheckpoint) throws
917 @available(macOS, introduced: 12.0, deprecated: 14.0)
918 @available(iOS, introduced: 15.0, deprecated: 17.0)
919 @available(tvOS, introduced: 16.0, deprecated: 17.0)
920 public static func train(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLDecisionTreeRegressor>
921 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
922 public static func train(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeRegressor.ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLDecisionTreeRegressor>
923 @available(macOS, introduced: 12.0, deprecated: 14.0)
924 @available(iOS, introduced: 15.0, deprecated: 17.0)
925 @available(tvOS, introduced: 16.0, deprecated: 17.0)
926 public static func makeTrainingSession(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLDecisionTreeRegressor>
927 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
928 public static func makeTrainingSession(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeRegressor.ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLDecisionTreeRegressor>
929 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
930 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLDecisionTreeRegressor>
931 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
932 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLDecisionTreeRegressor>) throws -> CreateML.MLJob<CreateML.MLDecisionTreeRegressor>
933 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
934 public func predictions(from data: TabularData.DataFrame) throws -> TabularData.AnyColumn
935 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
936 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
937 @available(tvOS, unavailable)
938 public func predictions(from data: CreateML.MLDataTable) throws -> CreateML.MLUntypedColumn
939 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
940 public func evaluation(on labeledData: TabularData.DataFrame) -> CreateML.MLRegressorMetrics
941 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
942 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
943 @available(tvOS, unavailable)
944 public func evaluation(on labeledData: CreateML.MLDataTable) -> CreateML.MLRegressorMetrics
945 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
946 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
947}
948@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
949extension CreateML.MLDecisionTreeRegressor : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
950 public var description: Swift.String {
951 get
952 }
953 public var debugDescription: Swift.String {
954 get
955 }
956 public var playgroundDescription: Any {
470}
471@available(macOS 12.0, iOS 15.0, *)
472@available(tvOS, unavailable)
473extension CreateML::MLHandActionClassifier {
474 public struct ModelParameters {
475 public var validation: CreateML::MLHandActionClassifier.CreateML::ModelParameters.CreateML::ValidationData
476 public var batchSize: Swift::Int
477 public var maximumIterations: Swift::Int
478 public var predictionWindowSize: Swift::Int
479 public var augmentationOptions: CreateML::MLHandActionClassifier.CreateML::VideoAugmentationOptions
480 public var algorithm: CreateML::MLHandActionClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType
481 public var targetFrameRate: Swift::Double
482 public init(validation: CreateML::MLHandActionClassifier.CreateML::ModelParameters.CreateML::ValidationData = .split(strategy: .automatic), batchSize: Swift::Int = MLHandActionClassifier.__Defaults.batchSize, maximumIterations: Swift::Int = MLHandActionClassifier.__Defaults.maximumIterations, predictionWindowSize: Swift::Int = MLHandActionClassifier.__Defaults.predictionWindowSize, augmentationOptions: CreateML::MLHandActionClassifier.CreateML::VideoAugmentationOptions = [], algorithm: CreateML::MLHandActionClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType = .gcn, targetFrameRate: Swift::Double = MLHandActionClassifier.__Defaults.targetFrameRate)
483 public enum ModelAlgorithmType : Swift::Equatable, Swift::Sendable {
484 case gcn
485 public static func == (a: CreateML::MLHandActionClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType, b: CreateML::MLHandActionClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType) -> Swift::Bool
486 public func hash(into hasher: inout Swift::Hasher)
487 public var hashValue: Swift::Int {
488 get
489 }
490 }
491 public enum ValidationData {
492 case split(strategy: CreateML::MLSplitStrategy)
493 case dataSource(CreateML::MLHandActionClassifier.CreateML::DataSource)
494 case none
495 }
496 }
497}
498@available(*, unavailable)
499extension CreateML::MLHandActionClassifier.CreateML::ModelParameters : Swift::Sendable {
500}
501@available(*, unavailable)
502extension CreateML::MLHandActionClassifier.CreateML::ModelParameters.CreateML::ValidationData : Swift::Sendable {
503}
504@available(macOS 12.0, iOS 15.0, *)
505@available(tvOS, unavailable)
506extension CreateML::MLHandActionClassifier.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
507 public var description: Swift::String {
508 get
509 }
510 public var debugDescription: Swift::String {
511 get
512 }
513 public var playgroundDescription: Any {
514 get
515 }
516}
517@available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
518public enum MLSplitStrategy : Swift::Sendable {
519 case automatic
520 case fixed(ratio: Swift::Double, seed: Swift::Int?)
521 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
522 public func resolve(count: Swift::Int) -> (ratio: Swift::Double, seed: Swift::Int)
523}
524extension CreateML::MLDataTable {
525 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
526 public init(contentsOf url: Foundation::URL, options: CreateML::MLDataTable.CreateML::ParsingOptions = ParsingOptions()) throws
527 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
528 public struct ParsingOptions : Swift::Sendable {
529 public var containsHeader: Swift::Bool
530 public var delimiter: Swift::String
531 public var comment: Swift::String
532 public var escape: Swift::String
533 public var doubleQuote: Swift::Bool
534 public var quote: Swift::String
535 public var skipInitialSpaces: Swift::Bool
536 public var missingValues: [Swift::String]
537 public var lineTerminator: Swift::String
538 public var selectColumns: [Swift::String]?
539 public var maxRows: Swift::Int?
540 public var skipRows: Swift::Int
541 public init(containsHeader: Swift::Bool = true, delimiter: Swift::String = ",", comment: Swift::String = "", escape: Swift::String = "\\", doubleQuote: Swift::Bool = true, quote: Swift::String = "\"", skipInitialSpaces: Swift::Bool = true, missingValues: [Swift::String] = ["NA"], lineTerminator: Swift::String = "\n", selectColumns: [Swift::String]? = nil, maxRows: Swift::Int? = nil, skipRows: Swift::Int = 0)
542 }
543}
544extension CreateML::MLLogisticRegressionClassifier {
545 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
546 public struct ModelParameters {
547 public var maxIterations: Swift::Int
548 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
549 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
550 @available(tvOS, unavailable)
551 public var validationData: CreateML::MLDataTable? {
552 get
553 set
554 }
555 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
556 public var validation: CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters.CreateML::ValidationData {
557 get
558 set
559 }
560 public var l1Penalty: Swift::Double
561 public var l2Penalty: Swift::Double
562 public var stepSize: Swift::Double
563 public var convergenceThreshold: Swift::Double
564 public var featureRescaling: Swift::Bool
565 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
566 public init(validation: CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters.CreateML::ValidationData = .split(strategy: .automatic), maxIterations: Swift::Int = 10, l1Penalty: Swift::Double = 0, l2Penalty: Swift::Double = 0.01, stepSize: Swift::Double = 1.0, convergenceThreshold: Swift::Double = 0.01, featureRescaling: Swift::Bool = true)
567 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
568 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
569 @available(tvOS, unavailable)
570 public init(validationData: CreateML::MLDataTable?, maxIterations: Swift::Int = 10, l1Penalty: Swift::Double = 0, l2Penalty: Swift::Double = 0.01, stepSize: Swift::Double = 1.0, convergenceThreshold: Swift::Double = 0.01, featureRescaling: Swift::Bool = true)
571 }
572}
573@available(*, unavailable)
574extension CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters : Swift::Sendable {
575}
576@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
577extension CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters : Swift::CustomStringConvertible {
578 public var description: Swift::String {
579 get
580 }
581}
582@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
583extension CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters : Swift::CustomDebugStringConvertible {
584 public var debugDescription: Swift::String {
585 get
586 }
587}
588@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
589extension CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters : Swift::CustomPlaygroundDisplayConvertible {
590 public var playgroundDescription: Any {
591 get
592 }
593}
594extension CreateML::MLRandomForestRegressor {
595 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
596 public struct ModelParameters {
597 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
598 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
599 @available(tvOS, unavailable)
600 public var validationData: CreateML::MLDataTable? {
601 get
602 set
603 }
604 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
605 public var validation: CreateML::MLRandomForestRegressor.CreateML::ModelParameters.CreateML::ValidationData {
606 get
607 set
608 }
609 public var maxDepth: Swift::Int
610 public var maxIterations: Swift::Int
611 public var minLossReduction: Swift::Double
612 public var minChildWeight: Swift::Double
613 public var randomSeed: Swift::Int
614 public var rowSubsample: Swift::Double
615 public var columnSubsample: Swift::Double
616 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
617 public init(validation: CreateML::MLRandomForestRegressor.CreateML::ModelParameters.CreateML::ValidationData, maxDepth: Swift::Int = 6, maxIterations: Swift::Int = 10, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42, rowSubsample: Swift::Double = 0.8, columnSubsample: Swift::Double = 0.8)
618 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
619 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
620 @available(tvOS, unavailable)
621 public init(validationData: CreateML::MLDataTable? = nil, maxDepth: Swift::Int = 6, maxIterations: Swift::Int = 10, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42, rowSubsample: Swift::Double = 0.8, columnSubsample: Swift::Double = 0.8)
622 }
623}
624@available(*, unavailable)
625extension CreateML::MLRandomForestRegressor.CreateML::ModelParameters : Swift::Sendable {
626}
627@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
628extension CreateML::MLRandomForestRegressor.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
629 public var description: Swift::String {
630 get
631 }
632 public var debugDescription: Swift::String {
633 get
634 }
635 public var playgroundDescription: Any {
636 get
637 }
638}
639extension CreateML::MLImageClassifier {
640 @available(macOS 10.14, iOS 15.0, *)
641 @available(tvOS, unavailable)
642 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
643 @available(macOS 10.14, iOS 15.0, *)
644 @available(tvOS, unavailable)
645 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
646}
647@available(macOS 10.15, iOS 15.0, *)
648@available(tvOS, unavailable)
649extension CreateML::MLSoundClassifier {
650 public struct ModelParameters {
651 public var validation: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ValidationData
652 public var maxIterations: Swift::Int
653 public var overlapFactor: Swift::Double
654 @available(macOS 11.0, iOS 15.0, *)
655 @available(tvOS, unavailable)
656 public var algorithm: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType {
657 get
658 set
659 }
660 @available(macOS 12.0, iOS 15.0, *)
661 @available(tvOS, unavailable)
662 public var featureExtractionTimeWindowSize: Foundation::TimeInterval {
663 get
664 set
665 }
666 @available(macOS 11.0, iOS 15.0, *)
667 @available(tvOS, unavailable)
668 public init(validation: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ValidationData = __Defaults.validation, maxIterations: Swift::Int = __Defaults.maximumIterations, overlapFactor: Swift::Double = __Defaults.overlapFactor, algorithm: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType = __Defaults.algorithm)
669 public init(validation: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ValidationData = .split(strategy: .automatic), maxIterations: Swift::Int = 25, overlapFactor: Swift::Double = 0.5)
670 @available(macOS 12.0, iOS 15.0, *)
671 @available(tvOS, unavailable)
672 public init(validation: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ValidationData = __Defaults.validation, maxIterations: Swift::Int = __Defaults.maximumIterations, overlapFactor: Swift::Double = __Defaults.overlapFactor, algorithm: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType = __Defaults.algorithm, featureExtractionTimeWindowSize: Foundation::TimeInterval = __Defaults.defaultVGGishTimeWindow)
673 @available(macOS 12.0, iOS 15.0, *)
674 @available(tvOS, unavailable)
675 public enum FeaturePrintType : Swift::Equatable, Swift::CustomStringConvertible, Swift::Sendable {
676 case sound
677 public var description: Swift::String {
678 get
679 }
680 public static func == (a: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeaturePrintType, b: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeaturePrintType) -> Swift::Bool
681 public func hash(into hasher: inout Swift::Hasher)
682 public var hashValue: Swift::Int {
683 get
684 }
685 }
686 }
687}
688@available(*, unavailable)
689extension CreateML::MLSoundClassifier.CreateML::ModelParameters : Swift::Sendable {
690}
691@available(macOS 10.15, iOS 15.0, *)
692@available(tvOS, unavailable)
693extension CreateML::MLSoundClassifier.CreateML::ModelParameters : Swift::CustomStringConvertible {
694 public var description: Swift::String {
695 get
696 }
697}
698@available(macOS 10.15, iOS 15.0, *)
699@available(tvOS, unavailable)
700extension CreateML::MLSoundClassifier.CreateML::ModelParameters : Swift::CustomDebugStringConvertible {
701 public var debugDescription: Swift::String {
702 get
703 }
704}
705@available(macOS 10.15, iOS 15.0, *)
706@available(tvOS, unavailable)
707extension CreateML::MLSoundClassifier.CreateML::ModelParameters : Swift::CustomPlaygroundDisplayConvertible {
708 public var playgroundDescription: Any {
709 get
710 }
711}
712@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
713extension CreateML::MLDataTable {
714 public var rows: CreateML::MLDataTable.CreateML::Rows {
715 get
716 }
717 public struct Rows {
718 }
719}
720@available(*, unavailable)
721extension CreateML::MLDataTable.CreateML::Rows : Swift::Sendable {
722}
723@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
724extension CreateML::MLDataTable.CreateML::Rows : Swift::RandomAccessCollection {
725 public typealias Element = CreateML::MLDataTable.CreateML::Row
726 public subscript(index: Swift::Int) -> CreateML::MLDataTable.CreateML::Rows.CreateML::Element {
727 get
728 }
729 public var startIndex: Swift::Int {
730 get
731 }
732 public var endIndex: Swift::Int {
733 get
734 }
735 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
736 public typealias Index = Swift::Int
737 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
738 public typealias Indices = Swift::Range<Swift::Int>
739 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
740 public typealias Iterator = Swift::IndexingIterator<CreateML::MLDataTable.CreateML::Rows>
741 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
742 public typealias SubSequence = Swift::Slice<CreateML::MLDataTable.CreateML::Rows>
743}
744@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
745extension CreateML::MLDataTable.CreateML::Rows : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
746 public var description: Swift::String {
747 get
748 }
749 public var debugDescription: Swift::String {
750 get
751 }
752 public var playgroundDescription: Any {
753 get
754 }
755}
756@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
757public struct MLLogisticRegressionClassifier : @unchecked Swift::Sendable {
758 public var model: CoreML::MLModel {
759 get
760 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
761 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
762 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
763 set
764 }
765 public var targetColumn: Swift::String
766 public var featureColumns: [Swift::String]
767 public let modelParameters: CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters
768 public var trainingMetrics: CreateML::MLClassifierMetrics {
769 get
770 }
771 public var validationMetrics: CreateML::MLClassifierMetrics {
772 get
773 }
774 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
775 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
776 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
777 public init(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
778 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
779 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
780 @available(tvOS, unavailable)
781 public init(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters = ModelParameters(validationData: nil)) throws
782 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
783 public init(checkpoint: CreateML::MLCheckpoint) throws
784 @available(macOS, introduced: 12.0, deprecated: 14.0)
785 @available(iOS, introduced: 15.0, deprecated: 17.0)
786 @available(tvOS, introduced: 16.0, deprecated: 17.0)
787 public static func train(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLLogisticRegressionClassifier>
788 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
789 public static func train(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLLogisticRegressionClassifier>
790 @available(macOS, introduced: 12.0, deprecated: 14.0)
791 @available(iOS, introduced: 15.0, deprecated: 17.0)
792 @available(tvOS, introduced: 16.0, deprecated: 17.0)
793 public static func makeTrainingSession(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLLogisticRegressionClassifier>
794 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
795 public static func makeTrainingSession(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLLogisticRegressionClassifier>
796 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
797 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLLogisticRegressionClassifier>
798 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
799 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLLogisticRegressionClassifier>) throws -> CreateML::MLJob<CreateML::MLLogisticRegressionClassifier>
800 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
801 public func predictions(from data: TabularData::DataFrame) throws -> TabularData::AnyColumn
802 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
803 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
804 @available(tvOS, unavailable)
805 public func predictions(from data: CreateML::MLDataTable) throws -> CreateML::MLUntypedColumn
806 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
807 public func evaluation(on labeledData: TabularData::DataFrame) -> CreateML::MLClassifierMetrics
808 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
809 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
810 @available(tvOS, unavailable)
811 public func evaluation(on labeledData: CreateML::MLDataTable) -> CreateML::MLClassifierMetrics
812 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
813 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
814}
815@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
816extension CreateML::MLLogisticRegressionClassifier : Swift::CustomStringConvertible {
817 public var description: Swift::String {
818 get
819 }
820}
821@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
822extension CreateML::MLLogisticRegressionClassifier : Swift::CustomDebugStringConvertible {
823 public var debugDescription: Swift::String {
824 get
825 }
826}
827@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
828extension CreateML::MLLogisticRegressionClassifier : Swift::CustomPlaygroundDisplayConvertible {
829 public var playgroundDescription: Any {
830 get
831 }
832}
833@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
834extension CreateML::MLDataColumn {
835 public static func == (a: CreateML::MLDataColumn<Element>, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
836 public static func != (a: CreateML::MLDataColumn<Element>, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
837 public static func > (a: CreateML::MLDataColumn<Element>, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
838 public static func < (a: CreateML::MLDataColumn<Element>, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
839 public static func >= (a: CreateML::MLDataColumn<Element>, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
840 public static func <= (a: CreateML::MLDataColumn<Element>, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
841 public static func == (a: CreateML::MLDataColumn<Element>, b: Element) -> CreateML::MLDataColumn<Swift::Bool>
842 public static func != (a: CreateML::MLDataColumn<Element>, b: Element) -> CreateML::MLDataColumn<Swift::Bool>
843 public static func > (a: CreateML::MLDataColumn<Element>, b: Element) -> CreateML::MLDataColumn<Swift::Bool>
844 public static func < (a: CreateML::MLDataColumn<Element>, b: Element) -> CreateML::MLDataColumn<Swift::Bool>
845 public static func >= (a: CreateML::MLDataColumn<Element>, b: Element) -> CreateML::MLDataColumn<Swift::Bool>
846 public static func <= (a: CreateML::MLDataColumn<Element>, b: Element) -> CreateML::MLDataColumn<Swift::Bool>
847 public static func == (a: Element, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
848 public static func != (a: Element, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
849 public static func > (a: Element, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
850 public static func < (a: Element, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
851 public static func >= (a: Element, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
852 public static func <= (a: Element, b: CreateML::MLDataColumn<Element>) -> CreateML::MLDataColumn<Swift::Bool>
853}
854@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
855extension CreateML::MLDataColumn where Element == Swift::Int {
856 public static func + (a: CreateML::MLDataColumn<Swift::Int>, b: CreateML::MLDataColumn<Swift::Int>) -> CreateML::MLDataColumn<Swift::Int>
857 public static func - (a: CreateML::MLDataColumn<Swift::Int>, b: CreateML::MLDataColumn<Swift::Int>) -> CreateML::MLDataColumn<Swift::Int>
858 public static func * (a: CreateML::MLDataColumn<Swift::Int>, b: CreateML::MLDataColumn<Swift::Int>) -> CreateML::MLDataColumn<Swift::Int>
859 public static func / (a: CreateML::MLDataColumn<Swift::Int>, b: CreateML::MLDataColumn<Swift::Int>) -> CreateML::MLDataColumn<Swift::Int>
860 public static func + (a: Swift::Int, b: CreateML::MLDataColumn<Swift::Int>) -> CreateML::MLDataColumn<Swift::Int>
861 public static func - (a: Swift::Int, b: CreateML::MLDataColumn<Swift::Int>) -> CreateML::MLDataColumn<Swift::Int>
862 public static func * (a: Swift::Int, b: CreateML::MLDataColumn<Swift::Int>) -> CreateML::MLDataColumn<Swift::Int>
863 public static func / (a: Swift::Int, b: CreateML::MLDataColumn<Swift::Int>) -> CreateML::MLDataColumn<Swift::Int>
864 public static func + (a: CreateML::MLDataColumn<Swift::Int>, b: Swift::Int) -> CreateML::MLDataColumn<Swift::Int>
865 public static func - (a: CreateML::MLDataColumn<Swift::Int>, b: Swift::Int) -> CreateML::MLDataColumn<Swift::Int>
866 public static func * (a: CreateML::MLDataColumn<Swift::Int>, b: Swift::Int) -> CreateML::MLDataColumn<Swift::Int>
867 public static func / (a: CreateML::MLDataColumn<Swift::Int>, b: Swift::Int) -> CreateML::MLDataColumn<Swift::Int>
868}
869@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
870extension CreateML::MLDataColumn where Element == Swift::Double {
871 public static func + (a: CreateML::MLDataColumn<Swift::Double>, b: CreateML::MLDataColumn<Swift::Double>) -> CreateML::MLDataColumn<Swift::Double>
872 public static func - (a: CreateML::MLDataColumn<Swift::Double>, b: CreateML::MLDataColumn<Swift::Double>) -> CreateML::MLDataColumn<Swift::Double>
873 public static func * (a: CreateML::MLDataColumn<Swift::Double>, b: CreateML::MLDataColumn<Swift::Double>) -> CreateML::MLDataColumn<Swift::Double>
874 public static func / (a: CreateML::MLDataColumn<Swift::Double>, b: CreateML::MLDataColumn<Swift::Double>) -> CreateML::MLDataColumn<Swift::Double>
875 public static func + (a: Swift::Double, b: CreateML::MLDataColumn<Swift::Double>) -> CreateML::MLDataColumn<Swift::Double>
876 public static func - (a: Swift::Double, b: CreateML::MLDataColumn<Swift::Double>) -> CreateML::MLDataColumn<Swift::Double>
877 public static func * (a: Swift::Double, b: CreateML::MLDataColumn<Swift::Double>) -> CreateML::MLDataColumn<Swift::Double>
878 public static func / (a: Swift::Double, b: CreateML::MLDataColumn<Swift::Double>) -> CreateML::MLDataColumn<Swift::Double>
879 public static func + (a: CreateML::MLDataColumn<Swift::Double>, b: Swift::Double) -> CreateML::MLDataColumn<Swift::Double>
880 public static func - (a: CreateML::MLDataColumn<Swift::Double>, b: Swift::Double) -> CreateML::MLDataColumn<Swift::Double>
881 public static func * (a: CreateML::MLDataColumn<Swift::Double>, b: Swift::Double) -> CreateML::MLDataColumn<Swift::Double>
882 public static func / (a: CreateML::MLDataColumn<Swift::Double>, b: Swift::Double) -> CreateML::MLDataColumn<Swift::Double>
883}
884@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
885extension CreateML::MLDataColumn where Element == Swift::Bool {
886 public static func || (a: CreateML::MLDataColumn<Swift::Bool>, b: CreateML::MLDataColumn<Swift::Bool>) -> CreateML::MLDataColumn<Swift::Bool>
887 public static func && (a: CreateML::MLDataColumn<Swift::Bool>, b: CreateML::MLDataColumn<Swift::Bool>) -> CreateML::MLDataColumn<Swift::Bool>
888}
889@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
890public struct MLDecisionTreeRegressor : @unchecked Swift::Sendable {
891 public var model: CoreML::MLModel {
892 get
893 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
894 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
895 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
896 set
897 }
898 public var targetColumn: Swift::String
899 public var featureColumns: [Swift::String]
900 public let modelParameters: CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters
901 public var trainingMetrics: CreateML::MLRegressorMetrics {
902 get
903 }
904 public var validationMetrics: CreateML::MLRegressorMetrics {
905 get
906 }
907 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
908 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
909 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
910 public init(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
911 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
912 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
913 @available(tvOS, unavailable)
914 public init(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters = ModelParameters(validationData: nil)) throws
915 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
916 public init(checkpoint: CreateML::MLCheckpoint) throws
917 @available(macOS, introduced: 12.0, deprecated: 14.0)
918 @available(iOS, introduced: 15.0, deprecated: 17.0)
919 @available(tvOS, introduced: 16.0, deprecated: 17.0)
920 public static func train(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLDecisionTreeRegressor>
921 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
922 public static func train(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLDecisionTreeRegressor>
923 @available(macOS, introduced: 12.0, deprecated: 14.0)
924 @available(iOS, introduced: 15.0, deprecated: 17.0)
925 @available(tvOS, introduced: 16.0, deprecated: 17.0)
926 public static func makeTrainingSession(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLDecisionTreeRegressor>
927 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
928 public static func makeTrainingSession(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLDecisionTreeRegressor>
929 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
930 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLDecisionTreeRegressor>
931 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
932 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLDecisionTreeRegressor>) throws -> CreateML::MLJob<CreateML::MLDecisionTreeRegressor>
933 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
934 public func predictions(from data: TabularData::DataFrame) throws -> TabularData::AnyColumn
935 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
936 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
937 @available(tvOS, unavailable)
938 public func predictions(from data: CreateML::MLDataTable) throws -> CreateML::MLUntypedColumn
939 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
940 public func evaluation(on labeledData: TabularData::DataFrame) -> CreateML::MLRegressorMetrics
941 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
942 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
943 @available(tvOS, unavailable)
944 public func evaluation(on labeledData: CreateML::MLDataTable) -> CreateML::MLRegressorMetrics
945 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
946 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
947}
948@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
949extension CreateML::MLDecisionTreeRegressor : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
950 public var description: Swift::String {
951 get
952 }
953 public var debugDescription: Swift::String {
954 get
955 }
956 public var playgroundDescription: Any {
… 2 unchanged lines …
959}
960@available(macOS 10.14, iOS 15.0, *)
961@available(tvOS, unavailable)
962extension CreateML.MLImageClassifier {
963 public struct ImageAugmentationOptions : Swift.OptionSet, Swift.Sendable {
964 public let rawValue: Swift.Int
965 public static let blur: CreateML.MLImageClassifier.ImageAugmentationOptions
966 public static let flip: CreateML.MLImageClassifier.ImageAugmentationOptions
967 public static let exposure: CreateML.MLImageClassifier.ImageAugmentationOptions
968 public static let noise: CreateML.MLImageClassifier.ImageAugmentationOptions
969 public static let rotation: CreateML.MLImageClassifier.ImageAugmentationOptions
970 public static let crop: CreateML.MLImageClassifier.ImageAugmentationOptions
971 public init(rawValue: Swift.Int)
972 @available(iOS 15.0, macOS 10.14, *)
973 @available(tvOS, unavailable)
974 public typealias ArrayLiteralElement = CreateML.MLImageClassifier.ImageAugmentationOptions
975 @available(iOS 15.0, macOS 10.14, *)
976 @available(tvOS, unavailable)
977 public typealias Element = CreateML.MLImageClassifier.ImageAugmentationOptions
978 @available(iOS 15.0, macOS 10.14, *)
979 @available(tvOS, unavailable)
980 public typealias RawValue = Swift.Int
981 }
982}
983extension CreateML.MLDecisionTreeRegressor.ModelParameters {
984 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
985 public enum ValidationData {
986 case split(strategy: CreateML.MLSplitStrategy)
987 @available(macOS, introduced: 11.0, deprecated: 14.0)
988 @available(iOS, introduced: 15.0, deprecated: 17.0)
989 @available(tvOS, introduced: 16.0, deprecated: 17.0)
990 case table(CreateML.MLDataTable)
991 @available(macOS 13.0, iOS 16.0, tvOS 16.0, *)
992 case dataFrame(TabularData.DataFrame)
993 case none
994 }
995}
996@available(*, unavailable)
997extension CreateML.MLDecisionTreeRegressor.ModelParameters.ValidationData : Swift.Sendable {
998}
999extension CreateML.MLRandomForestClassifier.ModelParameters {
1000 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1001 public enum ValidationData {
1002 case split(strategy: CreateML.MLSplitStrategy)
1003 @available(macOS, introduced: 10.15, deprecated: 14.0)
1004 @available(iOS, introduced: 15.0, deprecated: 17.0)
1005 @available(tvOS, introduced: 16.0, deprecated: 17.0)
1006 case table(CreateML.MLDataTable)
1007 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
1008 case dataFrame(TabularData.DataFrame)
1009 case none
1010 }
1011}
1012@available(*, unavailable)
1013extension CreateML.MLRandomForestClassifier.ModelParameters.ValidationData : Swift.Sendable {
1014}
1015extension CreateML.MLLinearRegressor {
1016 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1017 public struct ModelParameters {
1018 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
1019 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1020 @available(tvOS, unavailable)
1021 public var validationData: CreateML.MLDataTable? {
1022 get
1023 set
1024 }
1025 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1026 public var validation: CreateML.MLLinearRegressor.ModelParameters.ValidationData {
1027 get
1028 set
1029 }
1030 public var maxIterations: Swift.Int
1031 public var l1Penalty: Swift.Double
1032 public var l2Penalty: Swift.Double
1033 public var stepSize: Swift.Double
1034 public var convergenceThreshold: Swift.Double
1035 public var featureRescaling: Swift.Bool
1036 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1037 public init(validation: CreateML.MLLinearRegressor.ModelParameters.ValidationData, maxIterations: Swift.Int = 10, l1Penalty: Swift.Double = 0, l2Penalty: Swift.Double = 0.01, stepSize: Swift.Double = 1.0, convergenceThreshold: Swift.Double = 0.01, featureRescaling: Swift.Bool = true)
1038 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
1039 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1040 @available(tvOS, unavailable)
1041 public init(validationData: CreateML.MLDataTable? = nil, maxIterations: Swift.Int = 10, l1Penalty: Swift.Double = 0, l2Penalty: Swift.Double = 0.01, stepSize: Swift.Double = 1.0, convergenceThreshold: Swift.Double = 0.01, featureRescaling: Swift.Bool = true)
1042 }
1043}
1044@available(*, unavailable)
1045extension CreateML.MLLinearRegressor.ModelParameters : Swift.Sendable {
1046}
1047@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1048extension CreateML.MLLinearRegressor.ModelParameters : Swift.CustomStringConvertible {
1049 public var description: Swift.String {
1050 get
1051 }
1052}
1053@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1054extension CreateML.MLLinearRegressor.ModelParameters : Swift.CustomDebugStringConvertible {
1055 public var debugDescription: Swift.String {
1056 get
1057 }
1058}
1059@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1060extension CreateML.MLLinearRegressor.ModelParameters : Swift.CustomPlaygroundDisplayConvertible {
1061 public var playgroundDescription: Any {
1062 get
1063 }
1064}
1065@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1066public struct MLRegressorMetrics : Swift.Sendable {
1067 public var error: (any Swift.Error)? {
1068 get
1069 }
1070 public var isValid: Swift.Bool {
1071 get
1072 }
1073 public var maximumError: Swift.Double {
1074 get
1075 }
1076 public var rootMeanSquaredError: Swift.Double {
1077 get
1078 }
1079 public init(maximumError: Swift.Double, rootMeanSquaredError: Swift.Double)
1080}
1081@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1082extension CreateML.MLRegressorMetrics : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
1083 public var description: Swift.String {
1084 get
1085 }
1086 public var debugDescription: Swift.String {
1087 get
1088 }
1089 public var playgroundDescription: Any {
1090 get
1091 }
1092}
1093extension CreateML.MLSoundClassifier.ModelParameters {
1094 @available(macOS 11.0, iOS 15.0, *)
1095 public enum ClassifierType : Swift.Equatable, Swift.Hashable, Swift.CustomStringConvertible, Swift.Sendable {
1096 case logisticRegressor
1097 public var description: Swift.String {
1098 get
1099 }
1100 public static func == (a: CreateML.MLSoundClassifier.ModelParameters.ClassifierType, b: CreateML.MLSoundClassifier.ModelParameters.ClassifierType) -> Swift.Bool
1101 public func hash(into hasher: inout Swift.Hasher)
1102 public var hashValue: Swift.Int {
1103 get
1104 }
1105 }
1106}
1107@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1108public struct MLDataColumn<Element> where Element : CreateML.MLDataValueConvertible {
1109 public var count: Swift.Int {
1110 get
1111 }
1112 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1113 public var isEmpty: Swift.Bool {
1114 get
1115 }
1116 public var error: (any Swift.Error)? {
1117 get
1118 }
1119 public var isValid: Swift.Bool {
1120 get
1121 }
1122 public init<S>(_ source: S) where Element == S.Element, S : Swift.Sequence
1123 public init(repeating repeatedValue: CreateML.MLDataValue, count: Swift.Int)
1124 public init(repeating repeatedValue: Element, count: Swift.Int)
1125 public init()
1126 public mutating func append(contentsOf newColumn: CreateML.MLDataColumn<Element>)
1127}
1128@available(*, unavailable)
1129extension CreateML.MLDataColumn : Swift.Sendable {
1130}
1131@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1132extension CreateML.MLDataColumn {
1133 public subscript(mask: CreateML.MLUntypedColumn) -> CreateML.MLDataColumn<Element> {
1134 get
1135 }
1136 public subscript(mask: CreateML.MLDataColumn<Swift.Bool>) -> CreateML.MLDataColumn<Element> {
1137 get
1138 }
1139 public func map<T>(_ lazyTransform: @escaping (Element) -> T?) -> CreateML.MLDataColumn<T> where T : CreateML.MLDataValueConvertible
1140 public func map<T>(_ lazyTransform: @escaping (Element) -> T) -> CreateML.MLDataColumn<T> where T : CreateML.MLDataValueConvertible
1141 public func mapMissing<T>(_ lazyTransform: @escaping (Element?) -> T?) -> CreateML.MLDataColumn<T> where T : CreateML.MLDataValueConvertible
1142 public func map<T>(to type: T.Type) -> CreateML.MLDataColumn<T> where T : CreateML.MLDataValueConvertible
1143 public func dropMissing() -> CreateML.MLDataColumn<Element>
1144 public func fillMissing(with value: Element) -> CreateML.MLDataColumn<Element>
1145 public func dropDuplicates() -> CreateML.MLDataColumn<Element>
1146 public func prefix(_ maxLength: Swift.Int = 10) -> CreateML.MLDataColumn<Element>
1147 public func suffix(_ maxLength: Swift.Int = 10) -> CreateML.MLDataColumn<Element>
1148 public func sort(byIncreasingOrder: Swift.Bool = true) -> CreateML.MLDataColumn<Element>
1149 public func copy() -> CreateML.MLDataColumn<Element>
1150 public func materialize() throws -> CreateML.MLDataColumn<Element>
1151}
1152@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1153extension CreateML.MLDataColumn {
1154 public func element(at index: Swift.Int) -> Element?
1155 public subscript(index: Swift.Int) -> Element {
1156 get
1157 }
1158}
1159@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1160extension CreateML.MLDataColumn {
1161 public subscript(slice: Swift.Range<Swift.Int>) -> CreateML.MLDataColumn<Element> {
1162 get
1163 }
1164 public subscript<R>(slice: R) -> CreateML.MLDataColumn<Element> where R : Swift.RangeExpression, R.Bound == Swift.Int {
1165 get
1166 }
1167}
1168@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1169extension Swift.Array where Element : CreateML.MLDataValueConvertible {
1170 public init(_ column: CreateML.MLDataColumn<Element>)
1171}
1172@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1173extension CreateML.MLDataColumn where Element == Swift.Int {
1174 public init<T>(column: CreateML.MLDataColumn<T>) where T : CreateML.MLDataValueConvertible
1175 public func sum() -> Swift.Int?
1176 public func min() -> Swift.Int?
1177 public func max() -> Swift.Int?
1178 @available(macOS, introduced: 10.14, deprecated: 10.15, renamed: "stdev")
1179 @available(iOS, introduced: 15.0, deprecated: 16.0, renamed: "stdev")
1180 @available(tvOS, unavailable)
1181 public func std() -> Swift.Double?
1182 public func mean() -> Swift.Double?
1183}
1184@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1185extension CreateML.MLDataColumn where Element == Swift.Double {
1186 public init<T>(column: CreateML.MLDataColumn<T>) where T : CreateML.MLDataValueConvertible
1187 public func sum() -> Swift.Double?
1188 public func min() -> Swift.Double?
1189 public func max() -> Swift.Double?
1190 @available(macOS, introduced: 10.14, deprecated: 10.15, renamed: "stdev")
1191 @available(iOS, introduced: 15.0, deprecated: 16.0, renamed: "stdev")
1192 @available(tvOS, unavailable)
1193 public func std() -> Swift.Double?
1194 public func mean() -> Swift.Double?
1195}
1196@available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1197extension CreateML.MLDataColumn where Element == Swift.Int {
1198 public func stdev() -> Swift.Double?
1199}
1200@available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1201extension CreateML.MLDataColumn where Element == Swift.Double {
1202 public func stdev() -> Swift.Double?
1203}
1204@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1205extension CreateML.MLDataColumn where Element == Swift.String {
1206 public init<T>(column: CreateML.MLDataColumn<T>) where T : CreateML.MLDataValueConvertible
1207}
1208@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1209extension CreateML.MLDataColumn where Element == CreateML.MLDataValue.SequenceType {
1210 public init<T>(column: CreateML.MLDataColumn<T>) where T : CreateML.MLDataValueConvertible
1211}
1212@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1213extension CreateML.MLDataColumn where Element == [Swift.Int] {
1214 public init<T>(column: CreateML.MLDataColumn<T>) where T : CreateML.MLDataValueConvertible
1215}
1216@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1217extension CreateML.MLDataColumn where Element == [Swift.Double] {
1218 public init<T>(column: CreateML.MLDataColumn<T>) where T : CreateML.MLDataValueConvertible
1219}
1220@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1221extension CreateML.MLDataColumn where Element == [Swift.String] {
1222 public init<T>(column: CreateML.MLDataColumn<T>) where T : CreateML.MLDataValueConvertible
1223}
1224@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1225extension CreateML.MLDataColumn where Element == CreateML.MLDataValue.DictionaryType {
1226 public init<T>(column: CreateML.MLDataColumn<T>) where T : CreateML.MLDataValueConvertible
1227}
1228@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1229extension CreateML.MLDataColumn : Swift.CustomReflectable {
1230 public var customMirror: Swift.Mirror {
1231 get
1232 }
1233}
1234@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1235extension CreateML.MLDataColumn : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
1236 public var description: Swift.String {
1237 get
1238 }
1239 public var debugDescription: Swift.String {
1240 get
1241 }
1242 public var playgroundDescription: Any {
1243 get
1244 }
1245}
1246@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1247public struct MLCheckpoint : Swift.Codable {
1248 public var url: Foundation.URL
1249 public var phase: CreateML.MLPhase
1250 public var iteration: Swift.Int
1251 public var date: Foundation.Date
1252 public var metrics: [CreateML.MLProgress.Metric : Any] {
1253 get
1254 set
1255 }
1256 public init(from decoder: any Swift.Decoder) throws
1257 public func encode(to encoder: any Swift.Encoder) throws
1258}
1259@available(macOS 26.0, iOS 26.0, tvOS 26.0, visionOS 26.0, *)
1260extension CreateML.MLCheckpoint : Swift.Sendable {
1261}
1262extension CreateML.MLBoostedTreeClassifier {
1263 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1264 public struct ModelParameters {
1265 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
1266 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1267 @available(tvOS, unavailable)
1268 public var validationData: CreateML.MLDataTable? {
1269 get
1270 set
1271 }
1272 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1273 public var validation: CreateML.MLBoostedTreeClassifier.ModelParameters.ValidationData {
1274 get
1275 set
1276 }
1277 public var maxDepth: Swift.Int
1278 public var maxIterations: Swift.Int
1279 public var minLossReduction: Swift.Double
1280 public var minChildWeight: Swift.Double
1281 public var randomSeed: Swift.Int
1282 public var stepSize: Swift.Double
1283 public var earlyStoppingRounds: Swift.Int?
1284 public var rowSubsample: Swift.Double
1285 public var columnSubsample: Swift.Double
1286 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1287 public init(validation: CreateML.MLBoostedTreeClassifier.ModelParameters.ValidationData = .split(strategy: .automatic), maxDepth: Swift.Int = 6, maxIterations: Swift.Int = 10, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42, stepSize: Swift.Double = 0.3, earlyStoppingRounds: Swift.Int? = nil, rowSubsample: Swift.Double = 1.0, columnSubsample: Swift.Double = 1.0)
1288 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
1289 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1290 @available(tvOS, unavailable)
1291 public init(validationData: CreateML.MLDataTable?, maxDepth: Swift.Int = 6, maxIterations: Swift.Int = 10, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42, stepSize: Swift.Double = 0.3, earlyStoppingRounds: Swift.Int? = nil, rowSubsample: Swift.Double = 1.0, columnSubsample: Swift.Double = 1.0)
1292 }
1293}
1294@available(*, unavailable)
1295extension CreateML.MLBoostedTreeClassifier.ModelParameters : Swift.Sendable {
1296}
1297@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1298extension CreateML.MLBoostedTreeClassifier.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
1299 public var description: Swift.String {
1300 get
1301 }
1302 public var debugDescription: Swift.String {
1303 get
1304 }
1305 public var playgroundDescription: Any {
1306 get
1307 }
1308}
1309@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1310extension CreateML.MLDataValue.SequenceType {
1311 public init()
1312 public init<S>(_ elements: S) where S : Swift.Sequence, S.Element == CreateML.MLDataValue
1313 public init<S>(_ elements: S) where S : Swift.Sequence, S.Element : CreateML.MLDataValueConvertible
1314}
1315@available(*, unavailable)
1316extension CreateML.MLDataValue.SequenceType : Swift.Sendable {
1317}
1318@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1319extension CreateML.MLDataValue.SequenceType : Swift.RandomAccessCollection {
1320 public typealias Element = CreateML.MLDataValue
1321 public typealias Index = Swift.Int
1322 public var startIndex: CreateML.MLDataValue.SequenceType.Index {
1323 get
1324 }
1325 public var endIndex: CreateML.MLDataValue.SequenceType.Index {
1326 get
1327 }
1328 public subscript(index: CreateML.MLDataValue.SequenceType.Index) -> CreateML.MLDataValue.SequenceType.Element {
1329 get
1330 }
1331 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1332 public typealias Indices = Swift.Range<CreateML.MLDataValue.SequenceType.Index>
1333 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1334 public typealias Iterator = Swift.IndexingIterator<CreateML.MLDataValue.SequenceType>
1335 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1336 public typealias SubSequence = Swift.Slice<CreateML.MLDataValue.SequenceType>
1337}
1338@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1339extension CreateML.MLDataValue.SequenceType : Swift.ExpressibleByArrayLiteral {
1340 public init(arrayLiteral: CreateML.MLDataValue.SequenceType.Element...)
1341 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1342 public typealias ArrayLiteralElement = CreateML.MLDataValue.SequenceType.Element
1343}
1344@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1345extension CreateML.MLDataValue.SequenceType : Swift.Equatable {
1346 public static func == (lhs: CreateML.MLDataValue.SequenceType, rhs: CreateML.MLDataValue.SequenceType) -> Swift.Bool
1347}
1348@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1349extension CreateML.MLDataValue.SequenceType : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
1350 public var description: Swift.String {
1351 get
1352 }
1353 public var debugDescription: Swift.String {
1354 get
1355 }
1356}
1357@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1358extension CreateML.MLDataValue.SequenceType : CreateML.MLDataValueConvertible {
1359 public static var dataValueType: CreateML.MLDataValue.ValueType {
1360 get
1361 }
1362 public init?(from dataValue: CreateML.MLDataValue)
1363 public var dataValue: CreateML.MLDataValue {
1364 get
1365 }
1366}
1367@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1368extension Swift.Array : CreateML.MLDataValueConvertible where Element : CreateML.MLDataValueConvertible {
1369 public static var dataValueType: CreateML.MLDataValue.ValueType {
1370 get
1371 }
1372 public init?(from dataValue: CreateML.MLDataValue)
1373 public var dataValue: CreateML.MLDataValue {
1374 get
1375 }
1376}
1377@available(macOS 12.0, iOS 15.0, *)
1378@available(tvOS, unavailable)
1379extension CreateML.MLHandPoseClassifier {
1380 public struct ModelParameters {
1381 public var validation: CreateML.MLHandPoseClassifier.ModelParameters.ValidationData
1382 public var batchSize: Swift.Int
1383 public var maximumIterations: Swift.Int
1384 public var augmentationOptions: CreateML.MLHandPoseClassifier.ImageAugmentationOptions
1385 public var algorithm: CreateML.MLHandPoseClassifier.ModelParameters.ModelAlgorithmType
1386 public init(validation: CreateML.MLHandPoseClassifier.ModelParameters.ValidationData = .split(strategy: .automatic), batchSize: Swift.Int = MLHandPoseClassifier.__Defaults.batchSize, maximumIterations: Swift.Int = MLHandPoseClassifier.__Defaults.maximumIterations, augmentationOptions: CreateML.MLHandPoseClassifier.ImageAugmentationOptions = [], algorithm: CreateML.MLHandPoseClassifier.ModelParameters.ModelAlgorithmType = .gcn)
1387 public enum ModelAlgorithmType : Swift.Equatable, Swift.Sendable {
1388 case gcn
1389 public static func == (a: CreateML.MLHandPoseClassifier.ModelParameters.ModelAlgorithmType, b: CreateML.MLHandPoseClassifier.ModelParameters.ModelAlgorithmType) -> Swift.Bool
1390 public func hash(into hasher: inout Swift.Hasher)
1391 public var hashValue: Swift.Int {
1392 get
1393 }
1394 }
1395 public enum ValidationData {
1396 case split(strategy: CreateML.MLSplitStrategy)
1397 case dataSource(CreateML.MLHandPoseClassifier.DataSource)
1398 case none
1399 }
1400 }
1401}
1402@available(*, unavailable)
1403extension CreateML.MLHandPoseClassifier.ModelParameters : Swift.Sendable {
1404}
1405@available(*, unavailable)
1406extension CreateML.MLHandPoseClassifier.ModelParameters.ValidationData : Swift.Sendable {
1407}
1408@available(macOS 12.0, iOS 15.0, *)
1409@available(tvOS, unavailable)
1410extension CreateML.MLHandPoseClassifier.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
1411 public var description: Swift.String {
1412 get
1413 }
1414 public var debugDescription: Swift.String {
1415 get
1416 }
1417 public var playgroundDescription: Any {
1418 get
1419 }
1420}
1421@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1422public struct MLTrainingSessionParameters : Swift.Sendable {
1423 public let sessionDirectory: Foundation.URL?
1424 public var reportInterval: Swift.Int
1425 public var checkpointInterval: Swift.Int
1426 public var iterations: Swift.Int
1427 public init(sessionDirectory: Foundation.URL? = nil, reportInterval: Swift.Int = 5, checkpointInterval: Swift.Int = 10, iterations: Swift.Int = 1000)
1428}
1429@_hasMissingDesignatedInitializers @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1430final public class MLTrainingSession<Task> {
1431 final public let parameters: CreateML.MLTrainingSessionParameters
1432 final public var date: Foundation.Date {
1433 get
1434 }
1435 final public var phase: CreateML.MLPhase {
1436 get
1437 }
1438 final public var iteration: Swift.Int {
1439 get
1440 }
1441 final public var checkpoints: [CreateML.MLCheckpoint] {
1442 get
1443 }
1444 final public func removeCheckpoints(_ predicate: (CreateML.MLCheckpoint) -> Swift.Bool) throws
1445 final public func reuseExtractedFeatures(from session: CreateML.MLTrainingSession<Task>) throws
1446 @objc deinit
1447}
1448@available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1449extension CreateML.MLTrainingSession : @unchecked Swift.Sendable {
1450}
1451@available(macOS 10.14, iOS 15.0, *)
1452@available(tvOS, unavailable)
1453extension CreateML.MLTextClassifier {
1454 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
1455 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
1456}
1457@available(macOS 10.14, iOS 15.0, *)
1458@available(tvOS, unavailable)
1459public struct MLImageClassifier : @unchecked Swift.Sendable {
1460 @available(macOS 11.0, iOS 15.0, *)
1461 @available(tvOS, unavailable)
1462 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
1463 public var model: CoreML.MLModel {
1464 get
1465 @available(macOS, introduced: 11.0, deprecated: 14.0, message: "Setting the model is not supported.")
1466 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
1467 @available(tvOS, unavailable)
1468 set
1469 }
1470 public let modelParameters: CreateML.MLImageClassifier.ModelParameters
1471 public var trainingMetrics: CreateML.MLClassifierMetrics {
1472 get
1473 }
1474 public var validationMetrics: CreateML.MLClassifierMetrics {
1475 get
1476 }
1477 @available(macOS 11.0, iOS 15.0, *)
1478 @available(tvOS, unavailable)
1479 public init(trainingData: CreateML.MLImageClassifier.DataSource, parameters: CreateML.MLImageClassifier.ModelParameters = ModelParameters(
1480 validation: .split(strategy: .automatic),
1481 augmentation: [],
1482 algorithm: .transferLearning(
959}
960@available(macOS 10.14, iOS 15.0, *)
961@available(tvOS, unavailable)
962extension CreateML::MLImageClassifier {
963 public struct ImageAugmentationOptions : Swift::OptionSet, Swift::Sendable {
964 public let rawValue: Swift::Int
965 public static let blur: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions
966 public static let flip: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions
967 public static let exposure: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions
968 public static let noise: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions
969 public static let rotation: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions
970 public static let crop: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions
971 public init(rawValue: Swift::Int)
972 @available(macOS 10.14, iOS 15.0, *)
973 @available(tvOS, unavailable)
974 public typealias ArrayLiteralElement = CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions
975 @available(macOS 10.14, iOS 15.0, *)
976 @available(tvOS, unavailable)
977 public typealias Element = CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions
978 @available(macOS 10.14, iOS 15.0, *)
979 @available(tvOS, unavailable)
980 public typealias RawValue = Swift::Int
981 }
982}
983extension CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters {
984 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
985 public enum ValidationData {
986 case split(strategy: CreateML::MLSplitStrategy)
987 @available(macOS, introduced: 11.0, deprecated: 14.0)
988 @available(iOS, introduced: 15.0, deprecated: 17.0)
989 @available(tvOS, introduced: 16.0, deprecated: 17.0)
990 case table(CreateML::MLDataTable)
991 @available(macOS 13.0, iOS 16.0, tvOS 16.0, *)
992 case dataFrame(TabularData::DataFrame)
993 case none
994 }
995}
996@available(*, unavailable)
997extension CreateML::MLDecisionTreeRegressor.CreateML::ModelParameters.CreateML::ValidationData : Swift::Sendable {
998}
999extension CreateML::MLRandomForestClassifier.CreateML::ModelParameters {
1000 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1001 public enum ValidationData {
1002 case split(strategy: CreateML::MLSplitStrategy)
1003 @available(macOS, introduced: 10.15, deprecated: 14.0)
1004 @available(iOS, introduced: 15.0, deprecated: 17.0)
1005 @available(tvOS, introduced: 16.0, deprecated: 17.0)
1006 case table(CreateML::MLDataTable)
1007 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
1008 case dataFrame(TabularData::DataFrame)
1009 case none
1010 }
1011}
1012@available(*, unavailable)
1013extension CreateML::MLRandomForestClassifier.CreateML::ModelParameters.CreateML::ValidationData : Swift::Sendable {
1014}
1015extension CreateML::MLLinearRegressor {
1016 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1017 public struct ModelParameters {
1018 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
1019 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1020 @available(tvOS, unavailable)
1021 public var validationData: CreateML::MLDataTable? {
1022 get
1023 set
1024 }
1025 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1026 public var validation: CreateML::MLLinearRegressor.CreateML::ModelParameters.CreateML::ValidationData {
1027 get
1028 set
1029 }
1030 public var maxIterations: Swift::Int
1031 public var l1Penalty: Swift::Double
1032 public var l2Penalty: Swift::Double
1033 public var stepSize: Swift::Double
1034 public var convergenceThreshold: Swift::Double
1035 public var featureRescaling: Swift::Bool
1036 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1037 public init(validation: CreateML::MLLinearRegressor.CreateML::ModelParameters.CreateML::ValidationData, maxIterations: Swift::Int = 10, l1Penalty: Swift::Double = 0, l2Penalty: Swift::Double = 0.01, stepSize: Swift::Double = 1.0, convergenceThreshold: Swift::Double = 0.01, featureRescaling: Swift::Bool = true)
1038 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use the validation property instead.")
1039 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1040 @available(tvOS, unavailable)
1041 public init(validationData: CreateML::MLDataTable? = nil, maxIterations: Swift::Int = 10, l1Penalty: Swift::Double = 0, l2Penalty: Swift::Double = 0.01, stepSize: Swift::Double = 1.0, convergenceThreshold: Swift::Double = 0.01, featureRescaling: Swift::Bool = true)
1042 }
1043}
1044@available(*, unavailable)
1045extension CreateML::MLLinearRegressor.CreateML::ModelParameters : Swift::Sendable {
1046}
1047@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1048extension CreateML::MLLinearRegressor.CreateML::ModelParameters : Swift::CustomStringConvertible {
1049 public var description: Swift::String {
1050 get
1051 }
1052}
1053@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1054extension CreateML::MLLinearRegressor.CreateML::ModelParameters : Swift::CustomDebugStringConvertible {
1055 public var debugDescription: Swift::String {
1056 get
1057 }
1058}
1059@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1060extension CreateML::MLLinearRegressor.CreateML::ModelParameters : Swift::CustomPlaygroundDisplayConvertible {
1061 public var playgroundDescription: Any {
1062 get
1063 }
1064}
1065@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1066public struct MLRegressorMetrics : Swift::Sendable {
1067 public var error: (any Swift::Error)? {
1068 get
1069 }
1070 public var isValid: Swift::Bool {
1071 get
1072 }
1073 public var maximumError: Swift::Double {
1074 get
1075 }
1076 public var rootMeanSquaredError: Swift::Double {
1077 get
1078 }
1079 public init(maximumError: Swift::Double, rootMeanSquaredError: Swift::Double)
1080}
1081@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1082extension CreateML::MLRegressorMetrics : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
1083 public var description: Swift::String {
1084 get
1085 }
1086 public var debugDescription: Swift::String {
1087 get
1088 }
1089 public var playgroundDescription: Any {
1090 get
1091 }
1092}
1093extension CreateML::MLSoundClassifier.CreateML::ModelParameters {
1094 @available(macOS 11.0, iOS 15.0, *)
1095 public enum ClassifierType : Swift::Equatable, Swift::Hashable, Swift::CustomStringConvertible, Swift::Sendable {
1096 case logisticRegressor
1097 public var description: Swift::String {
1098 get
1099 }
1100 public static func == (a: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ClassifierType, b: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ClassifierType) -> Swift::Bool
1101 public func hash(into hasher: inout Swift::Hasher)
1102 public var hashValue: Swift::Int {
1103 get
1104 }
1105 }
1106}
1107@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1108public struct MLDataColumn<Element> where Element : CreateML::MLDataValueConvertible {
1109 public var count: Swift::Int {
1110 get
1111 }
1112 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1113 public var isEmpty: Swift::Bool {
1114 get
1115 }
1116 public var error: (any Swift::Error)? {
1117 get
1118 }
1119 public var isValid: Swift::Bool {
1120 get
1121 }
1122 public init<S>(_ source: S) where Element == S.Element, S : Swift::Sequence
1123 public init(repeating repeatedValue: CreateML::MLDataValue, count: Swift::Int)
1124 public init(repeating repeatedValue: Element, count: Swift::Int)
1125 public init()
1126 public mutating func append(contentsOf newColumn: CreateML::MLDataColumn<Element>)
1127}
1128@available(*, unavailable)
1129extension CreateML::MLDataColumn : Swift::Sendable {
1130}
1131@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1132extension CreateML::MLDataColumn {
1133 public subscript(mask: CreateML::MLUntypedColumn) -> CreateML::MLDataColumn<Element> {
1134 get
1135 }
1136 public subscript(mask: CreateML::MLDataColumn<Swift::Bool>) -> CreateML::MLDataColumn<Element> {
1137 get
1138 }
1139 public func map<T>(_ lazyTransform: @escaping (Element) -> T?) -> CreateML::MLDataColumn<T> where T : CreateML::MLDataValueConvertible
1140 public func map<T>(_ lazyTransform: @escaping (Element) -> T) -> CreateML::MLDataColumn<T> where T : CreateML::MLDataValueConvertible
1141 public func mapMissing<T>(_ lazyTransform: @escaping (Element?) -> T?) -> CreateML::MLDataColumn<T> where T : CreateML::MLDataValueConvertible
1142 public func map<T>(to type: T.Type) -> CreateML::MLDataColumn<T> where T : CreateML::MLDataValueConvertible
1143 public func dropMissing() -> CreateML::MLDataColumn<Element>
1144 public func fillMissing(with value: Element) -> CreateML::MLDataColumn<Element>
1145 public func dropDuplicates() -> CreateML::MLDataColumn<Element>
1146 public func prefix(_ maxLength: Swift::Int = 10) -> CreateML::MLDataColumn<Element>
1147 public func suffix(_ maxLength: Swift::Int = 10) -> CreateML::MLDataColumn<Element>
1148 public func sort(byIncreasingOrder: Swift::Bool = true) -> CreateML::MLDataColumn<Element>
1149 public func copy() -> CreateML::MLDataColumn<Element>
1150 public func materialize() throws -> CreateML::MLDataColumn<Element>
1151}
1152@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1153extension CreateML::MLDataColumn {
1154 public func element(at index: Swift::Int) -> Element?
1155 public subscript(index: Swift::Int) -> Element {
1156 get
1157 }
1158}
1159@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1160extension CreateML::MLDataColumn {
1161 public subscript(slice: Swift::Range<Swift::Int>) -> CreateML::MLDataColumn<Element> {
1162 get
1163 }
1164 public subscript<R>(slice: R) -> CreateML::MLDataColumn<Element> where R : Swift::RangeExpression, R.Bound == Swift::Int {
1165 get
1166 }
1167}
1168@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1169extension Swift::Array where Element : CreateML::MLDataValueConvertible {
1170 public init(_ column: CreateML::MLDataColumn<Element>)
1171}
1172@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1173extension CreateML::MLDataColumn where Element == Swift::Int {
1174 public init<T>(column: CreateML::MLDataColumn<T>) where T : CreateML::MLDataValueConvertible
1175 public func sum() -> Swift::Int?
1176 public func min() -> Swift::Int?
1177 public func max() -> Swift::Int?
1178 @available(macOS, introduced: 10.14, deprecated: 10.15, renamed: "stdev")
1179 @available(iOS, introduced: 15.0, deprecated: 16.0, renamed: "stdev")
1180 @available(tvOS, unavailable)
1181 public func std() -> Swift::Double?
1182 public func mean() -> Swift::Double?
1183}
1184@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1185extension CreateML::MLDataColumn where Element == Swift::Double {
1186 public init<T>(column: CreateML::MLDataColumn<T>) where T : CreateML::MLDataValueConvertible
1187 public func sum() -> Swift::Double?
1188 public func min() -> Swift::Double?
1189 public func max() -> Swift::Double?
1190 @available(macOS, introduced: 10.14, deprecated: 10.15, renamed: "stdev")
1191 @available(iOS, introduced: 15.0, deprecated: 16.0, renamed: "stdev")
1192 @available(tvOS, unavailable)
1193 public func std() -> Swift::Double?
1194 public func mean() -> Swift::Double?
1195}
1196@available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1197extension CreateML::MLDataColumn where Element == Swift::Int {
1198 public func stdev() -> Swift::Double?
1199}
1200@available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1201extension CreateML::MLDataColumn where Element == Swift::Double {
1202 public func stdev() -> Swift::Double?
1203}
1204@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1205extension CreateML::MLDataColumn where Element == Swift::String {
1206 public init<T>(column: CreateML::MLDataColumn<T>) where T : CreateML::MLDataValueConvertible
1207}
1208@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1209extension CreateML::MLDataColumn where Element == CreateML::MLDataValue.CreateML::SequenceType {
1210 public init<T>(column: CreateML::MLDataColumn<T>) where T : CreateML::MLDataValueConvertible
1211}
1212@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1213extension CreateML::MLDataColumn where Element == [Swift::Int] {
1214 public init<T>(column: CreateML::MLDataColumn<T>) where T : CreateML::MLDataValueConvertible
1215}
1216@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1217extension CreateML::MLDataColumn where Element == [Swift::Double] {
1218 public init<T>(column: CreateML::MLDataColumn<T>) where T : CreateML::MLDataValueConvertible
1219}
1220@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1221extension CreateML::MLDataColumn where Element == [Swift::String] {
1222 public init<T>(column: CreateML::MLDataColumn<T>) where T : CreateML::MLDataValueConvertible
1223}
1224@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1225extension CreateML::MLDataColumn where Element == CreateML::MLDataValue.CreateML::DictionaryType {
1226 public init<T>(column: CreateML::MLDataColumn<T>) where T : CreateML::MLDataValueConvertible
1227}
1228@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1229extension CreateML::MLDataColumn : Swift::CustomReflectable {
1230 public var customMirror: Swift::Mirror {
1231 get
1232 }
1233}
1234@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1235extension CreateML::MLDataColumn : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
1236 public var description: Swift::String {
1237 get
1238 }
1239 public var debugDescription: Swift::String {
1240 get
1241 }
1242 public var playgroundDescription: Any {
1243 get
1244 }
1245}
1246@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1247public struct MLCheckpoint : Swift::Codable {
1248 public var url: Foundation::URL
1249 public var phase: CreateML::MLPhase
1250 public var iteration: Swift::Int
1251 public var date: Foundation::Date
1252 public var metrics: [CreateML::MLProgress.CreateML::Metric : Any] {
1253 get
1254 set
1255 }
1256 public init(from decoder: any Swift::Decoder) throws
1257 public func encode(to encoder: any Swift::Encoder) throws
1258}
1259@available(macOS 26.0, iOS 26.0, tvOS 26.0, visionOS 26.0, *)
1260extension CreateML::MLCheckpoint : Swift::Sendable {
1261}
1262extension CreateML::MLBoostedTreeClassifier {
1263 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1264 public struct ModelParameters {
1265 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
1266 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1267 @available(tvOS, unavailable)
1268 public var validationData: CreateML::MLDataTable? {
1269 get
1270 set
1271 }
1272 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1273 public var validation: CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters.CreateML::ValidationData {
1274 get
1275 set
1276 }
1277 public var maxDepth: Swift::Int
1278 public var maxIterations: Swift::Int
1279 public var minLossReduction: Swift::Double
1280 public var minChildWeight: Swift::Double
1281 public var randomSeed: Swift::Int
1282 public var stepSize: Swift::Double
1283 public var earlyStoppingRounds: Swift::Int?
1284 public var rowSubsample: Swift::Double
1285 public var columnSubsample: Swift::Double
1286 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1287 public init(validation: CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters.CreateML::ValidationData = .split(strategy: .automatic), maxDepth: Swift::Int = 6, maxIterations: Swift::Int = 10, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42, stepSize: Swift::Double = 0.3, earlyStoppingRounds: Swift::Int? = nil, rowSubsample: Swift::Double = 1.0, columnSubsample: Swift::Double = 1.0)
1288 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
1289 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1290 @available(tvOS, unavailable)
1291 public init(validationData: CreateML::MLDataTable?, maxDepth: Swift::Int = 6, maxIterations: Swift::Int = 10, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42, stepSize: Swift::Double = 0.3, earlyStoppingRounds: Swift::Int? = nil, rowSubsample: Swift::Double = 1.0, columnSubsample: Swift::Double = 1.0)
1292 }
1293}
1294@available(*, unavailable)
1295extension CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters : Swift::Sendable {
1296}
1297@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1298extension CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
1299 public var description: Swift::String {
1300 get
1301 }
1302 public var debugDescription: Swift::String {
1303 get
1304 }
1305 public var playgroundDescription: Any {
1306 get
1307 }
1308}
1309@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1310extension CreateML::MLDataValue.CreateML::SequenceType {
1311 public init()
1312 public init<S>(_ elements: S) where S : Swift::Sequence, S.Element == CreateML::MLDataValue
1313 public init<S>(_ elements: S) where S : Swift::Sequence, S.Element : CreateML::MLDataValueConvertible
1314}
1315@available(*, unavailable)
1316extension CreateML::MLDataValue.CreateML::SequenceType : Swift::Sendable {
1317}
1318@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1319extension CreateML::MLDataValue.CreateML::SequenceType : Swift::RandomAccessCollection {
1320 public typealias Element = CreateML::MLDataValue
1321 public typealias Index = Swift::Int
1322 public var startIndex: CreateML::MLDataValue.CreateML::SequenceType.CreateML::Index {
1323 get
1324 }
1325 public var endIndex: CreateML::MLDataValue.CreateML::SequenceType.CreateML::Index {
1326 get
1327 }
1328 public subscript(index: CreateML::MLDataValue.CreateML::SequenceType.CreateML::Index) -> CreateML::MLDataValue.CreateML::SequenceType.CreateML::Element {
1329 get
1330 }
1331 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1332 public typealias Indices = Swift::Range<CreateML::MLDataValue.CreateML::SequenceType.CreateML::Index>
1333 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1334 public typealias Iterator = Swift::IndexingIterator<CreateML::MLDataValue.CreateML::SequenceType>
1335 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1336 public typealias SubSequence = Swift::Slice<CreateML::MLDataValue.CreateML::SequenceType>
1337}
1338@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1339extension CreateML::MLDataValue.CreateML::SequenceType : Swift::ExpressibleByArrayLiteral {
1340 public init(arrayLiteral: CreateML::MLDataValue.CreateML::SequenceType.CreateML::Element...)
1341 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1342 public typealias ArrayLiteralElement = CreateML::MLDataValue.CreateML::SequenceType.CreateML::Element
1343}
1344@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1345extension CreateML::MLDataValue.CreateML::SequenceType : Swift::Equatable {
1346 public static func == (lhs: CreateML::MLDataValue.CreateML::SequenceType, rhs: CreateML::MLDataValue.CreateML::SequenceType) -> Swift::Bool
1347}
1348@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1349extension CreateML::MLDataValue.CreateML::SequenceType : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible {
1350 public var description: Swift::String {
1351 get
1352 }
1353 public var debugDescription: Swift::String {
1354 get
1355 }
1356}
1357@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1358extension CreateML::MLDataValue.CreateML::SequenceType : CreateML::MLDataValueConvertible {
1359 public static var dataValueType: CreateML::MLDataValue.CreateML::ValueType {
1360 get
1361 }
1362 public init?(from dataValue: CreateML::MLDataValue)
1363 public var dataValue: CreateML::MLDataValue {
1364 get
1365 }
1366}
1367@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1368extension Swift::Array : CreateML::MLDataValueConvertible where Element : CreateML::MLDataValueConvertible {
1369 public static var dataValueType: CreateML::MLDataValue.CreateML::ValueType {
1370 get
1371 }
1372 public init?(from dataValue: CreateML::MLDataValue)
1373 public var dataValue: CreateML::MLDataValue {
1374 get
1375 }
1376}
1377@available(macOS 12.0, iOS 15.0, *)
1378@available(tvOS, unavailable)
1379extension CreateML::MLHandPoseClassifier {
1380 public struct ModelParameters {
1381 public var validation: CreateML::MLHandPoseClassifier.CreateML::ModelParameters.CreateML::ValidationData
1382 public var batchSize: Swift::Int
1383 public var maximumIterations: Swift::Int
1384 public var augmentationOptions: CreateML::MLHandPoseClassifier.CreateML::ImageAugmentationOptions
1385 public var algorithm: CreateML::MLHandPoseClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType
1386 public init(validation: CreateML::MLHandPoseClassifier.CreateML::ModelParameters.CreateML::ValidationData = .split(strategy: .automatic), batchSize: Swift::Int = MLHandPoseClassifier.__Defaults.batchSize, maximumIterations: Swift::Int = MLHandPoseClassifier.__Defaults.maximumIterations, augmentationOptions: CreateML::MLHandPoseClassifier.CreateML::ImageAugmentationOptions = [], algorithm: CreateML::MLHandPoseClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType = .gcn)
1387 public enum ModelAlgorithmType : Swift::Equatable, Swift::Sendable {
1388 case gcn
1389 public static func == (a: CreateML::MLHandPoseClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType, b: CreateML::MLHandPoseClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType) -> Swift::Bool
1390 public func hash(into hasher: inout Swift::Hasher)
1391 public var hashValue: Swift::Int {
1392 get
1393 }
1394 }
1395 public enum ValidationData {
1396 case split(strategy: CreateML::MLSplitStrategy)
1397 case dataSource(CreateML::MLHandPoseClassifier.CreateML::DataSource)
1398 case none
1399 }
1400 }
1401}
1402@available(*, unavailable)
1403extension CreateML::MLHandPoseClassifier.CreateML::ModelParameters : Swift::Sendable {
1404}
1405@available(*, unavailable)
1406extension CreateML::MLHandPoseClassifier.CreateML::ModelParameters.CreateML::ValidationData : Swift::Sendable {
1407}
1408@available(macOS 12.0, iOS 15.0, *)
1409@available(tvOS, unavailable)
1410extension CreateML::MLHandPoseClassifier.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
1411 public var description: Swift::String {
1412 get
1413 }
1414 public var debugDescription: Swift::String {
1415 get
1416 }
1417 public var playgroundDescription: Any {
1418 get
1419 }
1420}
1421@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1422public struct MLTrainingSessionParameters : Swift::Sendable {
1423 public let sessionDirectory: Foundation::URL?
1424 public var reportInterval: Swift::Int
1425 public var checkpointInterval: Swift::Int
1426 public var iterations: Swift::Int
1427 public init(sessionDirectory: Foundation::URL? = nil, reportInterval: Swift::Int = 5, checkpointInterval: Swift::Int = 10, iterations: Swift::Int = 1000)
1428}
1429@_hasMissingDesignatedInitializers @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1430final public class MLTrainingSession<Task> {
1431 final public let parameters: CreateML::MLTrainingSessionParameters
1432 final public var date: Foundation::Date {
1433 get
1434 }
1435 final public var phase: CreateML::MLPhase {
1436 get
1437 }
1438 final public var iteration: Swift::Int {
1439 get
1440 }
1441 final public var checkpoints: [CreateML::MLCheckpoint] {
1442 get
1443 }
1444 final public func removeCheckpoints(_ predicate: (CreateML::MLCheckpoint) -> Swift::Bool) throws
1445 final public func reuseExtractedFeatures(from session: CreateML::MLTrainingSession<Task>) throws
1446 @objc deinit
1447}
1448@available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1449extension CreateML::MLTrainingSession : @unchecked Swift::Sendable {
1450}
1451@available(macOS 10.14, iOS 15.0, *)
1452@available(tvOS, unavailable)
1453extension CreateML::MLTextClassifier {
1454 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
1455 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
1456}
1457@available(macOS 10.14, iOS 15.0, *)
1458@available(tvOS, unavailable)
1459public struct MLImageClassifier : @unchecked Swift::Sendable {
1460 @available(macOS 11.0, iOS 15.0, *)
1461 @available(tvOS, unavailable)
1462 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
1463 public var model: CoreML::MLModel {
1464 get
1465 @available(macOS, introduced: 11.0, deprecated: 14.0, message: "Setting the model is not supported.")
1466 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
1467 @available(tvOS, unavailable)
1468 set
1469 }
1470 public let modelParameters: CreateML::MLImageClassifier.CreateML::ModelParameters
1471 public var trainingMetrics: CreateML::MLClassifierMetrics {
1472 get
1473 }
1474 public var validationMetrics: CreateML::MLClassifierMetrics {
1475 get
1476 }
1477 @available(macOS 11.0, iOS 15.0, *)
1478 @available(tvOS, unavailable)
1479 public init(trainingData: CreateML::MLImageClassifier.CreateML::DataSource, parameters: CreateML::MLImageClassifier.CreateML::ModelParameters = ModelParameters(
1480 validation: .split(strategy: .automatic),
1481 augmentation: [],
1482 algorithm: .transferLearning(
… 4 unchanged lines …
1487 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
1488 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
1489 @available(tvOS, unavailable)
1490 public init(trainingData: [Swift.String : [Foundation.URL]], parameters: CreateML.MLImageClassifier.ModelParameters = ModelParameters(validationData: nil)) throws
1491}
1492@available(macOS 10.14, iOS 15.0, *)
1493@available(tvOS, unavailable)
1494extension CreateML.MLImageClassifier : Swift.CustomStringConvertible {
1495 public var description: Swift.String {
1496 get
1497 }
1498}
1499@available(macOS 10.14, iOS 15.0, *)
1500@available(tvOS, unavailable)
1501extension CreateML.MLImageClassifier : Swift.CustomDebugStringConvertible {
1502 public var debugDescription: Swift.String {
1503 get
1504 }
1505}
1506@available(macOS 10.14, iOS 15.0, *)
1507@available(tvOS, unavailable)
1508extension CreateML.MLImageClassifier : Swift.CustomPlaygroundDisplayConvertible {
1509 public var playgroundDescription: Any {
1510 get
1511 }
1512}
1513@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1514public struct MLProgress : Swift.Codable {
1515 public var elapsedTime: Foundation.TimeInterval
1516 public var phase: CreateML.MLPhase
1517 public var itemCount: Swift.Int
1518 public var totalItemCount: Swift.Int?
1519 public var metrics: [CreateML.MLProgress.Metric : Any]
1520 public init(phase: CreateML.MLPhase)
1521 public init?(progress: Foundation.Progress)
1522 public enum Metric : Swift.String, Swift.Codable, Swift.Hashable, Swift.CaseIterable, Swift.Sendable {
1523 case loss
1524 case contentLoss
1525 case styleLoss
1487 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
1488 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
1489 @available(tvOS, unavailable)
1490 public init(trainingData: [Swift::String : [Foundation::URL]], parameters: CreateML::MLImageClassifier.CreateML::ModelParameters = ModelParameters(validationData: nil)) throws
1491}
1492@available(macOS 10.14, iOS 15.0, *)
1493@available(tvOS, unavailable)
1494extension CreateML::MLImageClassifier : Swift::CustomStringConvertible {
1495 public var description: Swift::String {
1496 get
1497 }
1498}
1499@available(macOS 10.14, iOS 15.0, *)
1500@available(tvOS, unavailable)
1501extension CreateML::MLImageClassifier : Swift::CustomDebugStringConvertible {
1502 public var debugDescription: Swift::String {
1503 get
1504 }
1505}
1506@available(macOS 10.14, iOS 15.0, *)
1507@available(tvOS, unavailable)
1508extension CreateML::MLImageClassifier : Swift::CustomPlaygroundDisplayConvertible {
1509 public var playgroundDescription: Any {
1510 get
1511 }
1512}
1513@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1514public struct MLProgress : Swift::Codable {
1515 public var elapsedTime: Foundation::TimeInterval
1516 public var phase: CreateML::MLPhase
1517 public var itemCount: Swift::Int
1518 public var totalItemCount: Swift::Int?
1519 public var metrics: [CreateML::MLProgress.CreateML::Metric : Any]
1520 public init(phase: CreateML::MLPhase)
1521 public init?(progress: Foundation::Progress)
1522 public enum Metric : Swift::String, Swift::Codable, Swift::Hashable, Swift::CaseIterable, Swift::Sendable {
1523 case loss
1524 case contentLoss
1525 case styleLoss
… 9 unchanged lines …
1535 case validationRootMeanSquaredError
1536 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1537 case validationMaximumError
1538 public static var allCases: [CreateML.MLProgress.Metric] {
1539 get
1540 }
1541 public init?(rawValue: Swift.String)
1542 @available(iOS 15.0, tvOS 16.0, macOS 11.0, *)
1543 public typealias AllCases = [CreateML.MLProgress.Metric]
1544 @available(iOS 15.0, tvOS 16.0, macOS 11.0, *)
1545 public typealias RawValue = Swift.String
1546 public var rawValue: Swift.String {
1547 get
1548 }
1549 }
1550 public init(from decoder: any Swift.Decoder) throws
1551 public func encode(to encoder: any Swift.Encoder) throws
1552}
1553@available(*, unavailable)
1554extension CreateML.MLProgress : Swift.Sendable {
1555}
1556@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1557extension CreateML.MLProgress {
1558 public static let elapsedTimeKey: Foundation.ProgressUserInfoKey
1559 public static let phaseKey: Foundation.ProgressUserInfoKey
1560 public static let itemCountKey: Foundation.ProgressUserInfoKey
1561 public static let totalItemCountKey: Foundation.ProgressUserInfoKey
1562 public static let lossKey: Foundation.ProgressUserInfoKey
1563 public static let contentLossKey: Foundation.ProgressUserInfoKey
1564 public static let styleLossKey: Foundation.ProgressUserInfoKey
1565 public static let accuracyKey: Foundation.ProgressUserInfoKey
1566 public static let validationLossKey: Foundation.ProgressUserInfoKey
1567 public static let validationAccuracyKey: Foundation.ProgressUserInfoKey
1568 public static let stylizedImageKey: Foundation.ProgressUserInfoKey
1569 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1570 public static let rootMeanSquaredErrorKey: Foundation.ProgressUserInfoKey
1571 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1572 public static let maximumErrorKey: Foundation.ProgressUserInfoKey
1573 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1574 public static let validationRootMeanSquaredErrorKey: Foundation.ProgressUserInfoKey
1575 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1576 public static let validationMaximumErrorKey: Foundation.ProgressUserInfoKey
1577}
1578@available(macOS 12.0, iOS 15.0, *)
1579@available(tvOS, unavailable)
1580extension CreateML.MLHandPoseClassifier {
1581 public struct __Defaults : Swift.Sendable {
1582 public static let batchSize: Swift.Int
1583 public static let maximumIterations: Swift.Int
1584 public static let sessionIdColumnName: Swift.String
1585 public static let featureColumnName: Swift.String
1586 public static let labelColumnName: Swift.String
1587 public static let imageColumnName: Swift.String
1588 }
1589}
1590extension CreateML.MLImageClassifier {
1591 @available(macOS 10.14, iOS 15.0, *)
1592 @available(tvOS, unavailable)
1593 public func evaluation(on labeledImages: CreateML.MLImageClassifier.DataSource) -> CreateML.MLClassifierMetrics
1594 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
1595 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
1596 @available(tvOS, unavailable)
1597 public func evaluation(on labeledImages: [Swift.String : [Foundation.URL]]) -> CreateML.MLClassifierMetrics
1598}
1599extension CreateML.MLRandomForestClassifier {
1600 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1601 public struct ModelParameters {
1602 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
1603 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1604 @available(tvOS, unavailable)
1605 public var validationData: CreateML.MLDataTable? {
1606 get
1607 set
1608 }
1609 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1610 public var validation: CreateML.MLRandomForestClassifier.ModelParameters.ValidationData {
1611 get
1612 set
1613 }
1614 public var maxDepth: Swift.Int
1615 public var maxIterations: Swift.Int
1616 public var minLossReduction: Swift.Double
1617 public var minChildWeight: Swift.Double
1618 public var randomSeed: Swift.Int
1619 public var rowSubsample: Swift.Double
1620 public var columnSubsample: Swift.Double
1621 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1622 public init(validation: CreateML.MLRandomForestClassifier.ModelParameters.ValidationData = .split(strategy: .automatic), maxDepth: Swift.Int = 6, maxIterations: Swift.Int = 10, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42, rowSubsample: Swift.Double = 0.8, columnSubsample: Swift.Double = 0.8)
1623 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
1624 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1625 @available(tvOS, unavailable)
1626 public init(validationData: CreateML.MLDataTable?, maxDepth: Swift.Int = 6, maxIterations: Swift.Int = 10, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42, rowSubsample: Swift.Double = 0.8, columnSubsample: Swift.Double = 0.8)
1627 }
1628}
1629@available(*, unavailable)
1630extension CreateML.MLRandomForestClassifier.ModelParameters : Swift.Sendable {
1631}
1632@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1633extension CreateML.MLRandomForestClassifier.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
1634 public var description: Swift.String {
1635 get
1636 }
1637 public var debugDescription: Swift.String {
1638 get
1639 }
1640 public var playgroundDescription: Any {
1535 case validationRootMeanSquaredError
1536 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1537 case validationMaximumError
1538 public static var allCases: [CreateML::MLProgress.CreateML::Metric] {
1539 get
1540 }
1541 public init?(rawValue: Swift::String)
1542 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1543 public typealias AllCases = [CreateML::MLProgress.CreateML::Metric]
1544 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1545 public typealias RawValue = Swift::String
1546 public var rawValue: Swift::String {
1547 get
1548 }
1549 }
1550 public init(from decoder: any Swift::Decoder) throws
1551 public func encode(to encoder: any Swift::Encoder) throws
1552}
1553@available(*, unavailable)
1554extension CreateML::MLProgress : Swift::Sendable {
1555}
1556@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1557extension CreateML::MLProgress {
1558 public static let elapsedTimeKey: Foundation::ProgressUserInfoKey
1559 public static let phaseKey: Foundation::ProgressUserInfoKey
1560 public static let itemCountKey: Foundation::ProgressUserInfoKey
1561 public static let totalItemCountKey: Foundation::ProgressUserInfoKey
1562 public static let lossKey: Foundation::ProgressUserInfoKey
1563 public static let contentLossKey: Foundation::ProgressUserInfoKey
1564 public static let styleLossKey: Foundation::ProgressUserInfoKey
1565 public static let accuracyKey: Foundation::ProgressUserInfoKey
1566 public static let validationLossKey: Foundation::ProgressUserInfoKey
1567 public static let validationAccuracyKey: Foundation::ProgressUserInfoKey
1568 public static let stylizedImageKey: Foundation::ProgressUserInfoKey
1569 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1570 public static let rootMeanSquaredErrorKey: Foundation::ProgressUserInfoKey
1571 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1572 public static let maximumErrorKey: Foundation::ProgressUserInfoKey
1573 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1574 public static let validationRootMeanSquaredErrorKey: Foundation::ProgressUserInfoKey
1575 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
1576 public static let validationMaximumErrorKey: Foundation::ProgressUserInfoKey
1577}
1578@available(macOS 12.0, iOS 15.0, *)
1579@available(tvOS, unavailable)
1580extension CreateML::MLHandPoseClassifier {
1581 public struct __Defaults : Swift::Sendable {
1582 public static let batchSize: Swift::Int
1583 public static let maximumIterations: Swift::Int
1584 public static let sessionIdColumnName: Swift::String
1585 public static let featureColumnName: Swift::String
1586 public static let labelColumnName: Swift::String
1587 public static let imageColumnName: Swift::String
1588 }
1589}
1590extension CreateML::MLImageClassifier {
1591 @available(macOS 10.14, iOS 15.0, *)
1592 @available(tvOS, unavailable)
1593 public func evaluation(on labeledImages: CreateML::MLImageClassifier.CreateML::DataSource) -> CreateML::MLClassifierMetrics
1594 @available(macOS, introduced: 10.14, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
1595 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
1596 @available(tvOS, unavailable)
1597 public func evaluation(on labeledImages: [Swift::String : [Foundation::URL]]) -> CreateML::MLClassifierMetrics
1598}
1599extension CreateML::MLRandomForestClassifier {
1600 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1601 public struct ModelParameters {
1602 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
1603 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1604 @available(tvOS, unavailable)
1605 public var validationData: CreateML::MLDataTable? {
1606 get
1607 set
1608 }
1609 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1610 public var validation: CreateML::MLRandomForestClassifier.CreateML::ModelParameters.CreateML::ValidationData {
1611 get
1612 set
1613 }
1614 public var maxDepth: Swift::Int
1615 public var maxIterations: Swift::Int
1616 public var minLossReduction: Swift::Double
1617 public var minChildWeight: Swift::Double
1618 public var randomSeed: Swift::Int
1619 public var rowSubsample: Swift::Double
1620 public var columnSubsample: Swift::Double
1621 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
1622 public init(validation: CreateML::MLRandomForestClassifier.CreateML::ModelParameters.CreateML::ValidationData = .split(strategy: .automatic), maxDepth: Swift::Int = 6, maxIterations: Swift::Int = 10, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42, rowSubsample: Swift::Double = 0.8, columnSubsample: Swift::Double = 0.8)
1623 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
1624 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
1625 @available(tvOS, unavailable)
1626 public init(validationData: CreateML::MLDataTable?, maxDepth: Swift::Int = 6, maxIterations: Swift::Int = 10, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42, rowSubsample: Swift::Double = 0.8, columnSubsample: Swift::Double = 0.8)
1627 }
1628}
1629@available(*, unavailable)
1630extension CreateML::MLRandomForestClassifier.CreateML::ModelParameters : Swift::Sendable {
1631}
1632@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1633extension CreateML::MLRandomForestClassifier.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
1634 public var description: Swift::String {
1635 get
1636 }
1637 public var debugDescription: Swift::String {
1638 get
1639 }
1640 public var playgroundDescription: Any {
… 2 unchanged lines …
1643}
1644@available(macOS 12.0, iOS 15.0, *)
1645@available(tvOS, unavailable)
1646extension CreateML.MLHandActionClassifier {
1647 public struct __Defaults : Swift.Sendable {
1648 public static let batchSize: Swift.Int
1649 public static let maximumIterations: Swift.Int
1650 public static let predictionWindowSize: Swift.Int
1651 public static let sessionIdColumnName: Swift.String
1652 public static let featureColumnName: Swift.String
1653 public static let labelColumnName: Swift.String
1654 public static let videoColumnName: Swift.String
1655 public static let startTimeColumnName: Swift.String
1656 public static let endTimeColumnName: Swift.String
1657 public static let targetFrameRate: Swift.Double
1658 }
1659}
1660extension CreateML.MLRandomForestRegressor.ModelParameters {
1661 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1662 public enum ValidationData {
1663 case split(strategy: CreateML.MLSplitStrategy)
1664 @available(macOS, introduced: 11.0, deprecated: 14.0)
1665 @available(iOS, introduced: 15.0, deprecated: 17.0)
1666 @available(tvOS, introduced: 16.0, deprecated: 17.0)
1667 case table(CreateML.MLDataTable)
1668 @available(macOS 13.0, iOS 16.0, tvOS 16.0, *)
1669 case dataFrame(TabularData.DataFrame)
1670 case none
1671 }
1672}
1673@available(*, unavailable)
1674extension CreateML.MLRandomForestRegressor.ModelParameters.ValidationData : Swift.Sendable {
1675}
1676extension CreateML.MLClassifierMetrics {
1677 @available(macOS, introduced: 10.15, deprecated: 14.0, message: "Evaluation from MLDataTable is deprecated.")
1678 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Evaluation from MLDataTable is deprecated.")
1679 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Evaluation from MLDataTable is deprecated.")
1680 public static func __evaluation(on table: CreateML.MLDataTable, labelColumn: Swift.String, predictionColumn: Swift.String, classes: [Swift.String]) throws -> CreateML.MLClassifierMetrics
1681}
1682extension CreateML.MLRegressorMetrics {
1683 @available(macOS, introduced: 10.15, deprecated: 14.0, message: "Evaluation from MLDataTable is deprecated.")
1684 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Evaluation from MLDataTable is deprecated.")
1685 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Evaluation from MLDataTable is deprecated.")
1686 public static func __evaluation(on table: CreateML.MLDataTable, targetColumn: Swift.String, predictionColumn: Swift.String) throws -> CreateML.MLRegressorMetrics
1687}
1688@available(*, unavailable)
1689extension CreateML.MLDataValue.MultiArrayType : Swift.Sendable {
1690}
1691@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1692extension CreateML.MLDataValue.MultiArrayType : Swift.Equatable {
1693 public init(shape: [Swift.Int])
1694 public init(_ contents: CoreML.MLMultiArray)
1695 public subscript(index: Swift.Int) -> Swift.Double {
1696 get
1697 }
1698 public subscript(index: [Swift.Int]) -> Swift.Double {
1699 get
1700 }
1701 public var mlMultiArray: CoreML.MLMultiArray {
1702 get
1703 }
1704 public static func == (lhs: CreateML.MLDataValue.MultiArrayType, rhs: CreateML.MLDataValue.MultiArrayType) -> Swift.Bool
1705}
1706@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1707extension CreateML.MLDataValue.MultiArrayType : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
1708 public var description: Swift.String {
1709 get
1710 }
1711 public var debugDescription: Swift.String {
1712 get
1713 }
1714}
1715@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1716extension CreateML.MLDataValue.MultiArrayType : CreateML.MLDataValueConvertible {
1717 public static var dataValueType: CreateML.MLDataValue.ValueType {
1718 get
1719 }
1720 public init?(from dataValue: CreateML.MLDataValue)
1721 public init()
1722 public var dataValue: CreateML.MLDataValue {
1723 get
1724 }
1725}
1726extension CreateML.MLSoundClassifier.ModelParameters {
1727 @available(macOS 11.0, iOS 15.0, *)
1728 @available(tvOS, unavailable)
1729 public enum FeatureExtractorType : Swift.Equatable, Swift.CustomStringConvertible, Swift.Sendable {
1730 case vggish(revision: Swift.Int = 1)
1731 @available(macOS 12.0, iOS 15.0, *)
1732 @available(tvOS, unavailable)
1733 case audioFeaturePrint(type: CreateML.MLSoundClassifier.ModelParameters.FeaturePrintType = .sound, revision: Swift.Int = 1)
1734 public var description: Swift.String {
1735 get
1736 }
1737 public static func == (a: CreateML.MLSoundClassifier.ModelParameters.FeatureExtractorType, b: CreateML.MLSoundClassifier.ModelParameters.FeatureExtractorType) -> Swift.Bool
1738 }
1739}
1740extension Swift.Int32 {
1741 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
1742 public static var mlMultiArrayDataType: CoreML.MLMultiArrayDataType {
1743 get
1744 }
1745}
1746extension Swift.Float {
1747 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
1748 public static var mlMultiArrayDataType: CoreML.MLMultiArrayDataType {
1749 get
1750 }
1751}
1752extension Swift.Double {
1753 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
1754 public static var mlMultiArrayDataType: CoreML.MLMultiArrayDataType {
1755 get
1756 }
1757}
1758@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1759extension CreateML.MLDataTable {
1760 public struct Row {
1761 public typealias Keys = CreateML.MLDataTable.ColumnNames
1762 public typealias Key = CreateML.MLDataTable.Row.Keys.Element
1763 public typealias Value = CreateML.MLDataTable.Row.Values.Element
1764 public var keys: CreateML.MLDataTable.Row.Keys {
1765 get
1766 }
1767 public var values: CreateML.MLDataTable.Row.Values {
1768 get
1769 }
1770 public subscript(name: CreateML.MLDataTable.Row.Key) -> CreateML.MLDataTable.Row.Value? {
1771 get
1772 }
1773 public subscript<T>(name: CreateML.MLDataTable.Row.Key, type: T.Type) -> T? where T : CreateML.MLDataValueConvertible {
1774 get
1775 }
1776 }
1777}
1778@available(*, unavailable)
1779extension CreateML.MLDataTable.Row : Swift.Sendable {
1780}
1781@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1782extension CreateML.MLDataTable.Row : Swift.Equatable {
1783 public static func == (lhs: CreateML.MLDataTable.Row, rhs: CreateML.MLDataTable.Row) -> Swift.Bool
1784}
1785@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1786extension CreateML.MLDataTable.Row : Swift.Collection {
1787 public typealias Element = (CreateML.MLDataTable.Row.Key, CreateML.MLDataTable.Row.Value)
1788 public typealias Index = Swift.Int
1789 public var count: Swift.Int {
1790 get
1791 }
1792 public var isEmpty: Swift.Bool {
1793 get
1794 }
1795 public var startIndex: Swift.Int {
1796 get
1797 }
1798 public var endIndex: Swift.Int {
1799 get
1800 }
1801 public func index(after i: Swift.Int) -> Swift.Int
1802 public func index(forKey key: CreateML.MLDataTable.Row.Key) -> CreateML.MLDataTable.Row.Index?
1803 public subscript(position: Swift.Int) -> (CreateML.MLDataTable.Row.Key, CreateML.MLDataTable.Row.Value) {
1804 get
1805 }
1806 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1807 public typealias Indices = Swift.DefaultIndices<CreateML.MLDataTable.Row>
1808 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1809 public typealias Iterator = Swift.IndexingIterator<CreateML.MLDataTable.Row>
1810 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1811 public typealias SubSequence = Swift.Slice<CreateML.MLDataTable.Row>
1812}
1813@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1814extension CreateML.MLDataTable.Row : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
1815 public var description: Swift.String {
1816 get
1817 }
1818 public var debugDescription: Swift.String {
1819 get
1820 }
1821 public var playgroundDescription: Any {
1822 get
1823 }
1824}
1825@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1826extension CreateML.MLDataTable.Row {
1827 public struct Values : Swift.RandomAccessCollection {
1828 public var startIndex: Swift.Int {
1829 get
1830 }
1831 public var endIndex: Swift.Int {
1832 get
1833 }
1834 public subscript(i: Swift.Int) -> CreateML.MLDataValue {
1835 get
1836 }
1837 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1838 public typealias Element = CreateML.MLDataValue
1839 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1840 public typealias Index = Swift.Int
1841 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1842 public typealias Indices = Swift.Range<Swift.Int>
1843 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1844 public typealias Iterator = Swift.IndexingIterator<CreateML.MLDataTable.Row.Values>
1845 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
1846 public typealias SubSequence = Swift.Slice<CreateML.MLDataTable.Row.Values>
1847 }
1848}
1849@available(*, unavailable)
1850extension CreateML.MLDataTable.Row.Values : Swift.Sendable {
1851}
1852@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1853extension CreateML.MLDataTable.Row.Values : Swift.Equatable {
1854 public static func == (lhs: CreateML.MLDataTable.Row.Values, rhs: CreateML.MLDataTable.Row.Values) -> Swift.Bool
1855}
1856@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1857extension CreateML.MLDataTable.Row.Values : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
1858 public var description: Swift.String {
1859 get
1860 }
1861 public var debugDescription: Swift.String {
1862 get
1863 }
1864 public var playgroundDescription: Any {
1643}
1644@available(macOS 12.0, iOS 15.0, *)
1645@available(tvOS, unavailable)
1646extension CreateML::MLHandActionClassifier {
1647 public struct __Defaults : Swift::Sendable {
1648 public static let batchSize: Swift::Int
1649 public static let maximumIterations: Swift::Int
1650 public static let predictionWindowSize: Swift::Int
1651 public static let sessionIdColumnName: Swift::String
1652 public static let featureColumnName: Swift::String
1653 public static let labelColumnName: Swift::String
1654 public static let videoColumnName: Swift::String
1655 public static let startTimeColumnName: Swift::String
1656 public static let endTimeColumnName: Swift::String
1657 public static let targetFrameRate: Swift::Double
1658 }
1659}
1660extension CreateML::MLRandomForestRegressor.CreateML::ModelParameters {
1661 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
1662 public enum ValidationData {
1663 case split(strategy: CreateML::MLSplitStrategy)
1664 @available(macOS, introduced: 11.0, deprecated: 14.0)
1665 @available(iOS, introduced: 15.0, deprecated: 17.0)
1666 @available(tvOS, introduced: 16.0, deprecated: 17.0)
1667 case table(CreateML::MLDataTable)
1668 @available(macOS 13.0, iOS 16.0, tvOS 16.0, *)
1669 case dataFrame(TabularData::DataFrame)
1670 case none
1671 }
1672}
1673@available(*, unavailable)
1674extension CreateML::MLRandomForestRegressor.CreateML::ModelParameters.CreateML::ValidationData : Swift::Sendable {
1675}
1676extension CreateML::MLClassifierMetrics {
1677 @available(macOS, introduced: 10.15, deprecated: 14.0, message: "Evaluation from MLDataTable is deprecated.")
1678 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Evaluation from MLDataTable is deprecated.")
1679 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Evaluation from MLDataTable is deprecated.")
1680 public static func __evaluation(on table: CreateML::MLDataTable, labelColumn: Swift::String, predictionColumn: Swift::String, classes: [Swift::String]) throws -> CreateML::MLClassifierMetrics
1681}
1682extension CreateML::MLRegressorMetrics {
1683 @available(macOS, introduced: 10.15, deprecated: 14.0, message: "Evaluation from MLDataTable is deprecated.")
1684 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Evaluation from MLDataTable is deprecated.")
1685 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Evaluation from MLDataTable is deprecated.")
1686 public static func __evaluation(on table: CreateML::MLDataTable, targetColumn: Swift::String, predictionColumn: Swift::String) throws -> CreateML::MLRegressorMetrics
1687}
1688@available(*, unavailable)
1689extension CreateML::MLDataValue.CreateML::MultiArrayType : Swift::Sendable {
1690}
1691@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1692extension CreateML::MLDataValue.CreateML::MultiArrayType : Swift::Equatable {
1693 public init(shape: [Swift::Int])
1694 public init(_ contents: CoreML::MLMultiArray)
1695 public subscript(index: Swift::Int) -> Swift::Double {
1696 get
1697 }
1698 public subscript(index: [Swift::Int]) -> Swift::Double {
1699 get
1700 }
1701 public var mlMultiArray: CoreML::MLMultiArray {
1702 get
1703 }
1704 public static func == (lhs: CreateML::MLDataValue.CreateML::MultiArrayType, rhs: CreateML::MLDataValue.CreateML::MultiArrayType) -> Swift::Bool
1705}
1706@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1707extension CreateML::MLDataValue.CreateML::MultiArrayType : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible {
1708 public var description: Swift::String {
1709 get
1710 }
1711 public var debugDescription: Swift::String {
1712 get
1713 }
1714}
1715@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1716extension CreateML::MLDataValue.CreateML::MultiArrayType : CreateML::MLDataValueConvertible {
1717 public static var dataValueType: CreateML::MLDataValue.CreateML::ValueType {
1718 get
1719 }
1720 public init?(from dataValue: CreateML::MLDataValue)
1721 public init()
1722 public var dataValue: CreateML::MLDataValue {
1723 get
1724 }
1725}
1726extension CreateML::MLSoundClassifier.CreateML::ModelParameters {
1727 @available(macOS 11.0, iOS 15.0, *)
1728 @available(tvOS, unavailable)
1729 public enum FeatureExtractorType : Swift::Equatable, Swift::CustomStringConvertible, Swift::Sendable {
1730 case vggish(revision: Swift::Int = 1)
1731 @available(macOS 12.0, iOS 15.0, *)
1732 @available(tvOS, unavailable)
1733 case audioFeaturePrint(type: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeaturePrintType = .sound, revision: Swift::Int = 1)
1734 public var description: Swift::String {
1735 get
1736 }
1737 public static func == (a: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeatureExtractorType, b: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeatureExtractorType) -> Swift::Bool
1738 }
1739}
1740extension Swift::Int32 {
1741 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
1742 public static var mlMultiArrayDataType: CoreML::MLMultiArrayDataType {
1743 get
1744 }
1745}
1746extension Swift::Float {
1747 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
1748 public static var mlMultiArrayDataType: CoreML::MLMultiArrayDataType {
1749 get
1750 }
1751}
1752extension Swift::Double {
1753 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
1754 public static var mlMultiArrayDataType: CoreML::MLMultiArrayDataType {
1755 get
1756 }
1757}
1758@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1759extension CreateML::MLDataTable {
1760 public struct Row {
1761 public typealias Keys = CreateML::MLDataTable.CreateML::ColumnNames
1762 public typealias Key = CreateML::MLDataTable.CreateML::Row.CreateML::Keys.CreateML::Element
1763 public typealias Value = CreateML::MLDataTable.CreateML::Row.CreateML::Values.CreateML::Element
1764 public var keys: CreateML::MLDataTable.CreateML::Row.CreateML::Keys {
1765 get
1766 }
1767 public var values: CreateML::MLDataTable.CreateML::Row.CreateML::Values {
1768 get
1769 }
1770 public subscript(name: CreateML::MLDataTable.CreateML::Row.CreateML::Key) -> CreateML::MLDataTable.CreateML::Row.CreateML::Value? {
1771 get
1772 }
1773 public subscript<T>(name: CreateML::MLDataTable.CreateML::Row.CreateML::Key, type: T.Type) -> T? where T : CreateML::MLDataValueConvertible {
1774 get
1775 }
1776 }
1777}
1778@available(*, unavailable)
1779extension CreateML::MLDataTable.CreateML::Row : Swift::Sendable {
1780}
1781@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1782extension CreateML::MLDataTable.CreateML::Row : Swift::Equatable {
1783 public static func == (lhs: CreateML::MLDataTable.CreateML::Row, rhs: CreateML::MLDataTable.CreateML::Row) -> Swift::Bool
1784}
1785@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1786extension CreateML::MLDataTable.CreateML::Row : Swift::Collection {
1787 public typealias Element = (CreateML::MLDataTable.CreateML::Row.CreateML::Key, CreateML::MLDataTable.CreateML::Row.CreateML::Value)
1788 public typealias Index = Swift::Int
1789 public var count: Swift::Int {
1790 get
1791 }
1792 public var isEmpty: Swift::Bool {
1793 get
1794 }
1795 public var startIndex: Swift::Int {
1796 get
1797 }
1798 public var endIndex: Swift::Int {
1799 get
1800 }
1801 public func index(after i: Swift::Int) -> Swift::Int
1802 public func index(forKey key: CreateML::MLDataTable.CreateML::Row.CreateML::Key) -> CreateML::MLDataTable.CreateML::Row.CreateML::Index?
1803 public subscript(position: Swift::Int) -> (CreateML::MLDataTable.CreateML::Row.CreateML::Key, CreateML::MLDataTable.CreateML::Row.CreateML::Value) {
1804 get
1805 }
1806 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1807 public typealias Indices = Swift::DefaultIndices<CreateML::MLDataTable.CreateML::Row>
1808 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1809 public typealias Iterator = Swift::IndexingIterator<CreateML::MLDataTable.CreateML::Row>
1810 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1811 public typealias SubSequence = Swift::Slice<CreateML::MLDataTable.CreateML::Row>
1812}
1813@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1814extension CreateML::MLDataTable.CreateML::Row : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
1815 public var description: Swift::String {
1816 get
1817 }
1818 public var debugDescription: Swift::String {
1819 get
1820 }
1821 public var playgroundDescription: Any {
1822 get
1823 }
1824}
1825@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1826extension CreateML::MLDataTable.CreateML::Row {
1827 public struct Values : Swift::RandomAccessCollection {
1828 public var startIndex: Swift::Int {
1829 get
1830 }
1831 public var endIndex: Swift::Int {
1832 get
1833 }
1834 public subscript(i: Swift::Int) -> CreateML::MLDataValue {
1835 get
1836 }
1837 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1838 public typealias Element = CreateML::MLDataValue
1839 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1840 public typealias Index = Swift::Int
1841 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1842 public typealias Indices = Swift::Range<Swift::Int>
1843 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1844 public typealias Iterator = Swift::IndexingIterator<CreateML::MLDataTable.CreateML::Row.CreateML::Values>
1845 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1846 public typealias SubSequence = Swift::Slice<CreateML::MLDataTable.CreateML::Row.CreateML::Values>
1847 }
1848}
1849@available(*, unavailable)
1850extension CreateML::MLDataTable.CreateML::Row.CreateML::Values : Swift::Sendable {
1851}
1852@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1853extension CreateML::MLDataTable.CreateML::Row.CreateML::Values : Swift::Equatable {
1854 public static func == (lhs: CreateML::MLDataTable.CreateML::Row.CreateML::Values, rhs: CreateML::MLDataTable.CreateML::Row.CreateML::Values) -> Swift::Bool
1855}
1856@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1857extension CreateML::MLDataTable.CreateML::Row.CreateML::Values : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
1858 public var description: Swift::String {
1859 get
1860 }
1861 public var debugDescription: Swift::String {
1862 get
1863 }
1864 public var playgroundDescription: Any {
… 3 unchanged lines …
1868@available(macOS 12.0, iOS 15.0, *)
1869@available(tvOS, unavailable)
1870public struct MLHandActionClassifier {
1871 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
1872 public var model: CoreML.MLModel
1873 public let modelParameters: CreateML.MLHandActionClassifier.ModelParameters
1874 public var trainingMetrics: CreateML.MLClassifierMetrics
1875 public var validationMetrics: CreateML.MLClassifierMetrics
1876 public struct Prediction : Swift.Sendable {
1877 public var frameRange: Swift.Range<Swift.Int>
1878 public var results: [(label: Swift.String, confidence: Swift.Double)]
1879 }
1880 public init(trainingData: CreateML.MLHandActionClassifier.DataSource, parameters: CreateML.MLHandActionClassifier.ModelParameters = ModelParameters()) throws
1881 public init(checkpoint: CreateML.MLCheckpoint) throws
1882 public static func train(trainingData: CreateML.MLHandActionClassifier.DataSource, parameters: CreateML.MLHandActionClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLHandActionClassifier>
1883 public static func makeTrainingSession(trainingData: CreateML.MLHandActionClassifier.DataSource, parameters: CreateML.MLHandActionClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLHandActionClassifier>
1884 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLHandActionClassifier>
1885 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLHandActionClassifier>) throws -> CreateML.MLJob<CreateML.MLHandActionClassifier>
1886 public func prediction(from video: Foundation.URL) throws -> [CreateML.MLHandActionClassifier.Prediction]
1887 public func predictions(from videos: [Foundation.URL]) throws -> [[CreateML.MLHandActionClassifier.Prediction]]
1888 public func evaluation(on annotatedVideos: CreateML.MLHandActionClassifier.DataSource) throws -> CreateML.MLClassifierMetrics
1889 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
1890 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
1891}
1892@available(*, unavailable)
1893extension CreateML.MLHandActionClassifier : Swift.Sendable {
1894}
1895@available(macOS 12.0, iOS 15.0, *)
1896@available(tvOS, unavailable)
1897extension CreateML.MLHandActionClassifier : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
1898 public var description: Swift.String {
1899 get
1900 }
1901 public var debugDescription: Swift.String {
1902 get
1903 }
1904 public var playgroundDescription: Any {
1868@available(macOS 12.0, iOS 15.0, *)
1869@available(tvOS, unavailable)
1870public struct MLHandActionClassifier {
1871 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
1872 public var model: CoreML::MLModel
1873 public let modelParameters: CreateML::MLHandActionClassifier.CreateML::ModelParameters
1874 public var trainingMetrics: CreateML::MLClassifierMetrics
1875 public var validationMetrics: CreateML::MLClassifierMetrics
1876 public struct Prediction : Swift::Sendable {
1877 public var frameRange: Swift::Range<Swift::Int>
1878 public var results: [(label: Swift::String, confidence: Swift::Double)]
1879 }
1880 public init(trainingData: CreateML::MLHandActionClassifier.CreateML::DataSource, parameters: CreateML::MLHandActionClassifier.CreateML::ModelParameters = ModelParameters()) throws
1881 public init(checkpoint: CreateML::MLCheckpoint) throws
1882 public static func train(trainingData: CreateML::MLHandActionClassifier.CreateML::DataSource, parameters: CreateML::MLHandActionClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLHandActionClassifier>
1883 public static func makeTrainingSession(trainingData: CreateML::MLHandActionClassifier.CreateML::DataSource, parameters: CreateML::MLHandActionClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLHandActionClassifier>
1884 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLHandActionClassifier>
1885 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLHandActionClassifier>) throws -> CreateML::MLJob<CreateML::MLHandActionClassifier>
1886 public func prediction(from video: Foundation::URL) throws -> [CreateML::MLHandActionClassifier.CreateML::Prediction]
1887 public func predictions(from videos: [Foundation::URL]) throws -> [[CreateML::MLHandActionClassifier.CreateML::Prediction]]
1888 public func evaluation(on annotatedVideos: CreateML::MLHandActionClassifier.CreateML::DataSource) throws -> CreateML::MLClassifierMetrics
1889 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
1890 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
1891}
1892@available(*, unavailable)
1893extension CreateML::MLHandActionClassifier : Swift::Sendable {
1894}
1895@available(macOS 12.0, iOS 15.0, *)
1896@available(tvOS, unavailable)
1897extension CreateML::MLHandActionClassifier : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
1898 public var description: Swift::String {
1899 get
1900 }
1901 public var debugDescription: Swift::String {
1902 get
1903 }
1904 public var playgroundDescription: Any {
… 2 unchanged lines …
1907}
1908@available(macOS 11.0, iOS 15.0, *)
1909@available(tvOS, unavailable)
1910extension CreateML.MLSoundClassifier {
1911 @available(macOS 11.0, iOS 15.0, *)
1912 @available(tvOS, unavailable)
1913 public struct __Defaults : Swift.Sendable {
1914 public static let overlapFactor: Swift.Double
1915 public static let batchSize: Swift.Int
1916 public static let maximumIterations: Swift.Int
1917 nonisolated(unsafe) public static let validation: CreateML.MLSoundClassifier.ModelParameters.ValidationData
1918 @available(macOS 11.0, iOS 15.0, *)
1919 @available(tvOS, unavailable)
1920 public static var featureExtractor: CreateML.MLSoundClassifier.ModelParameters.FeatureExtractorType {
1921 get
1922 }
1923 @available(macOS 11.0, iOS 15.0, *)
1924 @available(tvOS, unavailable)
1925 public static let classifier: CreateML.MLSoundClassifier.ModelParameters.ClassifierType
1926 @available(macOS 11.0, iOS 15.0, *)
1927 @available(tvOS, unavailable)
1928 public static let algorithm: CreateML.MLSoundClassifier.ModelParameters.ModelAlgorithmType
1929 public static let featureColumnName: Swift.String
1930 public static let labelColumnName: Swift.String
1931 @available(macOS 12.0, iOS 15.0, *)
1932 @available(tvOS, unavailable)
1933 public static let defaultVGGishTimeWindow: Swift.Double
1934 }
1935}
1936extension CreateML.MLImageClassifier {
1937 @available(macOS 10.14, iOS 15.0, *)
1938 @available(tvOS, unavailable)
1939 public func prediction(from image: CoreGraphics.CGImage) throws -> Swift.String
1940 @available(macOS 10.14, iOS 15.0, *)
1941 @available(tvOS, unavailable)
1942 public func prediction(from image: Foundation.URL) throws -> Swift.String
1943 @available(macOS 10.14, iOS 15.0, *)
1944 @available(tvOS, unavailable)
1945 public func predictions(from images: [Foundation.URL]) throws -> [Swift.String]
1946}
1947extension CreateML.MLDataTable {
1948 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1949 public func group<S>(columnsNamed: Swift.String..., aggregators: S) -> CreateML.MLDataTable where S : Swift.Sequence, S.Element == CreateML.MLDataTable.Aggregator
1950 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1951 public struct Aggregator : Swift.Sendable {
1952 public var operations: [CreateML.MLDataTable.Aggregator.Operations]
1953 public var columnName: Swift.String
1954 public init(operations: CreateML.MLDataTable.Aggregator.Operations..., of columnNamed: Swift.String)
1955 public enum Operations : Swift.Sendable {
1956 case min
1957 case max
1958 case sum
1907}
1908@available(macOS 11.0, iOS 15.0, *)
1909@available(tvOS, unavailable)
1910extension CreateML::MLSoundClassifier {
1911 @available(macOS 11.0, iOS 15.0, *)
1912 @available(tvOS, unavailable)
1913 public struct __Defaults : Swift::Sendable {
1914 public static let overlapFactor: Swift::Double
1915 public static let batchSize: Swift::Int
1916 public static let maximumIterations: Swift::Int
1917 nonisolated(unsafe) public static let validation: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ValidationData
1918 @available(macOS 11.0, iOS 15.0, *)
1919 @available(tvOS, unavailable)
1920 public static var featureExtractor: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeatureExtractorType {
1921 get
1922 }
1923 @available(macOS 11.0, iOS 15.0, *)
1924 @available(tvOS, unavailable)
1925 public static let classifier: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ClassifierType
1926 @available(macOS 11.0, iOS 15.0, *)
1927 @available(tvOS, unavailable)
1928 public static let algorithm: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType
1929 public static let featureColumnName: Swift::String
1930 public static let labelColumnName: Swift::String
1931 @available(macOS 12.0, iOS 15.0, *)
1932 @available(tvOS, unavailable)
1933 public static let defaultVGGishTimeWindow: Swift::Double
1934 }
1935}
1936extension CreateML::MLImageClassifier {
1937 @available(macOS 10.14, iOS 15.0, *)
1938 @available(tvOS, unavailable)
1939 public func prediction(from image: CoreGraphics::CGImage) throws -> Swift::String
1940 @available(macOS 10.14, iOS 15.0, *)
1941 @available(tvOS, unavailable)
1942 public func prediction(from image: Foundation::URL) throws -> Swift::String
1943 @available(macOS 10.14, iOS 15.0, *)
1944 @available(tvOS, unavailable)
1945 public func predictions(from images: [Foundation::URL]) throws -> [Swift::String]
1946}
1947extension CreateML::MLDataTable {
1948 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1949 public func group<S>(columnsNamed: Swift::String..., aggregators: S) -> CreateML::MLDataTable where S : Swift::Sequence, S.Element == CreateML::MLDataTable.CreateML::Aggregator
1950 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
1951 public struct Aggregator : Swift::Sendable {
1952 public var operations: [CreateML::MLDataTable.CreateML::Aggregator.CreateML::Operations]
1953 public var columnName: Swift::String
1954 public init(operations: CreateML::MLDataTable.CreateML::Aggregator.CreateML::Operations..., of columnNamed: Swift::String)
1955 public enum Operations : Swift::Sendable {
1956 case min
1957 case max
1958 case sum
… 4 unchanged lines …
1963 case variance
1964 case sequenceMerge
1965 case randomlySelectOne
1966 case dictionaryMerge(valueColumn: Swift.String)
1967 case argmin(outputColumn: Swift.String)
1968 case argmax(outputColumn: Swift.String)
1969 }
1970 }
1971}
1963 case variance
1964 case sequenceMerge
1965 case randomlySelectOne
1966 case dictionaryMerge(valueColumn: Swift::String)
1967 case argmin(outputColumn: Swift::String)
1968 case argmax(outputColumn: Swift::String)
1969 }
1970 }
1971}
… 2 unchanged lines …
1974 @available(macOS, introduced: 10.14, deprecated: 14.0)
1975 @available(iOS, introduced: 15.0, deprecated: 17.0)
1976 @available(tvOS, introduced: 16.0, deprecated: 17.0)
1977 public init(classificationError: Swift.Double, confusion: CreateML.MLDataTable, precisionRecall: CreateML.MLDataTable)
1978 public var error: (any Swift.Error)? {
1979 get
1980 }
1981 public var isValid: Swift.Bool {
1982 get
1983 }
1984 public var classificationError: Swift.Double {
1985 get
1986 }
1987 @available(macOS, introduced: 10.14, deprecated: 14.0)
1988 @available(iOS, introduced: 15.0, deprecated: 17.0)
1989 @available(tvOS, introduced: 16.0, deprecated: 17.0)
1990 public var confusion: CreateML.MLDataTable {
1991 get
1992 }
1993 @available(macOS 14, iOS 17.0, tvOS 17.0, *)
1994 public var confusionDataFrame: TabularData.DataFrame {
1995 get
1996 }
1997 @available(macOS, introduced: 10.14, deprecated: 14.0)
1998 @available(iOS, introduced: 15.0, deprecated: 17.0)
1999 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2000 public var precisionRecall: CreateML.MLDataTable {
2001 get
2002 }
2003 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
2004 public var precisionRecallDataFrame: TabularData.DataFrame {
2005 get
2006 }
2007}
2008@available(*, unavailable)
2009extension CreateML.MLClassifierMetrics : Swift.Sendable {
2010}
2011@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2012extension CreateML.MLClassifierMetrics : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
2013 public var description: Swift.String {
2014 get
2015 }
2016 public var debugDescription: Swift.String {
2017 get
2018 }
2019 public var playgroundDescription: Any {
2020 get
2021 }
2022}
2023@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2024public struct MLRandomForestClassifier : @unchecked Swift.Sendable {
2025 public var model: CoreML.MLModel {
2026 get
2027 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
2028 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
2029 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
2030 set
2031 }
2032 public var targetColumn: Swift.String
2033 public var featureColumns: [Swift.String]
2034 public let modelParameters: CreateML.MLRandomForestClassifier.ModelParameters
2035 public var trainingMetrics: CreateML.MLClassifierMetrics {
2036 get
2037 }
2038 public var validationMetrics: CreateML.MLClassifierMetrics {
2039 get
2040 }
2041 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2042 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
2043 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2044 public init(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestClassifier.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2045 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2046 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2047 @available(tvOS, unavailable)
2048 public init(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestClassifier.ModelParameters = ModelParameters(validationData: nil)) throws
2049 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2050 public init(checkpoint: CreateML.MLCheckpoint) throws
2051 @available(macOS, introduced: 12.0, deprecated: 14.0)
2052 @available(iOS, introduced: 15.0, deprecated: 17.0)
2053 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2054 public static func train(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLRandomForestClassifier>
2055 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2056 public static func train(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLRandomForestClassifier>
2057 @available(macOS, introduced: 12.0, deprecated: 14.0)
2058 @available(iOS, introduced: 15.0, deprecated: 17.0)
2059 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2060 public static func makeTrainingSession(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLRandomForestClassifier>
2061 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2062 public static func makeTrainingSession(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLRandomForestClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLRandomForestClassifier>
2063 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2064 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLRandomForestClassifier>
2065 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2066 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLRandomForestClassifier>) throws -> CreateML.MLJob<CreateML.MLRandomForestClassifier>
2067 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2068 public func predictions(from data: TabularData.DataFrame) throws -> TabularData.AnyColumn
2069 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2070 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2071 @available(tvOS, unavailable)
2072 public func predictions(from data: CreateML.MLDataTable) throws -> CreateML.MLUntypedColumn
2073 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2074 public func evaluation(on labeledData: TabularData.DataFrame) -> CreateML.MLClassifierMetrics
2075 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2076 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2077 @available(tvOS, unavailable)
2078 public func evaluation(on labeledData: CreateML.MLDataTable) -> CreateML.MLClassifierMetrics
2079 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
2080 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
2081}
2082@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2083extension CreateML.MLRandomForestClassifier : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
2084 public var description: Swift.String {
2085 get
2086 }
2087 public var debugDescription: Swift.String {
2088 get
2089 }
2090 public var playgroundDescription: Any {
2091 get
2092 }
2093}
2094extension CreateML.MLSoundClassifier.ModelParameters {
2095 @available(macOS 11.0, iOS 15.0, *)
2096 @available(tvOS, unavailable)
2097 public enum ModelAlgorithmType : Swift.Equatable, Swift.CustomStringConvertible, Swift.Sendable {
2098 case transferLearning(featureExtractor: CreateML.MLSoundClassifier.ModelParameters.FeatureExtractorType, classifier: CreateML.MLSoundClassifier.ModelParameters.ClassifierType)
2099 public var description: Swift.String {
2100 get
2101 }
2102 public static func == (a: CreateML.MLSoundClassifier.ModelParameters.ModelAlgorithmType, b: CreateML.MLSoundClassifier.ModelParameters.ModelAlgorithmType) -> Swift.Bool
2103 }
2104}
2105@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2106public struct MLBoostedTreeRegressor : @unchecked Swift.Sendable {
2107 public var model: CoreML.MLModel {
2108 get
2109 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
2110 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
2111 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
2112 set
2113 }
2114 public var targetColumn: Swift.String
2115 public var featureColumns: [Swift.String]
2116 public let modelParameters: CreateML.MLBoostedTreeRegressor.ModelParameters
2117 public var trainingMetrics: CreateML.MLRegressorMetrics {
2118 get
2119 }
2120 public var validationMetrics: CreateML.MLRegressorMetrics {
2121 get
2122 }
2123 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2124 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
2125 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2126 public init(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2127 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2128 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2129 @available(tvOS, unavailable)
2130 public init(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeRegressor.ModelParameters = ModelParameters(validationData: nil)) throws
2131 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2132 public init(checkpoint: CreateML.MLCheckpoint) throws
2133 @available(macOS, introduced: 12.0, deprecated: 14.0)
2134 @available(iOS, introduced: 15.0, deprecated: 17.0)
2135 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2136 public static func train(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLBoostedTreeRegressor>
2137 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2138 public static func train(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLBoostedTreeRegressor>
2139 @available(macOS, introduced: 12.0, deprecated: 14.0)
2140 @available(iOS, introduced: 15.0, deprecated: 17.0)
2141 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2142 public static func makeTrainingSession(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLBoostedTreeRegressor>
2143 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2144 public static func makeTrainingSession(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeRegressor.ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLBoostedTreeRegressor>
2145 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2146 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLBoostedTreeRegressor>
2147 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2148 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLBoostedTreeRegressor>) throws -> CreateML.MLJob<CreateML.MLBoostedTreeRegressor>
2149 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2150 public func predictions(from data: TabularData.DataFrame) throws -> TabularData.AnyColumn
2151 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2152 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2153 @available(tvOS, unavailable)
2154 public func predictions(from data: CreateML.MLDataTable) throws -> CreateML.MLUntypedColumn
2155 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2156 public func evaluation(on labeledData: TabularData.DataFrame) -> CreateML.MLRegressorMetrics
2157 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2158 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2159 @available(tvOS, unavailable)
2160 public func evaluation(on labeledData: CreateML.MLDataTable) -> CreateML.MLRegressorMetrics
2161 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
2162 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
2163}
2164@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2165extension CreateML.MLBoostedTreeRegressor : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
2166 public var description: Swift.String {
2167 get
2168 }
2169 public var debugDescription: Swift.String {
2170 get
2171 }
2172 public var playgroundDescription: Any {
1974 @available(macOS, introduced: 10.14, deprecated: 14.0)
1975 @available(iOS, introduced: 15.0, deprecated: 17.0)
1976 @available(tvOS, introduced: 16.0, deprecated: 17.0)
1977 public init(classificationError: Swift::Double, confusion: CreateML::MLDataTable, precisionRecall: CreateML::MLDataTable)
1978 public var error: (any Swift::Error)? {
1979 get
1980 }
1981 public var isValid: Swift::Bool {
1982 get
1983 }
1984 public var classificationError: Swift::Double {
1985 get
1986 }
1987 @available(macOS, introduced: 10.14, deprecated: 14.0)
1988 @available(iOS, introduced: 15.0, deprecated: 17.0)
1989 @available(tvOS, introduced: 16.0, deprecated: 17.0)
1990 public var confusion: CreateML::MLDataTable {
1991 get
1992 }
1993 @available(macOS 14, iOS 17.0, tvOS 17.0, *)
1994 public var confusionDataFrame: TabularData::DataFrame {
1995 get
1996 }
1997 @available(macOS, introduced: 10.14, deprecated: 14.0)
1998 @available(iOS, introduced: 15.0, deprecated: 17.0)
1999 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2000 public var precisionRecall: CreateML::MLDataTable {
2001 get
2002 }
2003 @available(macOS 14.0, iOS 17.0, tvOS 17.0, *)
2004 public var precisionRecallDataFrame: TabularData::DataFrame {
2005 get
2006 }
2007}
2008@available(*, unavailable)
2009extension CreateML::MLClassifierMetrics : Swift::Sendable {
2010}
2011@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2012extension CreateML::MLClassifierMetrics : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
2013 public var description: Swift::String {
2014 get
2015 }
2016 public var debugDescription: Swift::String {
2017 get
2018 }
2019 public var playgroundDescription: Any {
2020 get
2021 }
2022}
2023@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2024public struct MLRandomForestClassifier : @unchecked Swift::Sendable {
2025 public var model: CoreML::MLModel {
2026 get
2027 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
2028 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
2029 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
2030 set
2031 }
2032 public var targetColumn: Swift::String
2033 public var featureColumns: [Swift::String]
2034 public let modelParameters: CreateML::MLRandomForestClassifier.CreateML::ModelParameters
2035 public var trainingMetrics: CreateML::MLClassifierMetrics {
2036 get
2037 }
2038 public var validationMetrics: CreateML::MLClassifierMetrics {
2039 get
2040 }
2041 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2042 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
2043 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2044 public init(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestClassifier.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2045 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2046 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2047 @available(tvOS, unavailable)
2048 public init(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestClassifier.CreateML::ModelParameters = ModelParameters(validationData: nil)) throws
2049 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2050 public init(checkpoint: CreateML::MLCheckpoint) throws
2051 @available(macOS, introduced: 12.0, deprecated: 14.0)
2052 @available(iOS, introduced: 15.0, deprecated: 17.0)
2053 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2054 public static func train(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLRandomForestClassifier>
2055 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2056 public static func train(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLRandomForestClassifier>
2057 @available(macOS, introduced: 12.0, deprecated: 14.0)
2058 @available(iOS, introduced: 15.0, deprecated: 17.0)
2059 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2060 public static func makeTrainingSession(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLRandomForestClassifier>
2061 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2062 public static func makeTrainingSession(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLRandomForestClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLRandomForestClassifier>
2063 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2064 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLRandomForestClassifier>
2065 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2066 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLRandomForestClassifier>) throws -> CreateML::MLJob<CreateML::MLRandomForestClassifier>
2067 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2068 public func predictions(from data: TabularData::DataFrame) throws -> TabularData::AnyColumn
2069 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2070 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2071 @available(tvOS, unavailable)
2072 public func predictions(from data: CreateML::MLDataTable) throws -> CreateML::MLUntypedColumn
2073 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2074 public func evaluation(on labeledData: TabularData::DataFrame) -> CreateML::MLClassifierMetrics
2075 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2076 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2077 @available(tvOS, unavailable)
2078 public func evaluation(on labeledData: CreateML::MLDataTable) -> CreateML::MLClassifierMetrics
2079 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
2080 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
2081}
2082@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2083extension CreateML::MLRandomForestClassifier : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
2084 public var description: Swift::String {
2085 get
2086 }
2087 public var debugDescription: Swift::String {
2088 get
2089 }
2090 public var playgroundDescription: Any {
2091 get
2092 }
2093}
2094extension CreateML::MLSoundClassifier.CreateML::ModelParameters {
2095 @available(macOS 11.0, iOS 15.0, *)
2096 @available(tvOS, unavailable)
2097 public enum ModelAlgorithmType : Swift::Equatable, Swift::CustomStringConvertible, Swift::Sendable {
2098 case transferLearning(featureExtractor: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeatureExtractorType, classifier: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ClassifierType)
2099 public var description: Swift::String {
2100 get
2101 }
2102 public static func == (a: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType, b: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType) -> Swift::Bool
2103 }
2104}
2105@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2106public struct MLBoostedTreeRegressor : @unchecked Swift::Sendable {
2107 public var model: CoreML::MLModel {
2108 get
2109 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
2110 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
2111 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
2112 set
2113 }
2114 public var targetColumn: Swift::String
2115 public var featureColumns: [Swift::String]
2116 public let modelParameters: CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters
2117 public var trainingMetrics: CreateML::MLRegressorMetrics {
2118 get
2119 }
2120 public var validationMetrics: CreateML::MLRegressorMetrics {
2121 get
2122 }
2123 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2124 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
2125 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2126 public init(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2127 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2128 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2129 @available(tvOS, unavailable)
2130 public init(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters = ModelParameters(validationData: nil)) throws
2131 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2132 public init(checkpoint: CreateML::MLCheckpoint) throws
2133 @available(macOS, introduced: 12.0, deprecated: 14.0)
2134 @available(iOS, introduced: 15.0, deprecated: 17.0)
2135 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2136 public static func train(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLBoostedTreeRegressor>
2137 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2138 public static func train(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLBoostedTreeRegressor>
2139 @available(macOS, introduced: 12.0, deprecated: 14.0)
2140 @available(iOS, introduced: 15.0, deprecated: 17.0)
2141 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2142 public static func makeTrainingSession(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLBoostedTreeRegressor>
2143 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2144 public static func makeTrainingSession(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLBoostedTreeRegressor>
2145 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2146 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLBoostedTreeRegressor>
2147 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2148 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLBoostedTreeRegressor>) throws -> CreateML::MLJob<CreateML::MLBoostedTreeRegressor>
2149 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2150 public func predictions(from data: TabularData::DataFrame) throws -> TabularData::AnyColumn
2151 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2152 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2153 @available(tvOS, unavailable)
2154 public func predictions(from data: CreateML::MLDataTable) throws -> CreateML::MLUntypedColumn
2155 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2156 public func evaluation(on labeledData: TabularData::DataFrame) -> CreateML::MLRegressorMetrics
2157 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2158 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2159 @available(tvOS, unavailable)
2160 public func evaluation(on labeledData: CreateML::MLDataTable) -> CreateML::MLRegressorMetrics
2161 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
2162 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
2163}
2164@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2165extension CreateML::MLBoostedTreeRegressor : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
2166 public var description: Swift::String {
2167 get
2168 }
2169 public var debugDescription: Swift::String {
2170 get
2171 }
2172 public var playgroundDescription: Any {
… 2 unchanged lines …
2175}
2176@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2177public enum MLDataValue {
2178 case int(Swift.Int)
2179 case double(Swift.Double)
2180 case string(Swift.String)
2181 case sequence(CreateML.MLDataValue.SequenceType)
2182 case dictionary(CreateML.MLDataValue.DictionaryType)
2183 case multiArray(CreateML.MLDataValue.MultiArrayType)
2184 case invalid
2185 public var type: CreateML.MLDataValue.ValueType {
2186 get
2187 }
2188 public var isValid: Swift.Bool {
2189 get
2190 }
2191 public var intValue: Swift.Int? {
2192 get
2193 }
2194 public var doubleValue: Swift.Double? {
2195 get
2196 }
2197 public var stringValue: Swift.String? {
2198 get
2199 }
2200 public var sequenceValue: CreateML.MLDataValue.SequenceType? {
2201 get
2202 }
2203 public var dictionaryValue: CreateML.MLDataValue.DictionaryType? {
2204 get
2205 }
2206 public var multiArrayValue: CreateML.MLDataValue.MultiArrayType? {
2207 get
2208 }
2209 public struct SequenceType {
2175}
2176@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2177public enum MLDataValue {
2178 case int(Swift::Int)
2179 case double(Swift::Double)
2180 case string(Swift::String)
2181 case sequence(CreateML::MLDataValue.CreateML::SequenceType)
2182 case dictionary(CreateML::MLDataValue.CreateML::DictionaryType)
2183 case multiArray(CreateML::MLDataValue.CreateML::MultiArrayType)
2184 case invalid
2185 public var type: CreateML::MLDataValue.CreateML::ValueType {
2186 get
2187 }
2188 public var isValid: Swift::Bool {
2189 get
2190 }
2191 public var intValue: Swift::Int? {
2192 get
2193 }
2194 public var doubleValue: Swift::Double? {
2195 get
2196 }
2197 public var stringValue: Swift::String? {
2198 get
2199 }
2200 public var sequenceValue: CreateML::MLDataValue.CreateML::SequenceType? {
2201 get
2202 }
2203 public var dictionaryValue: CreateML::MLDataValue.CreateML::DictionaryType? {
2204 get
2205 }
2206 public var multiArrayValue: CreateML::MLDataValue.CreateML::MultiArrayType? {
2207 get
2208 }
2209 public struct SequenceType {
… 4 unchanged lines …
2214 }
2215}
2216@available(*, unavailable)
2217extension CreateML.MLDataValue : Swift.Sendable {
2218}
2219@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2220extension CreateML.MLDataValue {
2221 public enum ValueType {
2222 case int
2223 case double
2214 }
2215}
2216@available(*, unavailable)
2217extension CreateML::MLDataValue : Swift::Sendable {
2218}
2219@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2220extension CreateML::MLDataValue {
2221 public enum ValueType {
2222 case int
2223 case double
… 2 unchanged lines …
2226 case dictionary
2227 case multiArray
2228 case invalid
2229 public static func == (a: CreateML.MLDataValue.ValueType, b: CreateML.MLDataValue.ValueType) -> Swift.Bool
2230 public func hash(into hasher: inout Swift.Hasher)
2231 public var hashValue: Swift.Int {
2232 get
2233 }
2234 }
2235}
2236@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2237extension CreateML.MLDataValue.ValueType : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
2238 public var description: Swift.String {
2239 get
2240 }
2241 public var debugDescription: Swift.String {
2242 get
2243 }
2244}
2245@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2246extension CreateML.MLDataValue : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
2247 public var description: Swift.String {
2248 get
2249 }
2250 public var debugDescription: Swift.String {
2251 get
2252 }
2253}
2254@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2255extension CreateML.MLDataValue : Swift.Hashable {
2256 public static func == (left: CreateML.MLDataValue, right: CreateML.MLDataValue) -> Swift.Bool
2257 public func hash(into hasher: inout Swift.Hasher)
2258 public var hashValue: Swift.Int {
2259 get
2260 }
2261}
2262@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2263extension CreateML.MLDataValue.DictionaryType {
2264 public typealias Key = CreateML.MLDataValue
2265 public typealias Value = CreateML.MLDataValue
2266 public init()
2267 public init(_ contents: [CreateML.MLDataValue : CreateML.MLDataValue])
2268 public init<S>(uniqueKeysWithValues keysAndValues: S) where S : Swift.Sequence, S.Element == (CreateML.MLDataValue, CreateML.MLDataValue)
2269 public var count: Swift.Int {
2270 get
2271 }
2272 public var isEmpty: Swift.Bool {
2273 get
2274 }
2275 public subscript(key: CreateML.MLDataValue.DictionaryType.Key) -> CreateML.MLDataValue.DictionaryType.Value? {
2276 get
2277 }
2278}
2279@available(*, unavailable)
2280extension CreateML.MLDataValue.DictionaryType : Swift.Sendable {
2281}
2282@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2283extension CreateML.MLDataValue.DictionaryType : Swift.Collection {
2284 public struct Index : Swift.Comparable {
2285 public static func == (lhs: CreateML.MLDataValue.DictionaryType.Index, rhs: CreateML.MLDataValue.DictionaryType.Index) -> Swift.Bool
2286 public static func < (lhs: CreateML.MLDataValue.DictionaryType.Index, rhs: CreateML.MLDataValue.DictionaryType.Index) -> Swift.Bool
2287 }
2288 public typealias Element = (key: CreateML.MLDataValue, value: CreateML.MLDataValue)
2289 public var startIndex: CreateML.MLDataValue.DictionaryType.Index {
2290 get
2291 }
2292 public var endIndex: CreateML.MLDataValue.DictionaryType.Index {
2293 get
2294 }
2295 public subscript(index: CreateML.MLDataValue.DictionaryType.Index) -> CreateML.MLDataValue.DictionaryType.Element {
2296 get
2297 }
2298 public func index(after i: CreateML.MLDataValue.DictionaryType.Index) -> CreateML.MLDataValue.DictionaryType.Index
2299 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
2300 public typealias Indices = Swift.DefaultIndices<CreateML.MLDataValue.DictionaryType>
2301 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
2302 public typealias Iterator = Swift.IndexingIterator<CreateML.MLDataValue.DictionaryType>
2303 @available(iOS 15.0, tvOS 16.0, macOS 10.14, *)
2304 public typealias SubSequence = Swift.Slice<CreateML.MLDataValue.DictionaryType>
2305}
2306@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2307extension CreateML.MLDataValue.DictionaryType : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible {
2308 public var description: Swift.String {
2309 get
2310 }
2311 public var debugDescription: Swift.String {
2312 get
2313 }
2314}
2315@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2316extension CreateML.MLDataValue.DictionaryType : Swift.Equatable {
2317 public static func == (lhs: CreateML.MLDataValue.DictionaryType, rhs: CreateML.MLDataValue.DictionaryType) -> Swift.Bool
2318}
2319@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2320extension CreateML.MLDataValue.DictionaryType : CreateML.MLDataValueConvertible {
2321 public static var dataValueType: CreateML.MLDataValue.ValueType {
2322 get
2323 }
2324 public init?(from dataValue: CreateML.MLDataValue)
2325 public var dataValue: CreateML.MLDataValue {
2326 get
2327 }
2328}
2329@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2330extension Swift.Dictionary : CreateML.MLDataValueConvertible where Key : CreateML.MLDataValueConvertible, Value : CreateML.MLDataValueConvertible {
2331 public static var dataValueType: CreateML.MLDataValue.ValueType {
2332 get
2333 }
2334 public init?(from dataValue: CreateML.MLDataValue)
2335 public init?(from dictionaryType: CreateML.MLDataValue.DictionaryType)
2336 public var dataValue: CreateML.MLDataValue {
2337 get
2338 }
2339}
2340@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2341public func timestampSeed() -> Swift.Int
2342@available(macOS 10.14, iOS 15.0, *)
2343@available(tvOS, unavailable)
2344extension CreateML.MLTextClassifier {
2345 public enum DataSource {
2346 case labeledDirectories(at: Foundation.URL)
2347 public func labeledTexts() throws -> [Swift.String : [Swift.String]]
2348 }
2349}
2350@available(*, unavailable)
2351extension CreateML.MLTextClassifier.DataSource : Swift.Sendable {
2352}
2353@available(macOS 10.14, iOS 15.0, *)
2354@available(tvOS, unavailable)
2355extension CreateML.MLTextClassifier.DataSource {
2356 @available(macOS, introduced: 10.14, deprecated: 14.0)
2357 @available(iOS, introduced: 15.0, deprecated: 17.0)
2358 @available(tvOS, unavailable)
2359 public func stratifiedSplit(proportions: [Swift.Double], seed: Swift.Int = timestampSeed(), labelColumn: Swift.String, textColumn: Swift.String) throws -> CreateML.MLDataTable
2360}
2361@available(macOS 10.14, iOS 15.0, *)
2362@available(tvOS, unavailable)
2363extension CreateML.MLTextClassifier {
2364 @available(macOS 10.15, iOS 15.0, *)
2365 @available(tvOS, unavailable)
2366 public enum FeatureExtractorType : Swift.Sendable {
2367 case staticEmbedding
2368 @available(macOS, introduced: 10.15, deprecated: 14.0, renamed: "elmoEmbedding")
2369 @available(iOS, introduced: 15.0, deprecated: 17.0, renamed: "elmoEmbedding")
2226 case dictionary
2227 case multiArray
2228 case invalid
2229 public static func == (a: CreateML::MLDataValue.CreateML::ValueType, b: CreateML::MLDataValue.CreateML::ValueType) -> Swift::Bool
2230 public func hash(into hasher: inout Swift::Hasher)
2231 public var hashValue: Swift::Int {
2232 get
2233 }
2234 }
2235}
2236@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2237extension CreateML::MLDataValue.CreateML::ValueType : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible {
2238 public var description: Swift::String {
2239 get
2240 }
2241 public var debugDescription: Swift::String {
2242 get
2243 }
2244}
2245@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2246extension CreateML::MLDataValue : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible {
2247 public var description: Swift::String {
2248 get
2249 }
2250 public var debugDescription: Swift::String {
2251 get
2252 }
2253}
2254@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2255extension CreateML::MLDataValue : Swift::Hashable {
2256 public static func == (left: CreateML::MLDataValue, right: CreateML::MLDataValue) -> Swift::Bool
2257 public func hash(into hasher: inout Swift::Hasher)
2258 public var hashValue: Swift::Int {
2259 get
2260 }
2261}
2262@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2263extension CreateML::MLDataValue.CreateML::DictionaryType {
2264 public typealias Key = CreateML::MLDataValue
2265 public typealias Value = CreateML::MLDataValue
2266 public init()
2267 public init(_ contents: [CreateML::MLDataValue : CreateML::MLDataValue])
2268 public init<S>(uniqueKeysWithValues keysAndValues: S) where S : Swift::Sequence, S.Element == (CreateML::MLDataValue, CreateML::MLDataValue)
2269 public var count: Swift::Int {
2270 get
2271 }
2272 public var isEmpty: Swift::Bool {
2273 get
2274 }
2275 public subscript(key: CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Key) -> CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Value? {
2276 get
2277 }
2278}
2279@available(*, unavailable)
2280extension CreateML::MLDataValue.CreateML::DictionaryType : Swift::Sendable {
2281}
2282@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2283extension CreateML::MLDataValue.CreateML::DictionaryType : Swift::Collection {
2284 public struct Index : Swift::Comparable {
2285 public static func == (lhs: CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Index, rhs: CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Index) -> Swift::Bool
2286 public static func < (lhs: CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Index, rhs: CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Index) -> Swift::Bool
2287 }
2288 public typealias Element = (key: CreateML::MLDataValue, value: CreateML::MLDataValue)
2289 public var startIndex: CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Index {
2290 get
2291 }
2292 public var endIndex: CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Index {
2293 get
2294 }
2295 public subscript(index: CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Index) -> CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Element {
2296 get
2297 }
2298 public func index(after i: CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Index) -> CreateML::MLDataValue.CreateML::DictionaryType.CreateML::Index
2299 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2300 public typealias Indices = Swift::DefaultIndices<CreateML::MLDataValue.CreateML::DictionaryType>
2301 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2302 public typealias Iterator = Swift::IndexingIterator<CreateML::MLDataValue.CreateML::DictionaryType>
2303 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2304 public typealias SubSequence = Swift::Slice<CreateML::MLDataValue.CreateML::DictionaryType>
2305}
2306@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2307extension CreateML::MLDataValue.CreateML::DictionaryType : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible {
2308 public var description: Swift::String {
2309 get
2310 }
2311 public var debugDescription: Swift::String {
2312 get
2313 }
2314}
2315@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2316extension CreateML::MLDataValue.CreateML::DictionaryType : Swift::Equatable {
2317 public static func == (lhs: CreateML::MLDataValue.CreateML::DictionaryType, rhs: CreateML::MLDataValue.CreateML::DictionaryType) -> Swift::Bool
2318}
2319@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2320extension CreateML::MLDataValue.CreateML::DictionaryType : CreateML::MLDataValueConvertible {
2321 public static var dataValueType: CreateML::MLDataValue.CreateML::ValueType {
2322 get
2323 }
2324 public init?(from dataValue: CreateML::MLDataValue)
2325 public var dataValue: CreateML::MLDataValue {
2326 get
2327 }
2328}
2329@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2330extension Swift::Dictionary : CreateML::MLDataValueConvertible where Key : CreateML::MLDataValueConvertible, Value : CreateML::MLDataValueConvertible {
2331 public static var dataValueType: CreateML::MLDataValue.CreateML::ValueType {
2332 get
2333 }
2334 public init?(from dataValue: CreateML::MLDataValue)
2335 public init?(from dictionaryType: CreateML::MLDataValue.CreateML::DictionaryType)
2336 public var dataValue: CreateML::MLDataValue {
2337 get
2338 }
2339}
2340@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2341public func timestampSeed() -> Swift::Int
2342@available(macOS 10.14, iOS 15.0, *)
2343@available(tvOS, unavailable)
2344extension CreateML::MLTextClassifier {
2345 public enum DataSource {
2346 case labeledDirectories(at: Foundation::URL)
2347 public func labeledTexts() throws -> [Swift::String : [Swift::String]]
2348 }
2349}
2350@available(*, unavailable)
2351extension CreateML::MLTextClassifier.CreateML::DataSource : Swift::Sendable {
2352}
2353@available(macOS 10.14, iOS 15.0, *)
2354@available(tvOS, unavailable)
2355extension CreateML::MLTextClassifier.CreateML::DataSource {
2356 @available(macOS, introduced: 10.14, deprecated: 14.0)
2357 @available(iOS, introduced: 15.0, deprecated: 17.0)
2358 @available(tvOS, unavailable)
2359 public func stratifiedSplit(proportions: [Swift::Double], seed: Swift::Int = timestampSeed(), labelColumn: Swift::String, textColumn: Swift::String) throws -> CreateML::MLDataTable
2360}
2361@available(macOS 10.14, iOS 15.0, *)
2362@available(tvOS, unavailable)
2363extension CreateML::MLTextClassifier {
2364 @available(macOS 10.15, iOS 15.0, *)
2365 @available(tvOS, unavailable)
2366 public enum FeatureExtractorType : Swift::Sendable {
2367 case staticEmbedding
2368 @available(macOS, introduced: 10.15, deprecated: 14.0, renamed: "elmoEmbedding")
2369 @available(iOS, introduced: 15.0, deprecated: 17.0, renamed: "elmoEmbedding")
… 2 unchanged lines …
2372 case elmoEmbedding
2373 @available(macOS 14.0, iOS 17.0, *)
2374 case bertEmbedding
2375 case customEmbedding(Foundation.URL)
2376 }
2377}
2378@available(macOS 10.15, iOS 15.0, *)
2379@available(tvOS, unavailable)
2380extension CreateML.MLTextClassifier.FeatureExtractorType : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
2381 public var description: Swift.String {
2382 get
2383 }
2384 public var debugDescription: Swift.String {
2385 get
2386 }
2387 public var playgroundDescription: Any {
2372 case elmoEmbedding
2373 @available(macOS 14.0, iOS 17.0, *)
2374 case bertEmbedding
2375 case customEmbedding(Foundation::URL)
2376 }
2377}
2378@available(macOS 10.15, iOS 15.0, *)
2379@available(tvOS, unavailable)
2380extension CreateML::MLTextClassifier.CreateML::FeatureExtractorType : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
2381 public var description: Swift::String {
2382 get
2383 }
2384 public var debugDescription: Swift::String {
2385 get
2386 }
2387 public var playgroundDescription: Any {
… 2 unchanged lines …
2390}
2391@available(macOS 10.14, iOS 15.0, *)
2392@available(tvOS, unavailable)
2393extension CreateML.MLTextClassifier {
2394 public enum ModelAlgorithmType : Swift.Sendable {
2395 case maxEnt(revision: Swift.Int?)
2396 case crf(revision: Swift.Int?)
2397 @available(macOS 10.15, iOS 15.0, *)
2398 @available(tvOS, unavailable)
2399 case transferLearning(CreateML.MLTextClassifier.FeatureExtractorType, revision: Swift.Int?)
2400 }
2401}
2402@available(macOS 10.14, iOS 15.0, *)
2403@available(tvOS, unavailable)
2404extension CreateML.MLTextClassifier.ModelAlgorithmType : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
2405 public var description: Swift.String {
2406 get
2407 }
2408 public var debugDescription: Swift.String {
2409 get
2410 }
2411 public var playgroundDescription: Any {
2390}
2391@available(macOS 10.14, iOS 15.0, *)
2392@available(tvOS, unavailable)
2393extension CreateML::MLTextClassifier {
2394 public enum ModelAlgorithmType : Swift::Sendable {
2395 case maxEnt(revision: Swift::Int?)
2396 case crf(revision: Swift::Int?)
2397 @available(macOS 10.15, iOS 15.0, *)
2398 @available(tvOS, unavailable)
2399 case transferLearning(CreateML::MLTextClassifier.CreateML::FeatureExtractorType, revision: Swift::Int?)
2400 }
2401}
2402@available(macOS 10.14, iOS 15.0, *)
2403@available(tvOS, unavailable)
2404extension CreateML::MLTextClassifier.CreateML::ModelAlgorithmType : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
2405 public var description: Swift::String {
2406 get
2407 }
2408 public var debugDescription: Swift::String {
2409 get
2410 }
2411 public var playgroundDescription: Any {
… 2 unchanged lines …
2414}
2415@available(macOS 11.0, iOS 15.0, *)
2416@available(tvOS, unavailable)
2417extension CreateML.MLImageClassifier {
2418 @available(macOS 11.0, iOS 15.0, *)
2419 @available(tvOS, unavailable)
2420 public struct __Defaults {
2421 public static let batchSize: Swift.Int
2422 public static let maximumIterations: Swift.Int
2423 public static let validation: CreateML.MLImageClassifier.ModelParameters.ValidationData
2424 public static let augmentationOptions: CreateML.MLImageClassifier.ImageAugmentationOptions
2425 public static let classifier: CreateML.MLImageClassifier.ModelParameters.ClassifierType
2426 public static let algorithm: CreateML.MLImageClassifier.ModelParameters.ModelAlgorithmType
2427 public static let featureColumnName: Swift.String
2428 public static let labelColumnName: Swift.String
2429 }
2430}
2431extension CreateML.MLSoundClassifier.ModelParameters {
2432 @available(macOS 10.15, iOS 15.0, *)
2433 @available(tvOS, unavailable)
2434 public enum ValidationData {
2435 case split(strategy: CreateML.MLSplitStrategy)
2436 @available(macOS 11.0, iOS 15.0, *)
2437 @available(tvOS, unavailable)
2438 case dataSource(CreateML.MLSoundClassifier.DataSource)
2439 @available(macOS, introduced: 10.15, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary validation data instead.")
2440 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary validation data instead.")
2441 @available(tvOS, unavailable)
2442 case dictionary([Swift.String : [Foundation.URL]])
2443 case none
2444 }
2445}
2446@available(*, unavailable)
2447extension CreateML.MLSoundClassifier.ModelParameters.ValidationData : Swift.Sendable {
2448}
2449extension CreateML.MLSoundClassifier {
2450 @available(macOS 11.0, iOS 15.0, *)
2451 @available(tvOS, unavailable)
2452 public struct FeatureExtractionParameters : Swift.Sendable {
2453 public var overlapFactor: Swift.Double
2454 @available(macOS 12.0, iOS 15.0, *)
2455 @available(tvOS, unavailable)
2456 public var featureExtractionTimeWindowSize: Foundation.TimeInterval {
2457 get
2458 set
2459 }
2460 public var featureExtractor: CreateML.MLSoundClassifier.ModelParameters.FeatureExtractorType
2461 public init(overlapFactor: Swift.Double = __Defaults.overlapFactor, featureExtractor: CreateML.MLSoundClassifier.ModelParameters.FeatureExtractorType = __Defaults.featureExtractor)
2462 @available(macOS 12.0, iOS 15.0, *)
2463 @available(tvOS, unavailable)
2464 public init(overlapFactor: Swift.Double = __Defaults.overlapFactor, featureExtractor: CreateML.MLSoundClassifier.ModelParameters.FeatureExtractorType = __Defaults.featureExtractor, featureExtractionTimeWindowSize: Foundation.TimeInterval?)
2465 }
2466}
2467@available(macOS 11.0, iOS 15.0, *)
2468@available(tvOS, unavailable)
2469public struct MLStyleTransfer : Swift.Sendable {
2470 public init(trainingData: CreateML.MLStyleTransfer.DataSource, parameters: CreateML.MLStyleTransfer.ModelParameters = .init()) throws
2471 public init(checkpoint: CreateML.MLCheckpoint) throws
2472 public static func train(trainingData: CreateML.MLStyleTransfer.DataSource, parameters: CreateML.MLStyleTransfer.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = .init()) throws -> CreateML.MLJob<CreateML.MLStyleTransfer>
2473 public static func makeTrainingSession(trainingData: CreateML.MLStyleTransfer.DataSource, parameters: CreateML.MLStyleTransfer.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = .init()) throws -> CreateML.MLTrainingSession<CreateML.MLStyleTransfer>
2474 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLStyleTransfer>
2475 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLStyleTransfer>) throws -> CreateML.MLJob<CreateML.MLStyleTransfer>
2476 public func stylize(image: CoreGraphics.CGImage) throws -> CoreGraphics.CGImage?
2477 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = .init()) throws
2478 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = .init()) throws
2479 @available(macOS 12.0, iOS 15.0, *)
2480 @available(tvOS, unavailable)
2481 public static func downloadAssets() throws
2482}
2483@available(macOS 11.0, iOS 15.0, *)
2484@available(tvOS, unavailable)
2485extension CreateML.MLStyleTransfer : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
2486 public var description: Swift.String {
2487 get
2488 }
2489 public var debugDescription: Swift.String {
2490 get
2491 }
2492 public var playgroundDescription: Any {
2414}
2415@available(macOS 11.0, iOS 15.0, *)
2416@available(tvOS, unavailable)
2417extension CreateML::MLImageClassifier {
2418 @available(macOS 11.0, iOS 15.0, *)
2419 @available(tvOS, unavailable)
2420 public struct __Defaults {
2421 public static let batchSize: Swift::Int
2422 public static let maximumIterations: Swift::Int
2423 public static let validation: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ValidationData
2424 public static let augmentationOptions: CreateML::MLImageClassifier.CreateML::ImageAugmentationOptions
2425 public static let classifier: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ClassifierType
2426 public static let algorithm: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType
2427 public static let featureColumnName: Swift::String
2428 public static let labelColumnName: Swift::String
2429 }
2430}
2431extension CreateML::MLSoundClassifier.CreateML::ModelParameters {
2432 @available(macOS 10.15, iOS 15.0, *)
2433 @available(tvOS, unavailable)
2434 public enum ValidationData {
2435 case split(strategy: CreateML::MLSplitStrategy)
2436 @available(macOS 11.0, iOS 15.0, *)
2437 @available(tvOS, unavailable)
2438 case dataSource(CreateML::MLSoundClassifier.CreateML::DataSource)
2439 @available(macOS, introduced: 10.15, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary validation data instead.")
2440 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary validation data instead.")
2441 @available(tvOS, unavailable)
2442 case dictionary([Swift::String : [Foundation::URL]])
2443 case none
2444 }
2445}
2446@available(*, unavailable)
2447extension CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::ValidationData : Swift::Sendable {
2448}
2449extension CreateML::MLSoundClassifier {
2450 @available(macOS 11.0, iOS 15.0, *)
2451 @available(tvOS, unavailable)
2452 public struct FeatureExtractionParameters : Swift::Sendable {
2453 public var overlapFactor: Swift::Double
2454 @available(macOS 12.0, iOS 15.0, *)
2455 @available(tvOS, unavailable)
2456 public var featureExtractionTimeWindowSize: Foundation::TimeInterval {
2457 get
2458 set
2459 }
2460 public var featureExtractor: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeatureExtractorType
2461 public init(overlapFactor: Swift::Double = __Defaults.overlapFactor, featureExtractor: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeatureExtractorType = __Defaults.featureExtractor)
2462 @available(macOS 12.0, iOS 15.0, *)
2463 @available(tvOS, unavailable)
2464 public init(overlapFactor: Swift::Double = __Defaults.overlapFactor, featureExtractor: CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeatureExtractorType = __Defaults.featureExtractor, featureExtractionTimeWindowSize: Foundation::TimeInterval?)
2465 }
2466}
2467@available(macOS 11.0, iOS 15.0, *)
2468@available(tvOS, unavailable)
2469public struct MLStyleTransfer : Swift::Sendable {
2470 public init(trainingData: CreateML::MLStyleTransfer.CreateML::DataSource, parameters: CreateML::MLStyleTransfer.CreateML::ModelParameters = .init()) throws
2471 public init(checkpoint: CreateML::MLCheckpoint) throws
2472 public static func train(trainingData: CreateML::MLStyleTransfer.CreateML::DataSource, parameters: CreateML::MLStyleTransfer.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = .init()) throws -> CreateML::MLJob<CreateML::MLStyleTransfer>
2473 public static func makeTrainingSession(trainingData: CreateML::MLStyleTransfer.CreateML::DataSource, parameters: CreateML::MLStyleTransfer.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = .init()) throws -> CreateML::MLTrainingSession<CreateML::MLStyleTransfer>
2474 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLStyleTransfer>
2475 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLStyleTransfer>) throws -> CreateML::MLJob<CreateML::MLStyleTransfer>
2476 public func stylize(image: CoreGraphics::CGImage) throws -> CoreGraphics::CGImage?
2477 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = .init()) throws
2478 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = .init()) throws
2479 @available(macOS 12.0, iOS 15.0, *)
2480 @available(tvOS, unavailable)
2481 public static func downloadAssets() throws
2482}
2483@available(macOS 11.0, iOS 15.0, *)
2484@available(tvOS, unavailable)
2485extension CreateML::MLStyleTransfer : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
2486 public var description: Swift::String {
2487 get
2488 }
2489 public var debugDescription: Swift::String {
2490 get
2491 }
2492 public var playgroundDescription: Any {
… 2 unchanged lines …
2495}
2496@available(macOS 11.0, iOS 15.0, *)
2497@available(tvOS, unavailable)
2498extension CreateML.MLStyleTransfer {
2499 public struct __Defaults : Swift.Sendable {
2500 public static let maxIterations: Swift.Int
2501 public static let textelDensity: Swift.Int
2502 public static let styleStrength: Swift.Int
2503 }
2504}
2505extension CreateML.MLStyleTransfer {
2506 @available(macOS 11.0, iOS 15.0, *)
2507 @available(tvOS, unavailable)
2508 public enum DataSource : Swift.Sendable {
2509 case images(styleImage: Foundation.URL, contentDirectory: Foundation.URL, processingOption: Vision.VNImageCropAndScaleOption? = .centerCrop)
2510 public func processImages(textelDensity: Swift.Int, styleImageDestination: Foundation.URL? = nil, contentImagesDestination: Foundation.URL? = nil) throws -> (processedStyleImage: Foundation.URL, processedContentImages: Foundation.URL)
2511 }
2512}
2513extension CreateML.MLStyleTransfer {
2514 @available(macOS 11.0, iOS 15.0, *)
2515 @available(tvOS, unavailable)
2516 public struct ModelParameters : Swift.Sendable {
2517 public var algorithm: CreateML.MLStyleTransfer.ModelParameters.ModelAlgorithmType
2518 public var validation: CreateML.MLStyleTransfer.ModelParameters.ValidationData
2519 public var maxIterations: Swift.Int
2520 public var textelDensity: Swift.Int
2521 public var styleStrength: Swift.Int
2522 public init(algorithm: CreateML.MLStyleTransfer.ModelParameters.ModelAlgorithmType = .cnn, validation: CreateML.MLStyleTransfer.ModelParameters.ValidationData = .none, maxIterations: Swift.Int = MLStyleTransfer.__Defaults.maxIterations, textelDensity: Swift.Int = MLStyleTransfer.__Defaults.textelDensity, styleStrength: Swift.Int = MLStyleTransfer.__Defaults.styleStrength)
2523 public enum ModelAlgorithmType : Swift.String, Swift.Sendable {
2524 case cnn
2525 case cnnLite
2526 public init?(rawValue: Swift.String)
2527 @available(iOS 15.0, macOS 11.0, *)
2528 @available(tvOS, unavailable)
2529 public typealias RawValue = Swift.String
2530 public var rawValue: Swift.String {
2531 get
2532 }
2533 }
2534 }
2535}
2536@available(macOS 11.0, iOS 15.0, *)
2537@available(tvOS, unavailable)
2538extension CreateML.MLStyleTransfer.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
2539 public var description: Swift.String {
2540 get
2541 }
2542 public var debugDescription: Swift.String {
2543 get
2544 }
2545 public var playgroundDescription: Any {
2495}
2496@available(macOS 11.0, iOS 15.0, *)
2497@available(tvOS, unavailable)
2498extension CreateML::MLStyleTransfer {
2499 public struct __Defaults : Swift::Sendable {
2500 public static let maxIterations: Swift::Int
2501 public static let textelDensity: Swift::Int
2502 public static let styleStrength: Swift::Int
2503 }
2504}
2505extension CreateML::MLStyleTransfer {
2506 @available(macOS 11.0, iOS 15.0, *)
2507 @available(tvOS, unavailable)
2508 public enum DataSource : Swift::Sendable {
2509 case images(styleImage: Foundation::URL, contentDirectory: Foundation::URL, processingOption: Vision::VNImageCropAndScaleOption? = .centerCrop)
2510 public func processImages(textelDensity: Swift::Int, styleImageDestination: Foundation::URL? = nil, contentImagesDestination: Foundation::URL? = nil) throws -> (processedStyleImage: Foundation::URL, processedContentImages: Foundation::URL)
2511 }
2512}
2513extension CreateML::MLStyleTransfer {
2514 @available(macOS 11.0, iOS 15.0, *)
2515 @available(tvOS, unavailable)
2516 public struct ModelParameters : Swift::Sendable {
2517 public var algorithm: CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ModelAlgorithmType
2518 public var validation: CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ValidationData
2519 public var maxIterations: Swift::Int
2520 public var textelDensity: Swift::Int
2521 public var styleStrength: Swift::Int
2522 public init(algorithm: CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ModelAlgorithmType = .cnn, validation: CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ValidationData = .none, maxIterations: Swift::Int = MLStyleTransfer.__Defaults.maxIterations, textelDensity: Swift::Int = MLStyleTransfer.__Defaults.textelDensity, styleStrength: Swift::Int = MLStyleTransfer.__Defaults.styleStrength)
2523 public enum ModelAlgorithmType : Swift::String, Swift::Sendable {
2524 case cnn
2525 case cnnLite
2526 public init?(rawValue: Swift::String)
2527 @available(macOS 11.0, iOS 15.0, *)
2528 @available(tvOS, unavailable)
2529 public typealias RawValue = Swift::String
2530 public var rawValue: Swift::String {
2531 get
2532 }
2533 }
2534 }
2535}
2536@available(macOS 11.0, iOS 15.0, *)
2537@available(tvOS, unavailable)
2538extension CreateML::MLStyleTransfer.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
2539 public var description: Swift::String {
2540 get
2541 }
2542 public var debugDescription: Swift::String {
2543 get
2544 }
2545 public var playgroundDescription: Any {
… 2 unchanged lines …
2548}
2549@available(macOS 11.0, iOS 15.0, *)
2550@available(tvOS, unavailable)
2551extension CreateML.MLStyleTransfer.ModelParameters.ModelAlgorithmType : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
2552 public var description: Swift.String {
2553 get
2554 }
2555 public var debugDescription: Swift.String {
2556 get
2557 }
2558 public var playgroundDescription: Any {
2559 get
2560 }
2561}
2562extension CreateML.MLStyleTransfer.ModelParameters {
2563 @available(macOS 11.0, iOS 15.0, *)
2564 @available(tvOS, unavailable)
2565 public enum ValidationData : Swift.Sendable {
2566 case content(Foundation.URL)
2567 case none
2568 }
2569}
2570@available(macOS 11.0, iOS 15.0, *)
2571@available(tvOS, unavailable)
2572extension CreateML.MLStyleTransfer.ModelParameters.ValidationData : Swift.Equatable {
2573 public static func == (a: CreateML.MLStyleTransfer.ModelParameters.ValidationData, b: CreateML.MLStyleTransfer.ModelParameters.ValidationData) -> Swift.Bool
2574}
2575@available(macOS 10.14, iOS 15.0, *)
2576@available(tvOS, unavailable)
2577extension CreateML.MLTextClassifier {
2578 public func prediction(from text: Swift.String) throws -> Swift.String
2579 public func predictions(from texts: [Swift.String]) throws -> [Swift.String]
2580 @available(macOS 11.0, iOS 15.0, *)
2581 @available(tvOS, unavailable)
2582 public func predictionWithConfidence(from text: Swift.String) throws -> [Swift.String : Swift.Double]
2583 @available(macOS 11.0, iOS 15.0, *)
2584 @available(tvOS, unavailable)
2585 public func predictionsWithConfidence(from texts: [Swift.String]) throws -> [[Swift.String : Swift.Double]]
2586}
2587@available(macOS 10.14, iOS 15.0, *)
2588@available(tvOS, unavailable)
2589extension CreateML.MLTextClassifier {
2590 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataSource instead of MLDataTable.")
2591 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2592 @available(tvOS, unavailable)
2593 public func predictions(from texts: CreateML.MLDataColumn<Swift.String>) throws -> CreateML.MLDataColumn<Swift.String>
2594 @available(macOS, introduced: 11.0, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2595 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2596 @available(tvOS, unavailable)
2597 public func predictionsWithConfidence(from texts: CreateML.MLDataColumn<Swift.String>) throws -> CreateML.MLDataColumn<[Swift.String : Swift.Double]>
2598}
2599extension CreateML.MLImageClassifier.ModelParameters {
2600 @available(macOS 11.0, iOS 15.0, *)
2601 @available(tvOS, unavailable)
2602 public enum ClassifierType : Swift.Equatable, Swift.Hashable, Swift.CustomStringConvertible, Swift.Sendable {
2603 case logisticRegressor
2604 public var description: Swift.String {
2605 get
2606 }
2607 public static func == (a: CreateML.MLImageClassifier.ModelParameters.ClassifierType, b: CreateML.MLImageClassifier.ModelParameters.ClassifierType) -> Swift.Bool
2608 public func hash(into hasher: inout Swift.Hasher)
2609 public var hashValue: Swift.Int {
2610 get
2611 }
2612 }
2613}
2614extension CreateML.MLDataTable {
2615 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2616 public func randomSplitBySequence(proportion: Swift.Double, by sequenceIdentifierColumn: Swift.String, on column: Swift.String, seed: Swift.Int = 1) -> (CreateML.MLDataTable, remaining: CreateML.MLDataTable)
2617 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2618 public func randomSplit(by proportion: Swift.Double, seed: Swift.Int = 1) -> (CreateML.MLDataTable, CreateML.MLDataTable)
2619 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2620 public func stratifiedSplit(proportions: [Swift.Double], on column: Swift.String, seed: Swift.Int = timestampSeed()) throws -> CreateML.MLDataTable
2621 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2622 public func stratifiedSplit<RNG>(proportions: [Swift.Double], on column: Swift.String, generator: inout RNG) throws -> CreateML.MLDataTable where RNG : Swift.RandomNumberGenerator
2623 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2624 public func stratifiedSplitBySequence<RNG>(proportions: [Swift.Double], by sequenceIdentifierColumn: Swift.String, on column: Swift.String, generator: inout RNG) throws -> CreateML.MLDataTable where RNG : Swift.RandomNumberGenerator
2625 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2626 public func stratifiedSplitBySequence(proportions: [Swift.Double], by sequenceIdentifierColumn: Swift.String, on column: Swift.String, seed: Swift.Int = timestampSeed()) throws -> CreateML.MLDataTable
2627}
2628@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2629public struct MLDecisionTreeClassifier : @unchecked Swift.Sendable {
2630 public var model: CoreML.MLModel {
2631 get
2632 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
2633 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
2634 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
2635 set
2636 }
2637 public var targetColumn: Swift.String
2638 public var featureColumns: [Swift.String]
2639 public let modelParameters: CreateML.MLDecisionTreeClassifier.ModelParameters
2640 public var trainingMetrics: CreateML.MLClassifierMetrics {
2641 get
2642 }
2643 public var validationMetrics: CreateML.MLClassifierMetrics {
2644 get
2645 }
2646 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2647 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
2648 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2649 public init(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeClassifier.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2650 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2651 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2652 @available(tvOS, unavailable)
2653 public init(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeClassifier.ModelParameters = ModelParameters(validationData: nil)) throws
2654 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2655 public init(checkpoint: CreateML.MLCheckpoint) throws
2656 @available(macOS, introduced: 12.0, deprecated: 14.0)
2657 @available(iOS, introduced: 15.0, deprecated: 17.0)
2658 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2659 public static func train(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLDecisionTreeClassifier>
2660 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2661 public static func train(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLDecisionTreeClassifier>
2662 @available(macOS, introduced: 12.0, deprecated: 14.0)
2663 @available(iOS, introduced: 15.0, deprecated: 17.0)
2664 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2665 public static func makeTrainingSession(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLDecisionTreeClassifier>
2666 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2667 public static func makeTrainingSession(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLDecisionTreeClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLDecisionTreeClassifier>
2668 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2669 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLDecisionTreeClassifier>
2670 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2671 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLDecisionTreeClassifier>) throws -> CreateML.MLJob<CreateML.MLDecisionTreeClassifier>
2672 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2673 public func predictions(from data: TabularData.DataFrame) throws -> TabularData.AnyColumn
2674 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2675 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2676 @available(tvOS, unavailable)
2677 public func predictions(from data: CreateML.MLDataTable) throws -> CreateML.MLUntypedColumn
2678 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2679 public func evaluation(on labeledData: TabularData.DataFrame) -> CreateML.MLClassifierMetrics
2680 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2681 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2682 @available(tvOS, unavailable)
2683 public func evaluation(on labeledData: CreateML.MLDataTable) -> CreateML.MLClassifierMetrics
2684 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
2685 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
2686}
2687@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2688extension CreateML.MLDecisionTreeClassifier : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
2689 public var description: Swift.String {
2690 get
2691 }
2692 public var debugDescription: Swift.String {
2693 get
2694 }
2695 public var playgroundDescription: Any {
2548}
2549@available(macOS 11.0, iOS 15.0, *)
2550@available(tvOS, unavailable)
2551extension CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ModelAlgorithmType : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
2552 public var description: Swift::String {
2553 get
2554 }
2555 public var debugDescription: Swift::String {
2556 get
2557 }
2558 public var playgroundDescription: Any {
2559 get
2560 }
2561}
2562extension CreateML::MLStyleTransfer.CreateML::ModelParameters {
2563 @available(macOS 11.0, iOS 15.0, *)
2564 @available(tvOS, unavailable)
2565 public enum ValidationData : Swift::Sendable {
2566 case content(Foundation::URL)
2567 case none
2568 }
2569}
2570@available(macOS 11.0, iOS 15.0, *)
2571@available(tvOS, unavailable)
2572extension CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ValidationData : Swift::Equatable {
2573 public static func == (a: CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ValidationData, b: CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ValidationData) -> Swift::Bool
2574}
2575@available(macOS 10.14, iOS 15.0, *)
2576@available(tvOS, unavailable)
2577extension CreateML::MLTextClassifier {
2578 public func prediction(from text: Swift::String) throws -> Swift::String
2579 public func predictions(from texts: [Swift::String]) throws -> [Swift::String]
2580 @available(macOS 11.0, iOS 15.0, *)
2581 @available(tvOS, unavailable)
2582 public func predictionWithConfidence(from text: Swift::String) throws -> [Swift::String : Swift::Double]
2583 @available(macOS 11.0, iOS 15.0, *)
2584 @available(tvOS, unavailable)
2585 public func predictionsWithConfidence(from texts: [Swift::String]) throws -> [[Swift::String : Swift::Double]]
2586}
2587@available(macOS 10.14, iOS 15.0, *)
2588@available(tvOS, unavailable)
2589extension CreateML::MLTextClassifier {
2590 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataSource instead of MLDataTable.")
2591 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2592 @available(tvOS, unavailable)
2593 public func predictions(from texts: CreateML::MLDataColumn<Swift::String>) throws -> CreateML::MLDataColumn<Swift::String>
2594 @available(macOS, introduced: 11.0, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2595 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2596 @available(tvOS, unavailable)
2597 public func predictionsWithConfidence(from texts: CreateML::MLDataColumn<Swift::String>) throws -> CreateML::MLDataColumn<[Swift::String : Swift::Double]>
2598}
2599extension CreateML::MLImageClassifier.CreateML::ModelParameters {
2600 @available(macOS 11.0, iOS 15.0, *)
2601 @available(tvOS, unavailable)
2602 public enum ClassifierType : Swift::Equatable, Swift::Hashable, Swift::CustomStringConvertible, Swift::Sendable {
2603 case logisticRegressor
2604 public var description: Swift::String {
2605 get
2606 }
2607 public static func == (a: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ClassifierType, b: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ClassifierType) -> Swift::Bool
2608 public func hash(into hasher: inout Swift::Hasher)
2609 public var hashValue: Swift::Int {
2610 get
2611 }
2612 }
2613}
2614extension CreateML::MLDataTable {
2615 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2616 public func randomSplitBySequence(proportion: Swift::Double, by sequenceIdentifierColumn: Swift::String, on column: Swift::String, seed: Swift::Int = 1) -> (CreateML::MLDataTable, remaining: CreateML::MLDataTable)
2617 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2618 public func randomSplit(by proportion: Swift::Double, seed: Swift::Int = 1) -> (CreateML::MLDataTable, CreateML::MLDataTable)
2619 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2620 public func stratifiedSplit(proportions: [Swift::Double], on column: Swift::String, seed: Swift::Int = timestampSeed()) throws -> CreateML::MLDataTable
2621 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2622 public func stratifiedSplit<RNG>(proportions: [Swift::Double], on column: Swift::String, generator: inout RNG) throws -> CreateML::MLDataTable where RNG : Swift::RandomNumberGenerator
2623 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2624 public func stratifiedSplitBySequence<RNG>(proportions: [Swift::Double], by sequenceIdentifierColumn: Swift::String, on column: Swift::String, generator: inout RNG) throws -> CreateML::MLDataTable where RNG : Swift::RandomNumberGenerator
2625 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2626 public func stratifiedSplitBySequence(proportions: [Swift::Double], by sequenceIdentifierColumn: Swift::String, on column: Swift::String, seed: Swift::Int = timestampSeed()) throws -> CreateML::MLDataTable
2627}
2628@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2629public struct MLDecisionTreeClassifier : @unchecked Swift::Sendable {
2630 public var model: CoreML::MLModel {
2631 get
2632 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
2633 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
2634 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
2635 set
2636 }
2637 public var targetColumn: Swift::String
2638 public var featureColumns: [Swift::String]
2639 public let modelParameters: CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters
2640 public var trainingMetrics: CreateML::MLClassifierMetrics {
2641 get
2642 }
2643 public var validationMetrics: CreateML::MLClassifierMetrics {
2644 get
2645 }
2646 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2647 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
2648 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2649 public init(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2650 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2651 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2652 @available(tvOS, unavailable)
2653 public init(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters = ModelParameters(validationData: nil)) throws
2654 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2655 public init(checkpoint: CreateML::MLCheckpoint) throws
2656 @available(macOS, introduced: 12.0, deprecated: 14.0)
2657 @available(iOS, introduced: 15.0, deprecated: 17.0)
2658 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2659 public static func train(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLDecisionTreeClassifier>
2660 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2661 public static func train(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLDecisionTreeClassifier>
2662 @available(macOS, introduced: 12.0, deprecated: 14.0)
2663 @available(iOS, introduced: 15.0, deprecated: 17.0)
2664 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2665 public static func makeTrainingSession(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLDecisionTreeClassifier>
2666 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2667 public static func makeTrainingSession(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLDecisionTreeClassifier>
2668 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2669 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLDecisionTreeClassifier>
2670 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2671 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLDecisionTreeClassifier>) throws -> CreateML::MLJob<CreateML::MLDecisionTreeClassifier>
2672 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2673 public func predictions(from data: TabularData::DataFrame) throws -> TabularData::AnyColumn
2674 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2675 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2676 @available(tvOS, unavailable)
2677 public func predictions(from data: CreateML::MLDataTable) throws -> CreateML::MLUntypedColumn
2678 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
2679 public func evaluation(on labeledData: TabularData::DataFrame) -> CreateML::MLClassifierMetrics
2680 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
2681 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
2682 @available(tvOS, unavailable)
2683 public func evaluation(on labeledData: CreateML::MLDataTable) -> CreateML::MLClassifierMetrics
2684 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
2685 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
2686}
2687@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2688extension CreateML::MLDecisionTreeClassifier : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
2689 public var description: Swift::String {
2690 get
2691 }
2692 public var debugDescription: Swift::String {
2693 get
2694 }
2695 public var playgroundDescription: Any {
… 2 unchanged lines …
2698}
2699@available(macOS 10.15, iOS 15.0, *)
2700@available(tvOS, unavailable)
2701extension CreateML.MLSoundClassifier {
2702 public enum DataSource {
2703 case labeledDirectories(at: Foundation.URL)
2704 case labeledFiles(at: Foundation.URL)
2705 @available(macOS 11.0, iOS 15.0, *)
2706 @available(tvOS, unavailable)
2707 case filesByLabel([Swift.String : [Foundation.URL]])
2708 @available(macOS, introduced: 11.0, deprecated: 14.0)
2709 @available(iOS, introduced: 15.0, deprecated: 17.0)
2710 @available(tvOS, unavailable)
2711 case features(table: CreateML.MLDataTable, featureColumn: Swift.String = __Defaults.featureColumnName, labelColumn: Swift.String = __Defaults.labelColumnName, parameters: CreateML.MLSoundClassifier.FeatureExtractionParameters = FeatureExtractionParameters())
2712 @available(macOS 12.0, iOS 15.0, *)
2713 @available(tvOS, unavailable)
2714 case featuresDataFrame(TabularData.DataFrame, featureColumn: Swift.String = __Defaults.featureColumnName, labelColumn: Swift.String = __Defaults.labelColumnName, parameters: CreateML.MLSoundClassifier.FeatureExtractionParameters = FeatureExtractionParameters())
2715 public func labeledSounds() throws -> [Swift.String : [Foundation.URL]]
2716 public func stratifiedSplit(proportions: [Swift.Double], seed: Swift.Int = timestampSeed()) throws -> [[Swift.String : [Foundation.URL]]]
2717 public func stratifiedSplit<RNG>(proportions: [Swift.Double], generator: inout RNG) throws -> [[Swift.String : [Foundation.URL]]] where RNG : Swift.RandomNumberGenerator
2718 }
2719}
2720@available(*, unavailable)
2721extension CreateML.MLSoundClassifier.DataSource : Swift.Sendable {
2722}
2723@available(macOS 10.14, iOS 15.0, *)
2724@available(tvOS, unavailable)
2725public struct MLTextClassifier : @unchecked Swift.Sendable {
2726 public var model: CoreML.MLModel {
2727 get
2728 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
2729 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
2730 @available(tvOS, unavailable)
2731 set
2732 }
2733 public let modelParameters: CreateML.MLTextClassifier.ModelParameters
2734 public let trainingMetrics: CreateML.MLClassifierMetrics
2735 public let validationMetrics: CreateML.MLClassifierMetrics
2736 @available(macOS 10.15, iOS 15.0, *)
2737 @available(tvOS, unavailable)
2738 public init(trainingData: CreateML.MLTextClassifier.DataSource, parameters: CreateML.MLTextClassifier.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2739 @available(macOS 10.15, iOS 15.0, *)
2740 @available(tvOS, unavailable)
2741 public init(trainingData: [Swift.String : [Swift.String]], parameters: CreateML.MLTextClassifier.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2742 @available(macOS 13.0, iOS 16.0, *)
2743 @available(tvOS, unavailable)
2744 public init(trainingData: TabularData.DataFrame, textColumn: Swift.String, labelColumn: Swift.String, parameters: CreateML.MLTextClassifier.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2745 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataSource instead of MLDataTable when initializing.")
2746 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2747 @available(tvOS, unavailable)
2748 public init(trainingData: CreateML.MLDataTable, textColumn: Swift.String, labelColumn: Swift.String, parameters: CreateML.MLTextClassifier.ModelParameters = ModelParameters(validationData: nil)) throws
2749}
2750@available(macOS 10.14, iOS 15.0, *)
2751@available(tvOS, unavailable)
2752extension CreateML.MLTextClassifier : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
2753 public var description: Swift.String {
2754 get
2755 }
2756 public var debugDescription: Swift.String {
2757 get
2758 }
2759 public var playgroundDescription: Any {
2698}
2699@available(macOS 10.15, iOS 15.0, *)
2700@available(tvOS, unavailable)
2701extension CreateML::MLSoundClassifier {
2702 public enum DataSource {
2703 case labeledDirectories(at: Foundation::URL)
2704 case labeledFiles(at: Foundation::URL)
2705 @available(macOS 11.0, iOS 15.0, *)
2706 @available(tvOS, unavailable)
2707 case filesByLabel([Swift::String : [Foundation::URL]])
2708 @available(macOS, introduced: 11.0, deprecated: 14.0)
2709 @available(iOS, introduced: 15.0, deprecated: 17.0)
2710 @available(tvOS, unavailable)
2711 case features(table: CreateML::MLDataTable, featureColumn: Swift::String = __Defaults.featureColumnName, labelColumn: Swift::String = __Defaults.labelColumnName, parameters: CreateML::MLSoundClassifier.CreateML::FeatureExtractionParameters = FeatureExtractionParameters())
2712 @available(macOS 12.0, iOS 15.0, *)
2713 @available(tvOS, unavailable)
2714 case featuresDataFrame(TabularData::DataFrame, featureColumn: Swift::String = __Defaults.featureColumnName, labelColumn: Swift::String = __Defaults.labelColumnName, parameters: CreateML::MLSoundClassifier.CreateML::FeatureExtractionParameters = FeatureExtractionParameters())
2715 public func labeledSounds() throws -> [Swift::String : [Foundation::URL]]
2716 public func stratifiedSplit(proportions: [Swift::Double], seed: Swift::Int = timestampSeed()) throws -> [[Swift::String : [Foundation::URL]]]
2717 public func stratifiedSplit<RNG>(proportions: [Swift::Double], generator: inout RNG) throws -> [[Swift::String : [Foundation::URL]]] where RNG : Swift::RandomNumberGenerator
2718 }
2719}
2720@available(*, unavailable)
2721extension CreateML::MLSoundClassifier.CreateML::DataSource : Swift::Sendable {
2722}
2723@available(macOS 10.14, iOS 15.0, *)
2724@available(tvOS, unavailable)
2725public struct MLTextClassifier : @unchecked Swift::Sendable {
2726 public var model: CoreML::MLModel {
2727 get
2728 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
2729 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
2730 @available(tvOS, unavailable)
2731 set
2732 }
2733 public let modelParameters: CreateML::MLTextClassifier.CreateML::ModelParameters
2734 public let trainingMetrics: CreateML::MLClassifierMetrics
2735 public let validationMetrics: CreateML::MLClassifierMetrics
2736 @available(macOS 10.15, iOS 15.0, *)
2737 @available(tvOS, unavailable)
2738 public init(trainingData: CreateML::MLTextClassifier.CreateML::DataSource, parameters: CreateML::MLTextClassifier.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2739 @available(macOS 10.15, iOS 15.0, *)
2740 @available(tvOS, unavailable)
2741 public init(trainingData: [Swift::String : [Swift::String]], parameters: CreateML::MLTextClassifier.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2742 @available(macOS 13.0, iOS 16.0, *)
2743 @available(tvOS, unavailable)
2744 public init(trainingData: TabularData::DataFrame, textColumn: Swift::String, labelColumn: Swift::String, parameters: CreateML::MLTextClassifier.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
2745 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataSource instead of MLDataTable when initializing.")
2746 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
2747 @available(tvOS, unavailable)
2748 public init(trainingData: CreateML::MLDataTable, textColumn: Swift::String, labelColumn: Swift::String, parameters: CreateML::MLTextClassifier.CreateML::ModelParameters = ModelParameters(validationData: nil)) throws
2749}
2750@available(macOS 10.14, iOS 15.0, *)
2751@available(tvOS, unavailable)
2752extension CreateML::MLTextClassifier : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
2753 public var description: Swift::String {
2754 get
2755 }
2756 public var debugDescription: Swift::String {
2757 get
2758 }
2759 public var playgroundDescription: Any {
… 2 unchanged lines …
2762}
2763@available(macOS 10.15, iOS 15.0, *)
2764@available(tvOS, unavailable)
2765public struct MLSoundClassifier : @unchecked Swift.Sendable {
2766 @available(macOS 11.0, iOS 15.0, *)
2767 @available(tvOS, unavailable)
2768 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
2769 public var model: CoreML.MLModel {
2770 get
2771 @available(macOS, introduced: 11.0, deprecated: 14.0, message: "Setting the model is not supported.")
2772 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
2773 @available(tvOS, unavailable)
2774 set
2775 }
2776 public let modelParameters: CreateML.MLSoundClassifier.ModelParameters
2777 public var trainingMetrics: CreateML.MLClassifierMetrics {
2778 get
2779 }
2780 public var validationMetrics: CreateML.MLClassifierMetrics {
2781 get
2782 }
2783 public init(trainingData: CreateML.MLSoundClassifier.DataSource, parameters: CreateML.MLSoundClassifier.ModelParameters = ModelParameters()) throws
2784 @available(macOS, introduced: 10.15, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
2785 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
2786 @available(tvOS, unavailable)
2787 public init(trainingData: [Swift.String : [Foundation.URL]], parameters: CreateML.MLSoundClassifier.ModelParameters = ModelParameters()) throws
2788 @available(macOS 11.0, iOS 15.0, *)
2789 @available(tvOS, unavailable)
2790 public init(checkpoint: CreateML.MLCheckpoint) throws
2791 @available(macOS 11.0, iOS 15.0, *)
2792 @available(tvOS, unavailable)
2793 public static func train(trainingData: CreateML.MLSoundClassifier.DataSource, parameters: CreateML.MLSoundClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLSoundClassifier>
2794 @available(macOS 11.0, iOS 15.0, *)
2795 @available(tvOS, unavailable)
2796 public static func train(trainingData: [Swift.String : [Foundation.URL]], parameters: CreateML.MLSoundClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLSoundClassifier>
2797 @available(macOS 11.0, iOS 15.0, *)
2798 @available(tvOS, unavailable)
2799 public static func extractFeatures(trainingData: CreateML.MLSoundClassifier.DataSource, parameters: CreateML.MLSoundClassifier.FeatureExtractionParameters = FeatureExtractionParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLSoundClassifier.DataSource>
2800 @available(macOS 11.0, iOS 15.0, *)
2801 @available(tvOS, unavailable)
2802 public static func makeTrainingSession(trainingData: CreateML.MLSoundClassifier.DataSource, parameters: CreateML.MLSoundClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLSoundClassifier>
2803 @available(macOS 11.0, iOS 15.0, *)
2804 @available(tvOS, unavailable)
2805 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLSoundClassifier>
2806 @available(macOS 11.0, iOS 15.0, *)
2807 @available(tvOS, unavailable)
2808 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLSoundClassifier>) throws -> CreateML.MLJob<CreateML.MLSoundClassifier>
2809 public func evaluation(on testingData: CreateML.MLSoundClassifier.DataSource) -> CreateML.MLClassifierMetrics
2810 @available(macOS, introduced: 10.15, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary testing data instead.")
2811 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary testing data instead.")
2812 @available(tvOS, unavailable)
2813 public func evaluation(on testingData: [Swift.String : [Foundation.URL]]) -> CreateML.MLClassifierMetrics
2814 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
2815 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
2816 public func predictions(from audioFiles: [Foundation.URL]) throws -> [Swift.String]
2817 @available(macOS 12.0, iOS 15.0, *)
2818 @available(tvOS, unavailable)
2819 public func predictions(from audioFiles: [Foundation.URL], overlapFactor: Swift.Double, predictionTimeWindowSize: Foundation.TimeInterval) throws -> [Swift.String]
2820}
2821@available(macOS 10.15, iOS 15.0, *)
2822@available(tvOS, unavailable)
2823extension CreateML.MLSoundClassifier : Swift.CustomStringConvertible {
2824 public var description: Swift.String {
2825 get
2826 }
2827}
2828@available(macOS 10.15, iOS 15.0, *)
2829@available(tvOS, unavailable)
2830extension CreateML.MLSoundClassifier : Swift.CustomDebugStringConvertible {
2831 public var debugDescription: Swift.String {
2832 get
2833 }
2834}
2835@available(macOS 10.15, iOS 15.0, *)
2836@available(tvOS, unavailable)
2837extension CreateML.MLSoundClassifier : Swift.CustomPlaygroundDisplayConvertible {
2838 public var playgroundDescription: Any {
2839 get
2840 }
2841}
2842@available(macOS 12.0, iOS 15.0, *)
2843@available(tvOS, unavailable)
2844extension CreateML.MLHandActionClassifier {
2845 public struct VideoAugmentationOptions : Swift.OptionSet, Swift.Codable, Swift.Sendable {
2846 public let rawValue: Swift.Int
2847 public static let horizontallyFlip: CreateML.MLHandActionClassifier.VideoAugmentationOptions
2848 public static let rotate: CreateML.MLHandActionClassifier.VideoAugmentationOptions
2849 public static let translate: CreateML.MLHandActionClassifier.VideoAugmentationOptions
2850 public static let scale: CreateML.MLHandActionClassifier.VideoAugmentationOptions
2851 public static let interpolateFrames: CreateML.MLHandActionClassifier.VideoAugmentationOptions
2852 public static let dropFrames: CreateML.MLHandActionClassifier.VideoAugmentationOptions
2853 public init(rawValue: Swift.Int)
2854 @available(iOS 15.0, macOS 12.0, *)
2855 @available(tvOS, unavailable)
2856 public typealias ArrayLiteralElement = CreateML.MLHandActionClassifier.VideoAugmentationOptions
2857 @available(iOS 15.0, macOS 12.0, *)
2858 @available(tvOS, unavailable)
2859 public typealias Element = CreateML.MLHandActionClassifier.VideoAugmentationOptions
2860 @available(iOS 15.0, macOS 12.0, *)
2861 @available(tvOS, unavailable)
2862 public typealias RawValue = Swift.Int
2863 }
2864}
2865@available(macOS 12.0, iOS 15.0, *)
2866@available(tvOS, unavailable)
2867extension CreateML.MLHandActionClassifier {
2868 public enum DataSource {
2869 case directoryWithVideosAndAnnotation(at: Foundation.URL, annotationFile: Foundation.URL, videoColumn: Swift.String, labelColumn: Swift.String, startTimeColumn: Swift.String? = nil, endTimeColumn: Swift.String? = nil)
2870 case labeledDirectories(at: Foundation.URL)
2871 case labeledFiles(at: Foundation.URL)
2872 @available(macOS, introduced: 12.0, deprecated: 14.0)
2873 @available(iOS, introduced: 15.0, deprecated: 17.0)
2874 @available(tvOS, unavailable)
2875 case labeledKeypointsData(table: CreateML.MLDataTable, sessionIdColumn: Swift.String = __Defaults.sessionIdColumnName, labelColumn: Swift.String = __Defaults.labelColumnName, featureColumn: Swift.String = __Defaults.featureColumnName)
2876 @available(macOS, introduced: 12.0, deprecated: 14.0)
2877 @available(iOS, introduced: 15.0, deprecated: 17.0)
2878 @available(tvOS, unavailable)
2879 case labeledVideoData(table: CreateML.MLDataTable, videoColumn: Swift.String = __Defaults.videoColumnName, labelColumn: Swift.String = __Defaults.labelColumnName, startTimeColumn: Swift.String? = nil, endTimeColumn: Swift.String? = nil)
2880 case labeledKeypointsDataFrame(TabularData.DataFrame, sessionIdColumn: Swift.String = __Defaults.sessionIdColumnName, labelColumn: Swift.String = __Defaults.labelColumnName, featureColumn: Swift.String = __Defaults.featureColumnName)
2881 case labeledVideoDataFrame(TabularData.DataFrame, videoColumn: Swift.String = __Defaults.videoColumnName, labelColumn: Swift.String = __Defaults.labelColumnName, startTimeColumn: Swift.String? = nil, endTimeColumn: Swift.String? = nil)
2882 @available(macOS 14.0, iOS 17.0, *)
2883 @available(tvOS, unavailable)
2884 public func gatherAnnotatedFileNames() throws -> TabularData.DataFrame?
2885 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use gatherAnnotatedFileNames()")
2886 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use gatherAnnotatedFileNames()")
2887 @available(tvOS, unavailable)
2888 public func videosWithAnnotations() throws -> CreateML.MLDataTable
2889 @available(macOS 14.0, iOS 17.0, *)
2890 @available(tvOS, unavailable)
2891 public func extractKeypoints(targetFrameRate: Swift.Double = MLHandActionClassifier.__Defaults.targetFrameRate) throws -> TabularData.DataFrame
2892 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use extractKeypoints(targetFrameRate:)")
2893 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use extractKeypoints(targetFrameRate:)")
2894 @available(tvOS, unavailable)
2895 public func keypointsWithAnnotations(targetFrameRate: Swift.Double = MLHandActionClassifier.__Defaults.targetFrameRate) throws -> CreateML.MLDataTable
2896 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use DataFrame.stratifiedSplit(on:by:)")
2897 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use DataFrame.stratifiedSplit(on:by:)")
2898 @available(tvOS, unavailable)
2899 public func stratifiedSplit(proportions: [Swift.Double], seed: Swift.Int = timestampSeed(), labelColumn: Swift.String) throws -> CreateML.MLDataTable
2900 }
2901}
2902@available(*, unavailable)
2903extension CreateML.MLHandActionClassifier.DataSource : Swift.Sendable {
2904}
2905@available(macOS 12.0, iOS 15.0, *)
2906@available(tvOS, unavailable)
2907extension CreateML.MLHandActionClassifier.DataSource {
2908 public func labeledMedia() throws -> [Swift.String : [Foundation.URL]]
2909}
2910@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2911public enum MLPhase : Swift.String, Swift.Codable, Swift.Sendable {
2912 case initialized
2913 case extractingFeatures
2914 case training
2915 case evaluating
2916 case inferencing
2917 public init?(rawValue: Swift.String)
2918 @available(iOS 15.0, tvOS 16.0, macOS 11.0, *)
2919 public typealias RawValue = Swift.String
2920 public var rawValue: Swift.String {
2921 get
2922 }
2923}
2924extension CreateML.MLLinearRegressor.ModelParameters {
2925 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2926 public enum ValidationData {
2927 case split(strategy: CreateML.MLSplitStrategy)
2928 @available(macOS, introduced: 11.0, deprecated: 14.0)
2929 @available(iOS, introduced: 15.0, deprecated: 17.0)
2930 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2931 case table(CreateML.MLDataTable)
2932 @available(macOS 13.0, iOS 16.0, tvOS 16.0, *)
2933 case dataFrame(TabularData.DataFrame)
2934 case none
2935 }
2936}
2937extension CreateML.MLBoostedTreeRegressor.ModelParameters {
2938 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2939 public enum ValidationData {
2940 case split(strategy: CreateML.MLSplitStrategy)
2941 @available(macOS, introduced: 11.0, deprecated: 14.0)
2942 @available(iOS, introduced: 15.0, deprecated: 17.0)
2943 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2944 case table(CreateML.MLDataTable)
2945 @available(macOS 13.0, iOS 16.0, tvOS 16.0, *)
2946 case dataFrame(TabularData.DataFrame)
2947 case none
2948 }
2949}
2950@available(*, unavailable)
2951extension CreateML.MLBoostedTreeRegressor.ModelParameters.ValidationData : Swift.Sendable {
2952}
2953@available(macOS 10.14, iOS 15.0, *)
2954@available(tvOS, unavailable)
2955extension CreateML.MLTextClassifier.ModelParameters {
2956 @available(macOS 10.15, iOS 15.0, *)
2957 @available(tvOS, unavailable)
2958 public enum ValidationData {
2959 case split(strategy: CreateML.MLSplitStrategy)
2960 @available(macOS, introduced: 10.15, deprecated: 14.0)
2961 @available(iOS, introduced: 15.0, deprecated: 17.0)
2962 @available(tvOS, unavailable)
2963 case table(CreateML.MLDataTable, textColumn: Swift.String, labelColumn: Swift.String)
2964 @available(macOS 13.0, iOS 16.0, *)
2965 @available(tvOS, unavailable)
2966 case dataFrame(TabularData.DataFrame, textColumn: Swift.String, labelColumn: Swift.String)
2967 case dataSource(CreateML.MLTextClassifier.DataSource)
2968 case dictionary([Swift.String : [Swift.String]])
2969 case none
2970 }
2971}
2972@available(*, unavailable)
2973extension CreateML.MLTextClassifier.ModelParameters.ValidationData : Swift.Sendable {
2974}
2975@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2976public struct MLDataTable {
2977 public var error: (any Swift.Error)? {
2978 get
2979 }
2980 public var isValid: Swift.Bool {
2981 get
2982 }
2983 public var size: (rows: Swift.Int, columns: Swift.Int) {
2984 get
2985 }
2986 public var columnTypes: [Swift.String : CreateML.MLDataValue.ValueType] {
2987 get
2988 }
2989 public init()
2990 public init(namedColumns: [Swift.String : CreateML.MLUntypedColumn]) throws
2991 public init(dictionary: [Swift.String : any CreateML.MLDataValueConvertible]) throws
2992 public subscript(columnName: Swift.String) -> CreateML.MLUntypedColumn {
2993 get
2994 set(newValue)
2995 }
2996 public subscript<Element>(columnName: Swift.String) -> CreateML.MLDataColumn<Element> where Element : CreateML.MLDataValueConvertible {
2997 get
2998 set(newValue)
2999 }
3000 public subscript<T>(columnName: Swift.String, columnType: T.Type) -> CreateML.MLDataColumn<T>? where T : CreateML.MLDataValueConvertible {
3001 get
3002 }
3003 public subscript<S>(columnNames: S) -> CreateML.MLDataTable where S : Swift.Sequence, S.Element == Swift.String {
3004 get
3005 }
3006 public subscript(slice: Swift.Range<Swift.Int>) -> CreateML.MLDataTable {
3007 get
3008 }
3009 public subscript<R>(slice: R) -> CreateML.MLDataTable where R : Swift.RangeExpression, R.Bound == Swift.Int {
3010 get
3011 }
3012 public mutating func addColumn(_ newColumn: CreateML.MLUntypedColumn, named: Swift.String)
3013 public mutating func addColumn<Element>(_ newColumn: CreateML.MLDataColumn<Element>, named: Swift.String) where Element : CreateML.MLDataValueConvertible
3014 public mutating func removeColumn(named: Swift.String)
3015 public mutating func renameColumn(named: Swift.String, to: Swift.String)
3016 public mutating func append(contentsOf newTable: CreateML.MLDataTable)
3017 public func randomSample(by proportion: Swift.Double, seed: Swift.Int = 42) -> CreateML.MLDataTable
3018 public func intersect<T>(_ values: T..., of columnNamed: Swift.String) -> CreateML.MLDataTable where T : CreateML.MLDataValueConvertible
3019 public func exclude<T>(_ values: T..., of columnNamed: Swift.String) -> CreateML.MLDataTable where T : CreateML.MLDataValueConvertible
3020 public func join(with: CreateML.MLDataTable, on columnsNamed: Swift.String..., type: CreateML.MLDataTable.JoinType = .inner) -> CreateML.MLDataTable
3021 public enum JoinType : Swift.Sendable {
3022 case inner
3023 case outer
3024 case left
3025 case right
3026 public static func == (a: CreateML.MLDataTable.JoinType, b: CreateML.MLDataTable.JoinType) -> Swift.Bool
3027 public func hash(into hasher: inout Swift.Hasher)
3028 public var hashValue: Swift.Int {
3029 get
3030 }
3031 }
3032 public subscript(mask: CreateML.MLUntypedColumn) -> CreateML.MLDataTable {
3033 get
3034 }
3035 public subscript(mask: CreateML.MLDataColumn<Swift.Bool>) -> CreateML.MLDataTable {
3036 get
3037 }
3038 public func map<T>(_ lazyTransform: @escaping (CreateML.MLDataTable.Row) -> T?) -> CreateML.MLDataColumn<T> where T : CreateML.MLDataValueConvertible
3039 public func map<T>(_ lazyTransform: @escaping (CreateML.MLDataTable.Row) -> T) -> CreateML.MLDataColumn<T> where T : CreateML.MLDataValueConvertible
3040 public func dropMissing() -> CreateML.MLDataTable
3041 public func fillMissing(columnNamed: Swift.String, with value: CreateML.MLDataValue) -> CreateML.MLDataTable
3042 public func dropDuplicates() -> CreateML.MLDataTable
3043 public func prefix(_ maxLength: Swift.Int = 10) -> CreateML.MLDataTable
3044 public func suffix(_ maxLength: Swift.Int = 10) -> CreateML.MLDataTable
3045 public func sort(columnNamed: Swift.String, byIncreasingOrder: Swift.Bool = true) -> CreateML.MLDataTable
3046 public func expand(columnNamed: Swift.String, to: Swift.String) -> CreateML.MLDataTable
3047 public func condense(columnNamed: Swift.String, to: Swift.String) -> CreateML.MLDataTable
3048}
3049@available(*, unavailable)
3050extension CreateML.MLDataTable : Swift.Sendable {
3051}
3052@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3053extension CreateML.MLDataTable : Swift.CustomStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
3054 public var playgroundDescription: Any {
3055 get
3056 }
3057 public var description: Swift.String {
3058 get
3059 }
3060}
3061@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3062public protocol MLDataValueConvertible {
3063 static var dataValueType: CreateML.MLDataValue.ValueType { get }
3064 init?(from dataValue: CreateML.MLDataValue)
3065 init()
3066 var dataValue: CreateML.MLDataValue { get }
3067}
3068@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3069extension Swift.Int : CreateML.MLDataValueConvertible {
3070 public static var dataValueType: CreateML.MLDataValue.ValueType {
3071 get
3072 }
3073 public init?(from dataValue: CreateML.MLDataValue)
3074 public var dataValue: CreateML.MLDataValue {
3075 get
3076 }
3077}
3078@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3079extension Swift.Bool : CreateML.MLDataValueConvertible {
3080 public static var dataValueType: CreateML.MLDataValue.ValueType {
3081 get
3082 }
3083 public init?(from dataValue: CreateML.MLDataValue)
3084 public var dataValue: CreateML.MLDataValue {
3085 get
3086 }
3087}
3088@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3089extension Swift.Int64 : CreateML.MLDataValueConvertible {
3090 public static var dataValueType: CreateML.MLDataValue.ValueType {
3091 get
3092 }
3093 public init?(from dataValue: CreateML.MLDataValue)
3094 public var dataValue: CreateML.MLDataValue {
3095 get
3096 }
3097}
3098@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3099extension Swift.Double : CreateML.MLDataValueConvertible {
3100 public static var dataValueType: CreateML.MLDataValue.ValueType {
3101 get
3102 }
3103 public init?(from dataValue: CreateML.MLDataValue)
3104 public var dataValue: CreateML.MLDataValue {
3105 get
3106 }
3107}
3108@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3109extension Swift.String : CreateML.MLDataValueConvertible {
3110 public static var dataValueType: CreateML.MLDataValue.ValueType {
3111 get
3112 }
3113 public init?(from dataValue: CreateML.MLDataValue)
3114 public var dataValue: CreateML.MLDataValue {
3115 get
3116 }
3117}
3118extension CreateML.MLLogisticRegressionClassifier.ModelParameters {
3119 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
3120 public enum ValidationData {
3121 case split(strategy: CreateML.MLSplitStrategy)
3122 @available(macOS, introduced: 10.15, deprecated: 14.0)
3123 @available(iOS, introduced: 15.0, deprecated: 17.0)
3124 @available(tvOS, introduced: 16.0, deprecated: 17.0)
3125 case table(CreateML.MLDataTable)
3126 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3127 case dataFrame(TabularData.DataFrame)
3128 case none
3129 }
3130}
3131@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3132public struct MLBoostedTreeClassifier : @unchecked Swift.Sendable {
3133 public var model: CoreML.MLModel {
3134 get
3135 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
3136 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
3137 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
3138 set
3139 }
3140 public var targetColumn: Swift.String
3141 public var featureColumns: [Swift.String]
3142 public let modelParameters: CreateML.MLBoostedTreeClassifier.ModelParameters
3143 public var trainingMetrics: CreateML.MLClassifierMetrics {
3144 get
3145 }
3146 public var validationMetrics: CreateML.MLClassifierMetrics {
3147 get
3148 }
3149 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3150 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
3151 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3152 public init(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeClassifier.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
3153 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
3154 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
3155 @available(tvOS, unavailable)
3156 public init(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeClassifier.ModelParameters = ModelParameters(validationData: nil)) throws
3157 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3158 public init(checkpoint: CreateML.MLCheckpoint) throws
3159 @available(macOS, introduced: 12.0, deprecated: 14.0)
3160 @available(iOS, introduced: 15.0, deprecated: 17.0)
3161 @available(tvOS, introduced: 16.0, deprecated: 17.0)
3162 public static func train(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLBoostedTreeClassifier>
3163 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3164 public static func train(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeClassifier.ModelParameters = ModelParameters(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLBoostedTreeClassifier>
3165 @available(macOS, introduced: 12.0, deprecated: 14.0)
3166 @available(iOS, introduced: 15.0, deprecated: 17.0)
3167 @available(tvOS, introduced: 16.0, deprecated: 17.0)
3168 public static func makeTrainingSession(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLBoostedTreeClassifier>
3169 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3170 public static func makeTrainingSession(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLBoostedTreeClassifier.ModelParameters = .init(), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLBoostedTreeClassifier>
3171 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3172 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLBoostedTreeClassifier>
3173 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3174 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLBoostedTreeClassifier>) throws -> CreateML.MLJob<CreateML.MLBoostedTreeClassifier>
3175 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3176 public func predictions(from data: TabularData.DataFrame) throws -> TabularData.AnyColumn
3177 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
3178 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
3179 @available(tvOS, unavailable)
3180 public func predictions(from data: CreateML.MLDataTable) throws -> CreateML.MLUntypedColumn
3181 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3182 public func evaluation(on labeledData: TabularData.DataFrame) -> CreateML.MLClassifierMetrics
3183 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
3184 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
3185 @available(tvOS, unavailable)
3186 public func evaluation(on labeledData: CreateML.MLDataTable) -> CreateML.MLClassifierMetrics
3187 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
3188 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
3189}
3190@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3191extension CreateML.MLBoostedTreeClassifier : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
3192 public var description: Swift.String {
3193 get
3194 }
3195 public var debugDescription: Swift.String {
3196 get
3197 }
3198 public var playgroundDescription: Any {
2762}
2763@available(macOS 10.15, iOS 15.0, *)
2764@available(tvOS, unavailable)
2765public struct MLSoundClassifier : @unchecked Swift::Sendable {
2766 @available(macOS 11.0, iOS 15.0, *)
2767 @available(tvOS, unavailable)
2768 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
2769 public var model: CoreML::MLModel {
2770 get
2771 @available(macOS, introduced: 11.0, deprecated: 14.0, message: "Setting the model is not supported.")
2772 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
2773 @available(tvOS, unavailable)
2774 set
2775 }
2776 public let modelParameters: CreateML::MLSoundClassifier.CreateML::ModelParameters
2777 public var trainingMetrics: CreateML::MLClassifierMetrics {
2778 get
2779 }
2780 public var validationMetrics: CreateML::MLClassifierMetrics {
2781 get
2782 }
2783 public init(trainingData: CreateML::MLSoundClassifier.CreateML::DataSource, parameters: CreateML::MLSoundClassifier.CreateML::ModelParameters = ModelParameters()) throws
2784 @available(macOS, introduced: 10.15, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
2785 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary training data instead.")
2786 @available(tvOS, unavailable)
2787 public init(trainingData: [Swift::String : [Foundation::URL]], parameters: CreateML::MLSoundClassifier.CreateML::ModelParameters = ModelParameters()) throws
2788 @available(macOS 11.0, iOS 15.0, *)
2789 @available(tvOS, unavailable)
2790 public init(checkpoint: CreateML::MLCheckpoint) throws
2791 @available(macOS 11.0, iOS 15.0, *)
2792 @available(tvOS, unavailable)
2793 public static func train(trainingData: CreateML::MLSoundClassifier.CreateML::DataSource, parameters: CreateML::MLSoundClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLSoundClassifier>
2794 @available(macOS 11.0, iOS 15.0, *)
2795 @available(tvOS, unavailable)
2796 public static func train(trainingData: [Swift::String : [Foundation::URL]], parameters: CreateML::MLSoundClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLSoundClassifier>
2797 @available(macOS 11.0, iOS 15.0, *)
2798 @available(tvOS, unavailable)
2799 public static func extractFeatures(trainingData: CreateML::MLSoundClassifier.CreateML::DataSource, parameters: CreateML::MLSoundClassifier.CreateML::FeatureExtractionParameters = FeatureExtractionParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLSoundClassifier.CreateML::DataSource>
2800 @available(macOS 11.0, iOS 15.0, *)
2801 @available(tvOS, unavailable)
2802 public static func makeTrainingSession(trainingData: CreateML::MLSoundClassifier.CreateML::DataSource, parameters: CreateML::MLSoundClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLSoundClassifier>
2803 @available(macOS 11.0, iOS 15.0, *)
2804 @available(tvOS, unavailable)
2805 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLSoundClassifier>
2806 @available(macOS 11.0, iOS 15.0, *)
2807 @available(tvOS, unavailable)
2808 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLSoundClassifier>) throws -> CreateML::MLJob<CreateML::MLSoundClassifier>
2809 public func evaluation(on testingData: CreateML::MLSoundClassifier.CreateML::DataSource) -> CreateML::MLClassifierMetrics
2810 @available(macOS, introduced: 10.15, deprecated: 11.0, message: "Use DataSource.filesByLabel to provide dictionary testing data instead.")
2811 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataSource.filesByLabel to provide dictionary testing data instead.")
2812 @available(tvOS, unavailable)
2813 public func evaluation(on testingData: [Swift::String : [Foundation::URL]]) -> CreateML::MLClassifierMetrics
2814 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
2815 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
2816 public func predictions(from audioFiles: [Foundation::URL]) throws -> [Swift::String]
2817 @available(macOS 12.0, iOS 15.0, *)
2818 @available(tvOS, unavailable)
2819 public func predictions(from audioFiles: [Foundation::URL], overlapFactor: Swift::Double, predictionTimeWindowSize: Foundation::TimeInterval) throws -> [Swift::String]
2820}
2821@available(macOS 10.15, iOS 15.0, *)
2822@available(tvOS, unavailable)
2823extension CreateML::MLSoundClassifier : Swift::CustomStringConvertible {
2824 public var description: Swift::String {
2825 get
2826 }
2827}
2828@available(macOS 10.15, iOS 15.0, *)
2829@available(tvOS, unavailable)
2830extension CreateML::MLSoundClassifier : Swift::CustomDebugStringConvertible {
2831 public var debugDescription: Swift::String {
2832 get
2833 }
2834}
2835@available(macOS 10.15, iOS 15.0, *)
2836@available(tvOS, unavailable)
2837extension CreateML::MLSoundClassifier : Swift::CustomPlaygroundDisplayConvertible {
2838 public var playgroundDescription: Any {
2839 get
2840 }
2841}
2842@available(macOS 12.0, iOS 15.0, *)
2843@available(tvOS, unavailable)
2844extension CreateML::MLHandActionClassifier {
2845 public struct VideoAugmentationOptions : Swift::OptionSet, Swift::Codable, Swift::Sendable {
2846 public let rawValue: Swift::Int
2847 public static let horizontallyFlip: CreateML::MLHandActionClassifier.CreateML::VideoAugmentationOptions
2848 public static let rotate: CreateML::MLHandActionClassifier.CreateML::VideoAugmentationOptions
2849 public static let translate: CreateML::MLHandActionClassifier.CreateML::VideoAugmentationOptions
2850 public static let scale: CreateML::MLHandActionClassifier.CreateML::VideoAugmentationOptions
2851 public static let interpolateFrames: CreateML::MLHandActionClassifier.CreateML::VideoAugmentationOptions
2852 public static let dropFrames: CreateML::MLHandActionClassifier.CreateML::VideoAugmentationOptions
2853 public init(rawValue: Swift::Int)
2854 @available(macOS 12.0, iOS 15.0, *)
2855 @available(tvOS, unavailable)
2856 public typealias ArrayLiteralElement = CreateML::MLHandActionClassifier.CreateML::VideoAugmentationOptions
2857 @available(macOS 12.0, iOS 15.0, *)
2858 @available(tvOS, unavailable)
2859 public typealias Element = CreateML::MLHandActionClassifier.CreateML::VideoAugmentationOptions
2860 @available(macOS 12.0, iOS 15.0, *)
2861 @available(tvOS, unavailable)
2862 public typealias RawValue = Swift::Int
2863 }
2864}
2865@available(macOS 12.0, iOS 15.0, *)
2866@available(tvOS, unavailable)
2867extension CreateML::MLHandActionClassifier {
2868 public enum DataSource {
2869 case directoryWithVideosAndAnnotation(at: Foundation::URL, annotationFile: Foundation::URL, videoColumn: Swift::String, labelColumn: Swift::String, startTimeColumn: Swift::String? = nil, endTimeColumn: Swift::String? = nil)
2870 case labeledDirectories(at: Foundation::URL)
2871 case labeledFiles(at: Foundation::URL)
2872 @available(macOS, introduced: 12.0, deprecated: 14.0)
2873 @available(iOS, introduced: 15.0, deprecated: 17.0)
2874 @available(tvOS, unavailable)
2875 case labeledKeypointsData(table: CreateML::MLDataTable, sessionIdColumn: Swift::String = __Defaults.sessionIdColumnName, labelColumn: Swift::String = __Defaults.labelColumnName, featureColumn: Swift::String = __Defaults.featureColumnName)
2876 @available(macOS, introduced: 12.0, deprecated: 14.0)
2877 @available(iOS, introduced: 15.0, deprecated: 17.0)
2878 @available(tvOS, unavailable)
2879 case labeledVideoData(table: CreateML::MLDataTable, videoColumn: Swift::String = __Defaults.videoColumnName, labelColumn: Swift::String = __Defaults.labelColumnName, startTimeColumn: Swift::String? = nil, endTimeColumn: Swift::String? = nil)
2880 case labeledKeypointsDataFrame(TabularData::DataFrame, sessionIdColumn: Swift::String = __Defaults.sessionIdColumnName, labelColumn: Swift::String = __Defaults.labelColumnName, featureColumn: Swift::String = __Defaults.featureColumnName)
2881 case labeledVideoDataFrame(TabularData::DataFrame, videoColumn: Swift::String = __Defaults.videoColumnName, labelColumn: Swift::String = __Defaults.labelColumnName, startTimeColumn: Swift::String? = nil, endTimeColumn: Swift::String? = nil)
2882 @available(macOS 14.0, iOS 17.0, *)
2883 @available(tvOS, unavailable)
2884 public func gatherAnnotatedFileNames() throws -> TabularData::DataFrame?
2885 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use gatherAnnotatedFileNames()")
2886 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use gatherAnnotatedFileNames()")
2887 @available(tvOS, unavailable)
2888 public func videosWithAnnotations() throws -> CreateML::MLDataTable
2889 @available(macOS 14.0, iOS 17.0, *)
2890 @available(tvOS, unavailable)
2891 public func extractKeypoints(targetFrameRate: Swift::Double = MLHandActionClassifier.__Defaults.targetFrameRate) throws -> TabularData::DataFrame
2892 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use extractKeypoints(targetFrameRate:)")
2893 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use extractKeypoints(targetFrameRate:)")
2894 @available(tvOS, unavailable)
2895 public func keypointsWithAnnotations(targetFrameRate: Swift::Double = MLHandActionClassifier.__Defaults.targetFrameRate) throws -> CreateML::MLDataTable
2896 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use DataFrame.stratifiedSplit(on:by:)")
2897 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use DataFrame.stratifiedSplit(on:by:)")
2898 @available(tvOS, unavailable)
2899 public func stratifiedSplit(proportions: [Swift::Double], seed: Swift::Int = timestampSeed(), labelColumn: Swift::String) throws -> CreateML::MLDataTable
2900 }
2901}
2902@available(*, unavailable)
2903extension CreateML::MLHandActionClassifier.CreateML::DataSource : Swift::Sendable {
2904}
2905@available(macOS 12.0, iOS 15.0, *)
2906@available(tvOS, unavailable)
2907extension CreateML::MLHandActionClassifier.CreateML::DataSource {
2908 public func labeledMedia() throws -> [Swift::String : [Foundation::URL]]
2909}
2910@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2911public enum MLPhase : Swift::String, Swift::Codable, Swift::Sendable {
2912 case initialized
2913 case extractingFeatures
2914 case training
2915 case evaluating
2916 case inferencing
2917 public init?(rawValue: Swift::String)
2918 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2919 public typealias RawValue = Swift::String
2920 public var rawValue: Swift::String {
2921 get
2922 }
2923}
2924extension CreateML::MLLinearRegressor.CreateML::ModelParameters {
2925 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2926 public enum ValidationData {
2927 case split(strategy: CreateML::MLSplitStrategy)
2928 @available(macOS, introduced: 11.0, deprecated: 14.0)
2929 @available(iOS, introduced: 15.0, deprecated: 17.0)
2930 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2931 case table(CreateML::MLDataTable)
2932 @available(macOS 13.0, iOS 16.0, tvOS 16.0, *)
2933 case dataFrame(TabularData::DataFrame)
2934 case none
2935 }
2936}
2937extension CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters {
2938 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
2939 public enum ValidationData {
2940 case split(strategy: CreateML::MLSplitStrategy)
2941 @available(macOS, introduced: 11.0, deprecated: 14.0)
2942 @available(iOS, introduced: 15.0, deprecated: 17.0)
2943 @available(tvOS, introduced: 16.0, deprecated: 17.0)
2944 case table(CreateML::MLDataTable)
2945 @available(macOS 13.0, iOS 16.0, tvOS 16.0, *)
2946 case dataFrame(TabularData::DataFrame)
2947 case none
2948 }
2949}
2950@available(*, unavailable)
2951extension CreateML::MLBoostedTreeRegressor.CreateML::ModelParameters.CreateML::ValidationData : Swift::Sendable {
2952}
2953@available(macOS 10.14, iOS 15.0, *)
2954@available(tvOS, unavailable)
2955extension CreateML::MLTextClassifier.CreateML::ModelParameters {
2956 @available(macOS 10.15, iOS 15.0, *)
2957 @available(tvOS, unavailable)
2958 public enum ValidationData {
2959 case split(strategy: CreateML::MLSplitStrategy)
2960 @available(macOS, introduced: 10.15, deprecated: 14.0)
2961 @available(iOS, introduced: 15.0, deprecated: 17.0)
2962 @available(tvOS, unavailable)
2963 case table(CreateML::MLDataTable, textColumn: Swift::String, labelColumn: Swift::String)
2964 @available(macOS 13.0, iOS 16.0, *)
2965 @available(tvOS, unavailable)
2966 case dataFrame(TabularData::DataFrame, textColumn: Swift::String, labelColumn: Swift::String)
2967 case dataSource(CreateML::MLTextClassifier.CreateML::DataSource)
2968 case dictionary([Swift::String : [Swift::String]])
2969 case none
2970 }
2971}
2972@available(*, unavailable)
2973extension CreateML::MLTextClassifier.CreateML::ModelParameters.CreateML::ValidationData : Swift::Sendable {
2974}
2975@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
2976public struct MLDataTable {
2977 public var error: (any Swift::Error)? {
2978 get
2979 }
2980 public var isValid: Swift::Bool {
2981 get
2982 }
2983 public var size: (rows: Swift::Int, columns: Swift::Int) {
2984 get
2985 }
2986 public var columnTypes: [Swift::String : CreateML::MLDataValue.CreateML::ValueType] {
2987 get
2988 }
2989 public init()
2990 public init(namedColumns: [Swift::String : CreateML::MLUntypedColumn]) throws
2991 public init(dictionary: [Swift::String : any CreateML::MLDataValueConvertible]) throws
2992 public subscript(columnName: Swift::String) -> CreateML::MLUntypedColumn {
2993 get
2994 set(newValue)
2995 }
2996 public subscript<Element>(columnName: Swift::String) -> CreateML::MLDataColumn<Element> where Element : CreateML::MLDataValueConvertible {
2997 get
2998 set(newValue)
2999 }
3000 public subscript<T>(columnName: Swift::String, columnType: T.Type) -> CreateML::MLDataColumn<T>? where T : CreateML::MLDataValueConvertible {
3001 get
3002 }
3003 public subscript<S>(columnNames: S) -> CreateML::MLDataTable where S : Swift::Sequence, S.Element == Swift::String {
3004 get
3005 }
3006 public subscript(slice: Swift::Range<Swift::Int>) -> CreateML::MLDataTable {
3007 get
3008 }
3009 public subscript<R>(slice: R) -> CreateML::MLDataTable where R : Swift::RangeExpression, R.Bound == Swift::Int {
3010 get
3011 }
3012 public mutating func addColumn(_ newColumn: CreateML::MLUntypedColumn, named: Swift::String)
3013 public mutating func addColumn<Element>(_ newColumn: CreateML::MLDataColumn<Element>, named: Swift::String) where Element : CreateML::MLDataValueConvertible
3014 public mutating func removeColumn(named: Swift::String)
3015 public mutating func renameColumn(named: Swift::String, to: Swift::String)
3016 public mutating func append(contentsOf newTable: CreateML::MLDataTable)
3017 public func randomSample(by proportion: Swift::Double, seed: Swift::Int = 42) -> CreateML::MLDataTable
3018 public func intersect<T>(_ values: T..., of columnNamed: Swift::String) -> CreateML::MLDataTable where T : CreateML::MLDataValueConvertible
3019 public func exclude<T>(_ values: T..., of columnNamed: Swift::String) -> CreateML::MLDataTable where T : CreateML::MLDataValueConvertible
3020 public func join(with: CreateML::MLDataTable, on columnsNamed: Swift::String..., type: CreateML::MLDataTable.CreateML::JoinType = .inner) -> CreateML::MLDataTable
3021 public enum JoinType : Swift::Sendable {
3022 case inner
3023 case outer
3024 case left
3025 case right
3026 public static func == (a: CreateML::MLDataTable.CreateML::JoinType, b: CreateML::MLDataTable.CreateML::JoinType) -> Swift::Bool
3027 public func hash(into hasher: inout Swift::Hasher)
3028 public var hashValue: Swift::Int {
3029 get
3030 }
3031 }
3032 public subscript(mask: CreateML::MLUntypedColumn) -> CreateML::MLDataTable {
3033 get
3034 }
3035 public subscript(mask: CreateML::MLDataColumn<Swift::Bool>) -> CreateML::MLDataTable {
3036 get
3037 }
3038 public func map<T>(_ lazyTransform: @escaping (CreateML::MLDataTable.CreateML::Row) -> T?) -> CreateML::MLDataColumn<T> where T : CreateML::MLDataValueConvertible
3039 public func map<T>(_ lazyTransform: @escaping (CreateML::MLDataTable.CreateML::Row) -> T) -> CreateML::MLDataColumn<T> where T : CreateML::MLDataValueConvertible
3040 public func dropMissing() -> CreateML::MLDataTable
3041 public func fillMissing(columnNamed: Swift::String, with value: CreateML::MLDataValue) -> CreateML::MLDataTable
3042 public func dropDuplicates() -> CreateML::MLDataTable
3043 public func prefix(_ maxLength: Swift::Int = 10) -> CreateML::MLDataTable
3044 public func suffix(_ maxLength: Swift::Int = 10) -> CreateML::MLDataTable
3045 public func sort(columnNamed: Swift::String, byIncreasingOrder: Swift::Bool = true) -> CreateML::MLDataTable
3046 public func expand(columnNamed: Swift::String, to: Swift::String) -> CreateML::MLDataTable
3047 public func condense(columnNamed: Swift::String, to: Swift::String) -> CreateML::MLDataTable
3048}
3049@available(*, unavailable)
3050extension CreateML::MLDataTable : Swift::Sendable {
3051}
3052@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3053extension CreateML::MLDataTable : Swift::CustomStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
3054 public var playgroundDescription: Any {
3055 get
3056 }
3057 public var description: Swift::String {
3058 get
3059 }
3060}
3061@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3062public protocol MLDataValueConvertible {
3063 static var dataValueType: CreateML::MLDataValue.CreateML::ValueType { get }
3064 init?(from dataValue: CreateML::MLDataValue)
3065 init()
3066 var dataValue: CreateML::MLDataValue { get }
3067}
3068@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3069extension Swift::Int : CreateML::MLDataValueConvertible {
3070 public static var dataValueType: CreateML::MLDataValue.CreateML::ValueType {
3071 get
3072 }
3073 public init?(from dataValue: CreateML::MLDataValue)
3074 public var dataValue: CreateML::MLDataValue {
3075 get
3076 }
3077}
3078@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3079extension Swift::Bool : CreateML::MLDataValueConvertible {
3080 public static var dataValueType: CreateML::MLDataValue.CreateML::ValueType {
3081 get
3082 }
3083 public init?(from dataValue: CreateML::MLDataValue)
3084 public var dataValue: CreateML::MLDataValue {
3085 get
3086 }
3087}
3088@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3089extension Swift::Int64 : CreateML::MLDataValueConvertible {
3090 public static var dataValueType: CreateML::MLDataValue.CreateML::ValueType {
3091 get
3092 }
3093 public init?(from dataValue: CreateML::MLDataValue)
3094 public var dataValue: CreateML::MLDataValue {
3095 get
3096 }
3097}
3098@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3099extension Swift::Double : CreateML::MLDataValueConvertible {
3100 public static var dataValueType: CreateML::MLDataValue.CreateML::ValueType {
3101 get
3102 }
3103 public init?(from dataValue: CreateML::MLDataValue)
3104 public var dataValue: CreateML::MLDataValue {
3105 get
3106 }
3107}
3108@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3109extension Swift::String : CreateML::MLDataValueConvertible {
3110 public static var dataValueType: CreateML::MLDataValue.CreateML::ValueType {
3111 get
3112 }
3113 public init?(from dataValue: CreateML::MLDataValue)
3114 public var dataValue: CreateML::MLDataValue {
3115 get
3116 }
3117}
3118extension CreateML::MLLogisticRegressionClassifier.CreateML::ModelParameters {
3119 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
3120 public enum ValidationData {
3121 case split(strategy: CreateML::MLSplitStrategy)
3122 @available(macOS, introduced: 10.15, deprecated: 14.0)
3123 @available(iOS, introduced: 15.0, deprecated: 17.0)
3124 @available(tvOS, introduced: 16.0, deprecated: 17.0)
3125 case table(CreateML::MLDataTable)
3126 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3127 case dataFrame(TabularData::DataFrame)
3128 case none
3129 }
3130}
3131@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3132public struct MLBoostedTreeClassifier : @unchecked Swift::Sendable {
3133 public var model: CoreML::MLModel {
3134 get
3135 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
3136 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
3137 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
3138 set
3139 }
3140 public var targetColumn: Swift::String
3141 public var featureColumns: [Swift::String]
3142 public let modelParameters: CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters
3143 public var trainingMetrics: CreateML::MLClassifierMetrics {
3144 get
3145 }
3146 public var validationMetrics: CreateML::MLClassifierMetrics {
3147 get
3148 }
3149 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3150 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
3151 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3152 public init(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
3153 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
3154 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
3155 @available(tvOS, unavailable)
3156 public init(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters = ModelParameters(validationData: nil)) throws
3157 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3158 public init(checkpoint: CreateML::MLCheckpoint) throws
3159 @available(macOS, introduced: 12.0, deprecated: 14.0)
3160 @available(iOS, introduced: 15.0, deprecated: 17.0)
3161 @available(tvOS, introduced: 16.0, deprecated: 17.0)
3162 public static func train(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLBoostedTreeClassifier>
3163 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3164 public static func train(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters = ModelParameters(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLBoostedTreeClassifier>
3165 @available(macOS, introduced: 12.0, deprecated: 14.0)
3166 @available(iOS, introduced: 15.0, deprecated: 17.0)
3167 @available(tvOS, introduced: 16.0, deprecated: 17.0)
3168 public static func makeTrainingSession(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLBoostedTreeClassifier>
3169 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3170 public static func makeTrainingSession(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLBoostedTreeClassifier.CreateML::ModelParameters = .init(), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLBoostedTreeClassifier>
3171 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3172 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLBoostedTreeClassifier>
3173 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3174 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLBoostedTreeClassifier>) throws -> CreateML::MLJob<CreateML::MLBoostedTreeClassifier>
3175 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3176 public func predictions(from data: TabularData::DataFrame) throws -> TabularData::AnyColumn
3177 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
3178 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
3179 @available(tvOS, unavailable)
3180 public func predictions(from data: CreateML::MLDataTable) throws -> CreateML::MLUntypedColumn
3181 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3182 public func evaluation(on labeledData: TabularData::DataFrame) -> CreateML::MLClassifierMetrics
3183 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
3184 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
3185 @available(tvOS, unavailable)
3186 public func evaluation(on labeledData: CreateML::MLDataTable) -> CreateML::MLClassifierMetrics
3187 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
3188 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
3189}
3190@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3191extension CreateML::MLBoostedTreeClassifier : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
3192 public var description: Swift::String {
3193 get
3194 }
3195 public var debugDescription: Swift::String {
3196 get
3197 }
3198 public var playgroundDescription: Any {
… 2 unchanged lines …
3201}
3202@available(macOS 10.14, iOS 15.0, *)
3203@available(tvOS, unavailable)
3204extension CreateML.MLImageClassifier {
3205 public enum DataSource : Swift.Sendable {
3206 case labeledDirectories(at: Foundation.URL)
3207 case labeledFiles(at: Foundation.URL)
3208 @available(macOS 11.0, iOS 15.0, *)
3209 @available(tvOS, unavailable)
3210 case filesByLabel([Swift.String : [Foundation.URL]])
3211 public func labeledImages() throws -> [Swift.String : [Foundation.URL]]
3212 public func stratifiedSplit(proportions: [Swift.Double], seed: Swift.Int = timestampSeed()) throws -> [[Swift.String : [Foundation.URL]]]
3213 public func stratifiedSplit<RNG>(proportions: [Swift.Double], generator: inout RNG) throws -> [[Swift.String : [Foundation.URL]]] where RNG : Swift.RandomNumberGenerator
3214 }
3215}
3216@available(macOS 12.0, iOS 15.0, *)
3217@available(tvOS, unavailable)
3218extension CreateML.MLHandPoseClassifier {
3219 public enum DataSource {
3220 case directoryWithImagesAndAnnotation(at: Foundation.URL, annotationFile: Foundation.URL, imageColumn: Swift.String, labelColumn: Swift.String)
3221 case labeledDirectories(at: Foundation.URL)
3222 case labeledFiles(at: Foundation.URL)
3223 @available(macOS, introduced: 12.0, deprecated: 14.0)
3224 @available(iOS, introduced: 15.0, deprecated: 17.0)
3225 @available(tvOS, unavailable)
3226 case labeledKeypointsData(table: CreateML.MLDataTable, sessionIdColumn: Swift.String = __Defaults.sessionIdColumnName, labelColumn: Swift.String = __Defaults.labelColumnName, featureColumn: Swift.String = __Defaults.featureColumnName)
3227 @available(macOS, introduced: 12.0, deprecated: 14.0)
3228 @available(iOS, introduced: 15.0, deprecated: 17.0)
3229 @available(tvOS, unavailable)
3230 case labeledImageData(table: CreateML.MLDataTable, imageColumn: Swift.String = __Defaults.imageColumnName, labelColumn: Swift.String = __Defaults.labelColumnName)
3231 case labeledKeypointsDataFrame(TabularData.DataFrame, sessionIdColumn: Swift.String = __Defaults.sessionIdColumnName, labelColumn: Swift.String = __Defaults.labelColumnName, featureColumn: Swift.String = __Defaults.featureColumnName)
3232 case labeledImageDataFrame(TabularData.DataFrame, imageColumn: Swift.String = __Defaults.imageColumnName, labelColumn: Swift.String = __Defaults.labelColumnName)
3233 @available(macOS 14.0, iOS 17.0, *)
3234 @available(tvOS, unavailable)
3235 public func gatherAnnotatedFileNames() throws -> TabularData.DataFrame?
3236 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use gatherAnnotatedFileNames()")
3237 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use gatherAnnotatedFileNames()")
3238 @available(tvOS, unavailable)
3239 public func imagesWithAnnotations() throws -> CreateML.MLDataTable
3240 @available(macOS 14.0, iOS 17.0, *)
3241 @available(tvOS, unavailable)
3242 public func extractKeypoints() throws -> TabularData.DataFrame
3243 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use extractKeypoints()")
3244 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use extractKeypoints()")
3245 @available(tvOS, unavailable)
3246 public func keypointsWithAnnotations() throws -> CreateML.MLDataTable
3247 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use DataFrame.stratifiedSplit(on:by:)")
3248 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use DataFrame.stratifiedSplit(on:by:)")
3249 @available(tvOS, unavailable)
3250 public func stratifiedSplit(proportions: [Swift.Double], seed: Swift.Int = timestampSeed(), labelColumn: Swift.String) throws -> CreateML.MLDataTable
3251 }
3252}
3253@available(*, unavailable)
3254extension CreateML.MLHandPoseClassifier.DataSource : Swift.Sendable {
3255}
3256@available(macOS 12.0, iOS 15.0, *)
3257@available(tvOS, unavailable)
3258extension CreateML.MLHandPoseClassifier.DataSource {
3259 public func labeledMedia() throws -> [Swift.String : [Foundation.URL]]
3260}
3261@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3262public struct MLLinearRegressor : @unchecked Swift.Sendable {
3263 public var model: CoreML.MLModel {
3264 get
3265 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
3266 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
3267 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
3268 set
3269 }
3270 public var targetColumn: Swift.String
3271 public var featureColumns: [Swift.String]
3272 public let modelParameters: CreateML.MLLinearRegressor.ModelParameters
3273 public var trainingMetrics: CreateML.MLRegressorMetrics {
3274 get
3275 }
3276 public var validationMetrics: CreateML.MLRegressorMetrics {
3277 get
3278 }
3279 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3280 public static let _defaultSessionParameters: CreateML.MLTrainingSessionParameters
3281 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3282 public init(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLinearRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
3283 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
3284 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
3285 @available(tvOS, unavailable)
3286 public init(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLinearRegressor.ModelParameters = ModelParameters(validationData: nil)) throws
3287 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3288 public init(checkpoint: CreateML.MLCheckpoint) throws
3289 @available(macOS, introduced: 12.0, deprecated: 14.0)
3290 @available(iOS, introduced: 15.0, deprecated: 17.0)
3291 @available(tvOS, introduced: 16.0, deprecated: 17.0)
3292 public static func train(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLinearRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLLinearRegressor>
3293 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3294 public static func train(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLinearRegressor.ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLLinearRegressor>
3295 @available(macOS, introduced: 12.0, deprecated: 14.0)
3296 @available(iOS, introduced: 15.0, deprecated: 17.0)
3297 @available(tvOS, introduced: 16.0, deprecated: 17.0)
3298 public static func makeTrainingSession(trainingData: CreateML.MLDataTable, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLinearRegressor.ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLLinearRegressor>
3299 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3300 public static func makeTrainingSession(trainingData: TabularData.DataFrame, targetColumn: Swift.String, featureColumns: [Swift.String]? = nil, parameters: CreateML.MLLinearRegressor.ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLLinearRegressor>
3301 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3302 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLLinearRegressor>
3303 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3304 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLLinearRegressor>) throws -> CreateML.MLJob<CreateML.MLLinearRegressor>
3305 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3306 public func predictions(from data: TabularData.DataFrame) throws -> TabularData.AnyColumn
3307 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
3308 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
3309 @available(tvOS, unavailable)
3310 public func predictions(from data: CreateML.MLDataTable) throws -> CreateML.MLUntypedColumn
3311 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3312 public func evaluation(on labeledData: TabularData.DataFrame) -> CreateML.MLRegressorMetrics
3313 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
3314 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
3315 @available(tvOS, unavailable)
3316 public func evaluation(on labeledData: CreateML.MLDataTable) -> CreateML.MLRegressorMetrics
3317 public func write(to fileURL: Foundation.URL, metadata: CreateML.MLModelMetadata? = nil) throws
3318 public func write(toFile path: Swift.String, metadata: CreateML.MLModelMetadata? = nil) throws
3319}
3320@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3321extension CreateML.MLLinearRegressor : Swift.CustomStringConvertible {
3322 public var description: Swift.String {
3323 get
3324 }
3325}
3326@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3327extension CreateML.MLLinearRegressor : Swift.CustomDebugStringConvertible {
3328 public var debugDescription: Swift.String {
3329 get
3330 }
3331}
3332@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3333extension CreateML.MLLinearRegressor : Swift.CustomPlaygroundDisplayConvertible {
3334 public var playgroundDescription: Any {
3335 get
3336 }
3337}
3338extension CreateML.MLDecisionTreeClassifier {
3339 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3340 public struct ModelParameters {
3341 public var maxDepth: Swift.Int
3342 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3343 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3344 @available(tvOS, unavailable)
3345 public var validationData: CreateML.MLDataTable? {
3346 get
3347 set
3348 }
3349 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
3350 public var validation: CreateML.MLDecisionTreeClassifier.ModelParameters.ValidationData {
3351 get
3352 set
3353 }
3354 public var minLossReduction: Swift.Double
3355 public var minChildWeight: Swift.Double
3356 public var randomSeed: Swift.Int
3357 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
3358 public init(validation: CreateML.MLDecisionTreeClassifier.ModelParameters.ValidationData = .split(strategy: .automatic), maxDepth: Swift.Int = 6, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42)
3359 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3360 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3361 @available(tvOS, unavailable)
3362 public init(validationData: CreateML.MLDataTable?, maxDepth: Swift.Int = 6, minLossReduction: Swift.Double = 0, minChildWeight: Swift.Double = 0.1, randomSeed: Swift.Int = 42)
3363 }
3364}
3365@available(*, unavailable)
3366extension CreateML.MLDecisionTreeClassifier.ModelParameters : Swift.Sendable {
3367}
3368@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3369extension CreateML.MLDecisionTreeClassifier.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
3370 public var description: Swift.String {
3371 get
3372 }
3373 public var debugDescription: Swift.String {
3374 get
3375 }
3376 public var playgroundDescription: Any {
3201}
3202@available(macOS 10.14, iOS 15.0, *)
3203@available(tvOS, unavailable)
3204extension CreateML::MLImageClassifier {
3205 public enum DataSource : Swift::Sendable {
3206 case labeledDirectories(at: Foundation::URL)
3207 case labeledFiles(at: Foundation::URL)
3208 @available(macOS 11.0, iOS 15.0, *)
3209 @available(tvOS, unavailable)
3210 case filesByLabel([Swift::String : [Foundation::URL]])
3211 public func labeledImages() throws -> [Swift::String : [Foundation::URL]]
3212 public func stratifiedSplit(proportions: [Swift::Double], seed: Swift::Int = timestampSeed()) throws -> [[Swift::String : [Foundation::URL]]]
3213 public func stratifiedSplit<RNG>(proportions: [Swift::Double], generator: inout RNG) throws -> [[Swift::String : [Foundation::URL]]] where RNG : Swift::RandomNumberGenerator
3214 }
3215}
3216@available(macOS 12.0, iOS 15.0, *)
3217@available(tvOS, unavailable)
3218extension CreateML::MLHandPoseClassifier {
3219 public enum DataSource {
3220 case directoryWithImagesAndAnnotation(at: Foundation::URL, annotationFile: Foundation::URL, imageColumn: Swift::String, labelColumn: Swift::String)
3221 case labeledDirectories(at: Foundation::URL)
3222 case labeledFiles(at: Foundation::URL)
3223 @available(macOS, introduced: 12.0, deprecated: 14.0)
3224 @available(iOS, introduced: 15.0, deprecated: 17.0)
3225 @available(tvOS, unavailable)
3226 case labeledKeypointsData(table: CreateML::MLDataTable, sessionIdColumn: Swift::String = __Defaults.sessionIdColumnName, labelColumn: Swift::String = __Defaults.labelColumnName, featureColumn: Swift::String = __Defaults.featureColumnName)
3227 @available(macOS, introduced: 12.0, deprecated: 14.0)
3228 @available(iOS, introduced: 15.0, deprecated: 17.0)
3229 @available(tvOS, unavailable)
3230 case labeledImageData(table: CreateML::MLDataTable, imageColumn: Swift::String = __Defaults.imageColumnName, labelColumn: Swift::String = __Defaults.labelColumnName)
3231 case labeledKeypointsDataFrame(TabularData::DataFrame, sessionIdColumn: Swift::String = __Defaults.sessionIdColumnName, labelColumn: Swift::String = __Defaults.labelColumnName, featureColumn: Swift::String = __Defaults.featureColumnName)
3232 case labeledImageDataFrame(TabularData::DataFrame, imageColumn: Swift::String = __Defaults.imageColumnName, labelColumn: Swift::String = __Defaults.labelColumnName)
3233 @available(macOS 14.0, iOS 17.0, *)
3234 @available(tvOS, unavailable)
3235 public func gatherAnnotatedFileNames() throws -> TabularData::DataFrame?
3236 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use gatherAnnotatedFileNames()")
3237 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use gatherAnnotatedFileNames()")
3238 @available(tvOS, unavailable)
3239 public func imagesWithAnnotations() throws -> CreateML::MLDataTable
3240 @available(macOS 14.0, iOS 17.0, *)
3241 @available(tvOS, unavailable)
3242 public func extractKeypoints() throws -> TabularData::DataFrame
3243 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use extractKeypoints()")
3244 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use extractKeypoints()")
3245 @available(tvOS, unavailable)
3246 public func keypointsWithAnnotations() throws -> CreateML::MLDataTable
3247 @available(macOS, introduced: 12.0, deprecated: 14.0, message: "Use DataFrame.stratifiedSplit(on:by:)")
3248 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Use DataFrame.stratifiedSplit(on:by:)")
3249 @available(tvOS, unavailable)
3250 public func stratifiedSplit(proportions: [Swift::Double], seed: Swift::Int = timestampSeed(), labelColumn: Swift::String) throws -> CreateML::MLDataTable
3251 }
3252}
3253@available(*, unavailable)
3254extension CreateML::MLHandPoseClassifier.CreateML::DataSource : Swift::Sendable {
3255}
3256@available(macOS 12.0, iOS 15.0, *)
3257@available(tvOS, unavailable)
3258extension CreateML::MLHandPoseClassifier.CreateML::DataSource {
3259 public func labeledMedia() throws -> [Swift::String : [Foundation::URL]]
3260}
3261@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3262public struct MLLinearRegressor : @unchecked Swift::Sendable {
3263 public var model: CoreML::MLModel {
3264 get
3265 @available(macOS, introduced: 10.14, deprecated: 14.0, message: "Setting the model is not supported.")
3266 @available(iOS, introduced: 15.0, deprecated: 17.0, message: "Setting the model is not supported.")
3267 @available(tvOS, introduced: 16.0, deprecated: 17.0, message: "Setting the model is not supported.")
3268 set
3269 }
3270 public var targetColumn: Swift::String
3271 public var featureColumns: [Swift::String]
3272 public let modelParameters: CreateML::MLLinearRegressor.CreateML::ModelParameters
3273 public var trainingMetrics: CreateML::MLRegressorMetrics {
3274 get
3275 }
3276 public var validationMetrics: CreateML::MLRegressorMetrics {
3277 get
3278 }
3279 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3280 public static let _defaultSessionParameters: CreateML::MLTrainingSessionParameters
3281 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3282 public init(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLinearRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic))) throws
3283 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable when initializing.")
3284 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable when initializing.")
3285 @available(tvOS, unavailable)
3286 public init(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLinearRegressor.CreateML::ModelParameters = ModelParameters(validationData: nil)) throws
3287 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3288 public init(checkpoint: CreateML::MLCheckpoint) throws
3289 @available(macOS, introduced: 12.0, deprecated: 14.0)
3290 @available(iOS, introduced: 15.0, deprecated: 17.0)
3291 @available(tvOS, introduced: 16.0, deprecated: 17.0)
3292 public static func train(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLinearRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLLinearRegressor>
3293 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3294 public static func train(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLinearRegressor.CreateML::ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLLinearRegressor>
3295 @available(macOS, introduced: 12.0, deprecated: 14.0)
3296 @available(iOS, introduced: 15.0, deprecated: 17.0)
3297 @available(tvOS, introduced: 16.0, deprecated: 17.0)
3298 public static func makeTrainingSession(trainingData: CreateML::MLDataTable, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLinearRegressor.CreateML::ModelParameters = ModelParameters(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLLinearRegressor>
3299 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3300 public static func makeTrainingSession(trainingData: TabularData::DataFrame, targetColumn: Swift::String, featureColumns: [Swift::String]? = nil, parameters: CreateML::MLLinearRegressor.CreateML::ModelParameters = .init(validation: .split(strategy: .automatic)), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLLinearRegressor>
3301 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3302 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLLinearRegressor>
3303 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3304 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLLinearRegressor>) throws -> CreateML::MLJob<CreateML::MLLinearRegressor>
3305 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3306 public func predictions(from data: TabularData::DataFrame) throws -> TabularData::AnyColumn
3307 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
3308 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
3309 @available(tvOS, unavailable)
3310 public func predictions(from data: CreateML::MLDataTable) throws -> CreateML::MLUntypedColumn
3311 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3312 public func evaluation(on labeledData: TabularData::DataFrame) -> CreateML::MLRegressorMetrics
3313 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
3314 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
3315 @available(tvOS, unavailable)
3316 public func evaluation(on labeledData: CreateML::MLDataTable) -> CreateML::MLRegressorMetrics
3317 public func write(to fileURL: Foundation::URL, metadata: CreateML::MLModelMetadata? = nil) throws
3318 public func write(toFile path: Swift::String, metadata: CreateML::MLModelMetadata? = nil) throws
3319}
3320@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3321extension CreateML::MLLinearRegressor : Swift::CustomStringConvertible {
3322 public var description: Swift::String {
3323 get
3324 }
3325}
3326@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3327extension CreateML::MLLinearRegressor : Swift::CustomDebugStringConvertible {
3328 public var debugDescription: Swift::String {
3329 get
3330 }
3331}
3332@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3333extension CreateML::MLLinearRegressor : Swift::CustomPlaygroundDisplayConvertible {
3334 public var playgroundDescription: Any {
3335 get
3336 }
3337}
3338extension CreateML::MLDecisionTreeClassifier {
3339 @available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3340 public struct ModelParameters {
3341 public var maxDepth: Swift::Int
3342 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3343 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3344 @available(tvOS, unavailable)
3345 public var validationData: CreateML::MLDataTable? {
3346 get
3347 set
3348 }
3349 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
3350 public var validation: CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters.CreateML::ValidationData {
3351 get
3352 set
3353 }
3354 public var minLossReduction: Swift::Double
3355 public var minChildWeight: Swift::Double
3356 public var randomSeed: Swift::Int
3357 @available(macOS 10.15, iOS 15.0, tvOS 16.0, *)
3358 public init(validation: CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters.CreateML::ValidationData = .split(strategy: .automatic), maxDepth: Swift::Int = 6, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42)
3359 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3360 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3361 @available(tvOS, unavailable)
3362 public init(validationData: CreateML::MLDataTable?, maxDepth: Swift::Int = 6, minLossReduction: Swift::Double = 0, minChildWeight: Swift::Double = 0.1, randomSeed: Swift::Int = 42)
3363 }
3364}
3365@available(*, unavailable)
3366extension CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters : Swift::Sendable {
3367}
3368@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3369extension CreateML::MLDecisionTreeClassifier.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
3370 public var description: Swift::String {
3371 get
3372 }
3373 public var debugDescription: Swift::String {
3374 get
3375 }
3376 public var playgroundDescription: Any {
… 2 unchanged lines …
3379}
3380@available(macOS 10.14, iOS 15.0, *)
3381@available(tvOS, unavailable)
3382extension CreateML.MLTextClassifier {
3383 public func evaluation(on labeledTexts: CreateML.MLTextClassifier.DataSource) -> CreateML.MLClassifierMetrics
3384 public func evaluation(on labeledTexts: [Swift.String : [Swift.String]]) -> CreateML.MLClassifierMetrics
3385 @available(macOS 13.0, iOS 16.0, *)
3386 @available(tvOS, unavailable)
3387 public func evaluation(on dataFrame: TabularData.DataFrame, textColumn: Swift.String, labelColumn: Swift.String) -> CreateML.MLClassifierMetrics
3388}
3389@available(macOS 10.14, iOS 15.0, *)
3390@available(tvOS, unavailable)
3391extension CreateML.MLTextClassifier {
3392 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
3393 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
3394 @available(tvOS, unavailable)
3395 public func evaluation(on labeledTexts: CreateML.MLDataTable, textColumn: Swift.String, labelColumn: Swift.String) -> CreateML.MLClassifierMetrics
3396}
3397@available(macOS 10.14, iOS 15.0, *)
3398@available(tvOS, unavailable)
3399extension CreateML.MLTextClassifier {
3400 public struct ModelParameters {
3401 public var algorithm: CreateML.MLTextClassifier.ModelAlgorithmType
3402 public var language: NaturalLanguage.NLLanguage?
3403 @available(macOS 10.15, iOS 15.0, *)
3404 @available(tvOS, unavailable)
3405 public var validation: CreateML.MLTextClassifier.ModelParameters.ValidationData {
3406 get
3407 set
3408 }
3409 @available(macOS 11.0, iOS 15.0, *)
3410 @available(tvOS, unavailable)
3411 public var maxIterations: Swift.Int? {
3412 get
3413 set
3414 }
3415 @available(macOS 10.15, iOS 15.0, *)
3416 @available(tvOS, unavailable)
3417 public init(validation: CreateML.MLTextClassifier.ModelParameters.ValidationData = .split(strategy: .automatic), algorithm: CreateML.MLTextClassifier.ModelAlgorithmType = .maxEnt(revision: 1), language: NaturalLanguage.NLLanguage? = nil)
3418 }
3419}
3420@available(*, unavailable)
3421extension CreateML.MLTextClassifier.ModelParameters : Swift.Sendable {
3422}
3423@available(macOS 10.14, iOS 15.0, *)
3424@available(tvOS, unavailable)
3425extension CreateML.MLTextClassifier.ModelParameters : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
3426 public var description: Swift.String {
3427 get
3428 }
3429 public var debugDescription: Swift.String {
3430 get
3431 }
3432 public var playgroundDescription: Any {
3379}
3380@available(macOS 10.14, iOS 15.0, *)
3381@available(tvOS, unavailable)
3382extension CreateML::MLTextClassifier {
3383 public func evaluation(on labeledTexts: CreateML::MLTextClassifier.CreateML::DataSource) -> CreateML::MLClassifierMetrics
3384 public func evaluation(on labeledTexts: [Swift::String : [Swift::String]]) -> CreateML::MLClassifierMetrics
3385 @available(macOS 13.0, iOS 16.0, *)
3386 @available(tvOS, unavailable)
3387 public func evaluation(on dataFrame: TabularData::DataFrame, textColumn: Swift::String, labelColumn: Swift::String) -> CreateML::MLClassifierMetrics
3388}
3389@available(macOS 10.14, iOS 15.0, *)
3390@available(tvOS, unavailable)
3391extension CreateML::MLTextClassifier {
3392 @available(macOS, introduced: 10.14, deprecated: 13.0, message: "Use DataFrame instead of MLDataTable.")
3393 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use DataFrame instead of MLDataTable.")
3394 @available(tvOS, unavailable)
3395 public func evaluation(on labeledTexts: CreateML::MLDataTable, textColumn: Swift::String, labelColumn: Swift::String) -> CreateML::MLClassifierMetrics
3396}
3397@available(macOS 10.14, iOS 15.0, *)
3398@available(tvOS, unavailable)
3399extension CreateML::MLTextClassifier {
3400 public struct ModelParameters {
3401 public var algorithm: CreateML::MLTextClassifier.CreateML::ModelAlgorithmType
3402 public var language: NaturalLanguage::NLLanguage?
3403 @available(macOS 10.15, iOS 15.0, *)
3404 @available(tvOS, unavailable)
3405 public var validation: CreateML::MLTextClassifier.CreateML::ModelParameters.CreateML::ValidationData {
3406 get
3407 set
3408 }
3409 @available(macOS 11.0, iOS 15.0, *)
3410 @available(tvOS, unavailable)
3411 public var maxIterations: Swift::Int? {
3412 get
3413 set
3414 }
3415 @available(macOS 10.15, iOS 15.0, *)
3416 @available(tvOS, unavailable)
3417 public init(validation: CreateML::MLTextClassifier.CreateML::ModelParameters.CreateML::ValidationData = .split(strategy: .automatic), algorithm: CreateML::MLTextClassifier.CreateML::ModelAlgorithmType = .maxEnt(revision: 1), language: NaturalLanguage::NLLanguage? = nil)
3418 }
3419}
3420@available(*, unavailable)
3421extension CreateML::MLTextClassifier.CreateML::ModelParameters : Swift::Sendable {
3422}
3423@available(macOS 10.14, iOS 15.0, *)
3424@available(tvOS, unavailable)
3425extension CreateML::MLTextClassifier.CreateML::ModelParameters : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
3426 public var description: Swift::String {
3427 get
3428 }
3429 public var debugDescription: Swift::String {
3430 get
3431 }
3432 public var playgroundDescription: Any {
… 2 unchanged lines …
3435}
3436@available(macOS 10.14, iOS 15.0, *)
3437@available(tvOS, unavailable)
3438extension CreateML.MLTextClassifier.ModelParameters {
3439 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3440 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3441 @available(tvOS, unavailable)
3442 public var validationData: CreateML.MLDataTable? {
3443 get
3444 set
3445 }
3446 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3447 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3448 @available(tvOS, unavailable)
3449 public var textColumnValidationData: Swift.String? {
3450 get
3451 set
3452 }
3453 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3454 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3455 @available(tvOS, unavailable)
3456 public init(validationData: CreateML.MLTextClassifier.DataSource, algorithm: CreateML.MLTextClassifier.ModelAlgorithmType = .maxEnt(revision: 1), language: NaturalLanguage.NLLanguage? = nil)
3457 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3458 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3459 @available(tvOS, unavailable)
3460 public init(validationData: [Swift.String : [Swift.String]], algorithm: CreateML.MLTextClassifier.ModelAlgorithmType = .maxEnt(revision: 1), language: NaturalLanguage.NLLanguage? = nil)
3461 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3462 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3463 @available(tvOS, unavailable)
3464 public init(validationData: CreateML.MLDataTable? = nil, algorithm: CreateML.MLTextClassifier.ModelAlgorithmType = .maxEnt(revision: 1), language: NaturalLanguage.NLLanguage? = nil, textColumnValidationData: Swift.String? = nil, labelColumnValidationData: Swift.String? = nil)
3465 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3466 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3467 @available(tvOS, unavailable)
3468 public var labelColumnValidationData: Swift.String? {
3469 get
3470 set
3471 }
3472}
3473extension CreateML.MLImageClassifier {
3474 @available(macOS 11.0, iOS 15.0, *)
3475 @available(tvOS, unavailable)
3476 public init(checkpoint: CreateML.MLCheckpoint) throws
3477 @available(macOS 11.0, iOS 15.0, *)
3478 @available(tvOS, unavailable)
3479 public static func train(trainingData: CreateML.MLImageClassifier.DataSource, parameters: CreateML.MLImageClassifier.ModelParameters = ModelParameters(
3480 validation: .split(strategy: .automatic),
3481 augmentation: [],
3482 algorithm: .transferLearning(
3483 featureExtractor: .scenePrint(revision: 1),
3484 classifier: .logisticRegressor
3485 )
3486 ), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLJob<CreateML.MLImageClassifier>
3487 @available(macOS 11.0, iOS 15.0, *)
3488 @available(tvOS, unavailable)
3489 public static func makeTrainingSession(trainingData: CreateML.MLImageClassifier.DataSource, parameters: CreateML.MLImageClassifier.ModelParameters = ModelParameters(
3490 validation: .split(strategy: .automatic),
3491 augmentation: [],
3492 algorithm: .transferLearning(
3493 featureExtractor: .scenePrint(revision: 1),
3494 classifier: .logisticRegressor
3495 )
3496 ), sessionParameters: CreateML.MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLImageClassifier>
3497 @available(macOS 11.0, iOS 15.0, *)
3498 @available(tvOS, unavailable)
3499 public static func restoreTrainingSession(sessionParameters: CreateML.MLTrainingSessionParameters) throws -> CreateML.MLTrainingSession<CreateML.MLImageClassifier>
3500 @available(macOS 11.0, iOS 15.0, *)
3501 @available(tvOS, unavailable)
3502 public static func resume(_ session: CreateML.MLTrainingSession<CreateML.MLImageClassifier>) throws -> CreateML.MLJob<CreateML.MLImageClassifier>
3503}
3504@available(macOS 12.0, iOS 15.0, *)
3505@available(tvOS, unavailable)
3506extension CreateML.MLHandPoseClassifier {
3507 public struct ImageAugmentationOptions : Swift.OptionSet, Swift.Codable, Swift.Sendable {
3508 public let rawValue: Swift.Int
3509 public static let horizontallyFlip: CreateML.MLHandPoseClassifier.ImageAugmentationOptions
3510 public static let rotate: CreateML.MLHandPoseClassifier.ImageAugmentationOptions
3511 public static let translate: CreateML.MLHandPoseClassifier.ImageAugmentationOptions
3512 public static let scale: CreateML.MLHandPoseClassifier.ImageAugmentationOptions
3513 public init(rawValue: Swift.Int)
3514 @available(iOS 15.0, macOS 12.0, *)
3515 @available(tvOS, unavailable)
3516 public typealias ArrayLiteralElement = CreateML.MLHandPoseClassifier.ImageAugmentationOptions
3517 @available(iOS 15.0, macOS 12.0, *)
3518 @available(tvOS, unavailable)
3519 public typealias Element = CreateML.MLHandPoseClassifier.ImageAugmentationOptions
3520 @available(iOS 15.0, macOS 12.0, *)
3521 @available(tvOS, unavailable)
3522 public typealias RawValue = Swift.Int
3523 }
3524}
3525@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3526public struct MLUntypedColumn {
3527 public var count: Swift.Int {
3528 get
3529 }
3530 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3531 public var isEmpty: Swift.Bool {
3532 get
3533 }
3534 public var type: CreateML.MLDataValue.ValueType {
3535 get
3536 }
3537 public var error: (any Swift.Error)? {
3538 get
3539 }
3540 public var isValid: Swift.Bool {
3541 get
3542 }
3543 public func column<T>(type: T.Type) -> CreateML.MLDataColumn<T>? where T : CreateML.MLDataValueConvertible
3544 public var ints: CreateML.MLDataColumn<Swift.Int>? {
3545 get
3546 }
3547 public var doubles: CreateML.MLDataColumn<Swift.Double>? {
3548 get
3549 }
3550 public var strings: CreateML.MLDataColumn<Swift.String>? {
3551 get
3552 }
3553 public var sequences: CreateML.MLDataColumn<CreateML.MLDataValue.SequenceType>? {
3554 get
3555 }
3556 public var dictionaries: CreateML.MLDataColumn<CreateML.MLDataValue.DictionaryType>? {
3557 get
3558 }
3559 public var multiArrays: CreateML.MLDataColumn<CreateML.MLDataValue.MultiArrayType>? {
3560 get
3561 }
3562 public init<S>(_ source: S) where S : Swift.Sequence, S.Element == CreateML.MLDataValue
3563 public init<S>(_ source: S) where S : Swift.Sequence, S.Element : CreateML.MLDataValueConvertible
3564 public init(repeating repeatedValue: CreateML.MLDataValue, count: Swift.Int)
3565 public init<T>(repeating repeatedValue: T, count: Swift.Int) where T : CreateML.MLDataValueConvertible
3566 public init(_ range: Swift.Range<Swift.Int>)
3567 public init(_ range: Swift.ClosedRange<Swift.Int>)
3568 public init()
3569 public mutating func append(contentsOf newColumn: CreateML.MLUntypedColumn)
3570}
3571@available(*, unavailable)
3572extension CreateML.MLUntypedColumn : Swift.Sendable {
3573}
3574@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3575extension CreateML.MLUntypedColumn {
3576 public static func == (a: CreateML.MLUntypedColumn, b: any CreateML.MLDataValueConvertible) -> CreateML.MLUntypedColumn
3577 public static func != (a: CreateML.MLUntypedColumn, b: any CreateML.MLDataValueConvertible) -> CreateML.MLUntypedColumn
3578 public static func > (a: CreateML.MLUntypedColumn, b: any CreateML.MLDataValueConvertible) -> CreateML.MLUntypedColumn
3579 public static func < (a: CreateML.MLUntypedColumn, b: any CreateML.MLDataValueConvertible) -> CreateML.MLUntypedColumn
3580 public static func >= (a: CreateML.MLUntypedColumn, b: any CreateML.MLDataValueConvertible) -> CreateML.MLUntypedColumn
3581 public static func <= (a: CreateML.MLUntypedColumn, b: any CreateML.MLDataValueConvertible) -> CreateML.MLUntypedColumn
3582 public static func + (a: CreateML.MLUntypedColumn, b: any CreateML.MLDataValueConvertible) -> CreateML.MLUntypedColumn
3583 public static func - (a: CreateML.MLUntypedColumn, b: any CreateML.MLDataValueConvertible) -> CreateML.MLUntypedColumn
3584 public static func * (a: CreateML.MLUntypedColumn, b: any CreateML.MLDataValueConvertible) -> CreateML.MLUntypedColumn
3585 public static func / (a: CreateML.MLUntypedColumn, b: any CreateML.MLDataValueConvertible) -> CreateML.MLUntypedColumn
3586 public static func == (a: any CreateML.MLDataValueConvertible, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3587 public static func != (a: any CreateML.MLDataValueConvertible, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3588 public static func > (a: any CreateML.MLDataValueConvertible, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3589 public static func < (a: any CreateML.MLDataValueConvertible, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3590 public static func >= (a: any CreateML.MLDataValueConvertible, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3591 public static func <= (a: any CreateML.MLDataValueConvertible, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3592 public static func + (a: any CreateML.MLDataValueConvertible, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3593 public static func - (a: any CreateML.MLDataValueConvertible, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3594 public static func * (a: any CreateML.MLDataValueConvertible, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3595 public static func / (a: any CreateML.MLDataValueConvertible, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3596 public static func == (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3597 public static func != (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3598 public static func > (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3599 public static func < (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3600 public static func >= (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3601 public static func <= (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3602 public static func && (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3603 public static func || (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3604 public static func + (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3605 public static func - (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3606 public static func * (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3607 public static func / (a: CreateML.MLUntypedColumn, b: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn
3608}
3609@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3610extension CreateML.MLUntypedColumn {
3611 public subscript(mask: CreateML.MLUntypedColumn) -> CreateML.MLUntypedColumn {
3612 get
3613 }
3614 public subscript(mask: CreateML.MLDataColumn<Swift.Bool>) -> CreateML.MLUntypedColumn {
3615 get
3616 }
3617 public func map<T>(_ lazyTransform: @escaping (CreateML.MLDataValue) -> T?) -> CreateML.MLDataColumn<T> where T : CreateML.MLDataValueConvertible
3618 public func map<T>(_ lazyTransform: @escaping (CreateML.MLDataValue) -> T) -> CreateML.MLDataColumn<T> where T : CreateML.MLDataValueConvertible
3619 public func mapMissing<T>(_ lazyTransform: @escaping (CreateML.MLDataValue) -> T?) -> CreateML.MLDataColumn<T> where T : CreateML.MLDataValueConvertible
3620 public func map<T>(to type: T.Type) -> CreateML.MLDataColumn<T> where T : CreateML.MLDataValueConvertible
3621 public func dropMissing() -> CreateML.MLUntypedColumn
3622 public func fillMissing(with value: CreateML.MLDataValue) -> CreateML.MLUntypedColumn
3623 public func dropDuplicates() -> CreateML.MLUntypedColumn
3624 public func prefix(_ maxLength: Swift.Int = 10) -> CreateML.MLUntypedColumn
3625 public func suffix(_ maxLength: Swift.Int = 10) -> CreateML.MLUntypedColumn
3626 public func sort(byIncreasingOrder: Swift.Bool = true) -> CreateML.MLUntypedColumn
3627 public func copy() -> CreateML.MLUntypedColumn
3628 public func materialize() throws -> CreateML.MLUntypedColumn
3629}
3630@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3631extension CreateML.MLUntypedColumn {
3632 public init(ints: CreateML.MLUntypedColumn)
3633 public init(doubles: CreateML.MLUntypedColumn)
3634 public init(strings: CreateML.MLUntypedColumn)
3635 public init(sequences: CreateML.MLUntypedColumn)
3636 public init(dictionaries: CreateML.MLUntypedColumn)
3637 public init(multiArrays: CreateML.MLUntypedColumn)
3638}
3639@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3640extension CreateML.MLUntypedColumn {
3641 public subscript(index: Swift.Int) -> CreateML.MLDataValue {
3642 get
3643 }
3644}
3645@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3646extension CreateML.MLUntypedColumn {
3647 public subscript(slice: Swift.Range<Swift.Int>) -> CreateML.MLUntypedColumn {
3648 get
3649 }
3650 public subscript<R>(slice: R) -> CreateML.MLUntypedColumn where R : Swift.RangeExpression, R.Bound == Swift.Int {
3651 get
3652 }
3653}
3654@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3655extension Swift.Array where Element == CreateML.MLDataValue {
3656 public init(_ untypedColumn: CreateML.MLUntypedColumn)
3657}
3658@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3659extension CreateML.MLUntypedColumn : Swift.CustomReflectable {
3660 public var customMirror: Swift.Mirror {
3661 get
3662 }
3663}
3664@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3665extension CreateML.MLUntypedColumn : Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible, Swift.CustomPlaygroundDisplayConvertible {
3666 public var description: Swift.String {
3667 get
3668 }
3669 public var debugDescription: Swift.String {
3670 get
3671 }
3672 public var playgroundDescription: Any {
3673 get
3674 }
3675}
3676@_hasMissingDesignatedInitializers @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3677final public class MLJob<Result> : Combine.Cancellable {
3678 final public let startDate: Foundation.Date
3679 final public let progress: Foundation.Progress
3680 final public var isCanceled: Swift.Bool {
3681 get
3682 }
3683 final public var checkpoints: Combine.AnyPublisher<CreateML.MLCheckpoint, Swift.Never> {
3684 get
3685 }
3686 final public var result: Combine.AnyPublisher<Result, any Swift.Error> {
3687 get
3688 }
3689 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3690 final public var phase: Combine.AnyPublisher<CreateML.MLPhase, Swift.Never> {
3691 get
3692 }
3693 final public func cancel()
3694 @objc deinit
3695}
3696@available(*, unavailable)
3697extension CreateML.MLJob : Swift.Sendable {
3698}
3699extension CreateML.MLImageClassifier.ModelParameters {
3700 @available(macOS 11.0, iOS 15.0, *)
3701 @available(tvOS, unavailable)
3702 public enum ModelAlgorithmType : Swift.CustomStringConvertible, Swift.Sendable {
3703 case transferLearning(featureExtractor: CreateML.MLImageClassifier.FeatureExtractorType, classifier: CreateML.MLImageClassifier.ModelParameters.ClassifierType)
3704 public var description: Swift.String {
3705 get
3706 }
3707 }
3708}
3709extension CreateML.MLDataTable {
3710 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3711 public func pack(columnsNamed: Swift.String..., to: Swift.String, type: CreateML.MLDataTable.PackType = .sequence, filling: CreateML.MLDataValue = MLDataValue.invalid) -> CreateML.MLDataTable
3712 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3713 public func unpack(columnNamed: Swift.String, valueTypes: [CreateML.MLDataValue.ValueType]? = nil, indexSubset: [Swift.Int]? = nil, keySubset: [Swift.String]? = nil) -> CreateML.MLDataTable
3714 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3715 public enum PackType : Swift.Sendable {
3716 case sequence
3717 case dictionary
3718 public static func == (a: CreateML.MLDataTable.PackType, b: CreateML.MLDataTable.PackType) -> Swift.Bool
3719 public func hash(into hasher: inout Swift.Hasher)
3720 public var hashValue: Swift.Int {
3721 get
3722 }
3723 }
3724}
3725@available(macOS 12.0, iOS 15.0, *)
3726@available(tvOS, unavailable)
3727extension CreateML.MLHandActionClassifier.ModelParameters.ModelAlgorithmType : Swift.Hashable {}
3728@available(macOS 12.0, iOS 15.0, *)
3729@available(tvOS, unavailable)
3730extension CreateML.MLHandPoseClassifier.ModelParameters.ModelAlgorithmType : Swift.Hashable {}
3731@available(macOS 12.0, iOS 15.0, *)
3732@available(tvOS, unavailable)
3733extension CreateML.MLSoundClassifier.ModelParameters.FeaturePrintType : Swift.Hashable {}
3734@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3735extension CreateML.MLProgress.Metric : Swift.RawRepresentable {}
3736@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3737extension CreateML.MLDataValue.ValueType : Swift.Equatable {}
3738@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3739extension CreateML.MLDataValue.ValueType : Swift.Hashable {}
3740@available(macOS 11.0, iOS 15.0, *)
3741@available(tvOS, unavailable)
3742extension CreateML.MLStyleTransfer.ModelParameters.ModelAlgorithmType : Swift.Equatable {}
3743@available(macOS 11.0, iOS 15.0, *)
3744@available(tvOS, unavailable)
3745extension CreateML.MLStyleTransfer.ModelParameters.ModelAlgorithmType : Swift.Hashable {}
3746@available(macOS 11.0, iOS 15.0, *)
3747@available(tvOS, unavailable)
3748extension CreateML.MLStyleTransfer.ModelParameters.ModelAlgorithmType : Swift.RawRepresentable {}
3749@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3750extension CreateML.MLPhase : Swift.Equatable {}
3751@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3752extension CreateML.MLPhase : Swift.Hashable {}
3753@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3754extension CreateML.MLPhase : Swift.RawRepresentable {}
3755@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3756extension CreateML.MLDataTable.JoinType : Swift.Equatable {}
3757@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3758extension CreateML.MLDataTable.JoinType : Swift.Hashable {}
3759@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3760extension CreateML.MLDataTable.PackType : Swift.Equatable {}
3761@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3762extension CreateML.MLDataTable.PackType : Swift.Hashable {}
3435}
3436@available(macOS 10.14, iOS 15.0, *)
3437@available(tvOS, unavailable)
3438extension CreateML::MLTextClassifier.CreateML::ModelParameters {
3439 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3440 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3441 @available(tvOS, unavailable)
3442 public var validationData: CreateML::MLDataTable? {
3443 get
3444 set
3445 }
3446 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3447 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3448 @available(tvOS, unavailable)
3449 public var textColumnValidationData: Swift::String? {
3450 get
3451 set
3452 }
3453 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3454 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3455 @available(tvOS, unavailable)
3456 public init(validationData: CreateML::MLTextClassifier.CreateML::DataSource, algorithm: CreateML::MLTextClassifier.CreateML::ModelAlgorithmType = .maxEnt(revision: 1), language: NaturalLanguage::NLLanguage? = nil)
3457 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3458 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3459 @available(tvOS, unavailable)
3460 public init(validationData: [Swift::String : [Swift::String]], algorithm: CreateML::MLTextClassifier.CreateML::ModelAlgorithmType = .maxEnt(revision: 1), language: NaturalLanguage::NLLanguage? = nil)
3461 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3462 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3463 @available(tvOS, unavailable)
3464 public init(validationData: CreateML::MLDataTable? = nil, algorithm: CreateML::MLTextClassifier.CreateML::ModelAlgorithmType = .maxEnt(revision: 1), language: NaturalLanguage::NLLanguage? = nil, textColumnValidationData: Swift::String? = nil, labelColumnValidationData: Swift::String? = nil)
3465 @available(macOS, introduced: 10.14, deprecated: 10.15, message: "Use the validation property instead.")
3466 @available(iOS, introduced: 15.0, deprecated: 16.0, message: "Use the validation property instead.")
3467 @available(tvOS, unavailable)
3468 public var labelColumnValidationData: Swift::String? {
3469 get
3470 set
3471 }
3472}
3473extension CreateML::MLImageClassifier {
3474 @available(macOS 11.0, iOS 15.0, *)
3475 @available(tvOS, unavailable)
3476 public init(checkpoint: CreateML::MLCheckpoint) throws
3477 @available(macOS 11.0, iOS 15.0, *)
3478 @available(tvOS, unavailable)
3479 public static func train(trainingData: CreateML::MLImageClassifier.CreateML::DataSource, parameters: CreateML::MLImageClassifier.CreateML::ModelParameters = ModelParameters(
3480 validation: .split(strategy: .automatic),
3481 augmentation: [],
3482 algorithm: .transferLearning(
3483 featureExtractor: .scenePrint(revision: 1),
3484 classifier: .logisticRegressor
3485 )
3486 ), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLJob<CreateML::MLImageClassifier>
3487 @available(macOS 11.0, iOS 15.0, *)
3488 @available(tvOS, unavailable)
3489 public static func makeTrainingSession(trainingData: CreateML::MLImageClassifier.CreateML::DataSource, parameters: CreateML::MLImageClassifier.CreateML::ModelParameters = ModelParameters(
3490 validation: .split(strategy: .automatic),
3491 augmentation: [],
3492 algorithm: .transferLearning(
3493 featureExtractor: .scenePrint(revision: 1),
3494 classifier: .logisticRegressor
3495 )
3496 ), sessionParameters: CreateML::MLTrainingSessionParameters = _defaultSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLImageClassifier>
3497 @available(macOS 11.0, iOS 15.0, *)
3498 @available(tvOS, unavailable)
3499 public static func restoreTrainingSession(sessionParameters: CreateML::MLTrainingSessionParameters) throws -> CreateML::MLTrainingSession<CreateML::MLImageClassifier>
3500 @available(macOS 11.0, iOS 15.0, *)
3501 @available(tvOS, unavailable)
3502 public static func resume(_ session: CreateML::MLTrainingSession<CreateML::MLImageClassifier>) throws -> CreateML::MLJob<CreateML::MLImageClassifier>
3503}
3504@available(macOS 12.0, iOS 15.0, *)
3505@available(tvOS, unavailable)
3506extension CreateML::MLHandPoseClassifier {
3507 public struct ImageAugmentationOptions : Swift::OptionSet, Swift::Codable, Swift::Sendable {
3508 public let rawValue: Swift::Int
3509 public static let horizontallyFlip: CreateML::MLHandPoseClassifier.CreateML::ImageAugmentationOptions
3510 public static let rotate: CreateML::MLHandPoseClassifier.CreateML::ImageAugmentationOptions
3511 public static let translate: CreateML::MLHandPoseClassifier.CreateML::ImageAugmentationOptions
3512 public static let scale: CreateML::MLHandPoseClassifier.CreateML::ImageAugmentationOptions
3513 public init(rawValue: Swift::Int)
3514 @available(macOS 12.0, iOS 15.0, *)
3515 @available(tvOS, unavailable)
3516 public typealias ArrayLiteralElement = CreateML::MLHandPoseClassifier.CreateML::ImageAugmentationOptions
3517 @available(macOS 12.0, iOS 15.0, *)
3518 @available(tvOS, unavailable)
3519 public typealias Element = CreateML::MLHandPoseClassifier.CreateML::ImageAugmentationOptions
3520 @available(macOS 12.0, iOS 15.0, *)
3521 @available(tvOS, unavailable)
3522 public typealias RawValue = Swift::Int
3523 }
3524}
3525@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3526public struct MLUntypedColumn {
3527 public var count: Swift::Int {
3528 get
3529 }
3530 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3531 public var isEmpty: Swift::Bool {
3532 get
3533 }
3534 public var type: CreateML::MLDataValue.CreateML::ValueType {
3535 get
3536 }
3537 public var error: (any Swift::Error)? {
3538 get
3539 }
3540 public var isValid: Swift::Bool {
3541 get
3542 }
3543 public func column<T>(type: T.Type) -> CreateML::MLDataColumn<T>? where T : CreateML::MLDataValueConvertible
3544 public var ints: CreateML::MLDataColumn<Swift::Int>? {
3545 get
3546 }
3547 public var doubles: CreateML::MLDataColumn<Swift::Double>? {
3548 get
3549 }
3550 public var strings: CreateML::MLDataColumn<Swift::String>? {
3551 get
3552 }
3553 public var sequences: CreateML::MLDataColumn<CreateML::MLDataValue.CreateML::SequenceType>? {
3554 get
3555 }
3556 public var dictionaries: CreateML::MLDataColumn<CreateML::MLDataValue.CreateML::DictionaryType>? {
3557 get
3558 }
3559 public var multiArrays: CreateML::MLDataColumn<CreateML::MLDataValue.CreateML::MultiArrayType>? {
3560 get
3561 }
3562 public init<S>(_ source: S) where S : Swift::Sequence, S.Element == CreateML::MLDataValue
3563 public init<S>(_ source: S) where S : Swift::Sequence, S.Element : CreateML::MLDataValueConvertible
3564 public init(repeating repeatedValue: CreateML::MLDataValue, count: Swift::Int)
3565 public init<T>(repeating repeatedValue: T, count: Swift::Int) where T : CreateML::MLDataValueConvertible
3566 public init(_ range: Swift::Range<Swift::Int>)
3567 public init(_ range: Swift::ClosedRange<Swift::Int>)
3568 public init()
3569 public mutating func append(contentsOf newColumn: CreateML::MLUntypedColumn)
3570}
3571@available(*, unavailable)
3572extension CreateML::MLUntypedColumn : Swift::Sendable {
3573}
3574@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3575extension CreateML::MLUntypedColumn {
3576 public static func == (a: CreateML::MLUntypedColumn, b: any CreateML::MLDataValueConvertible) -> CreateML::MLUntypedColumn
3577 public static func != (a: CreateML::MLUntypedColumn, b: any CreateML::MLDataValueConvertible) -> CreateML::MLUntypedColumn
3578 public static func > (a: CreateML::MLUntypedColumn, b: any CreateML::MLDataValueConvertible) -> CreateML::MLUntypedColumn
3579 public static func < (a: CreateML::MLUntypedColumn, b: any CreateML::MLDataValueConvertible) -> CreateML::MLUntypedColumn
3580 public static func >= (a: CreateML::MLUntypedColumn, b: any CreateML::MLDataValueConvertible) -> CreateML::MLUntypedColumn
3581 public static func <= (a: CreateML::MLUntypedColumn, b: any CreateML::MLDataValueConvertible) -> CreateML::MLUntypedColumn
3582 public static func + (a: CreateML::MLUntypedColumn, b: any CreateML::MLDataValueConvertible) -> CreateML::MLUntypedColumn
3583 public static func - (a: CreateML::MLUntypedColumn, b: any CreateML::MLDataValueConvertible) -> CreateML::MLUntypedColumn
3584 public static func * (a: CreateML::MLUntypedColumn, b: any CreateML::MLDataValueConvertible) -> CreateML::MLUntypedColumn
3585 public static func / (a: CreateML::MLUntypedColumn, b: any CreateML::MLDataValueConvertible) -> CreateML::MLUntypedColumn
3586 public static func == (a: any CreateML::MLDataValueConvertible, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3587 public static func != (a: any CreateML::MLDataValueConvertible, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3588 public static func > (a: any CreateML::MLDataValueConvertible, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3589 public static func < (a: any CreateML::MLDataValueConvertible, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3590 public static func >= (a: any CreateML::MLDataValueConvertible, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3591 public static func <= (a: any CreateML::MLDataValueConvertible, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3592 public static func + (a: any CreateML::MLDataValueConvertible, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3593 public static func - (a: any CreateML::MLDataValueConvertible, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3594 public static func * (a: any CreateML::MLDataValueConvertible, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3595 public static func / (a: any CreateML::MLDataValueConvertible, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3596 public static func == (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3597 public static func != (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3598 public static func > (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3599 public static func < (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3600 public static func >= (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3601 public static func <= (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3602 public static func && (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3603 public static func || (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3604 public static func + (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3605 public static func - (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3606 public static func * (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3607 public static func / (a: CreateML::MLUntypedColumn, b: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn
3608}
3609@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3610extension CreateML::MLUntypedColumn {
3611 public subscript(mask: CreateML::MLUntypedColumn) -> CreateML::MLUntypedColumn {
3612 get
3613 }
3614 public subscript(mask: CreateML::MLDataColumn<Swift::Bool>) -> CreateML::MLUntypedColumn {
3615 get
3616 }
3617 public func map<T>(_ lazyTransform: @escaping (CreateML::MLDataValue) -> T?) -> CreateML::MLDataColumn<T> where T : CreateML::MLDataValueConvertible
3618 public func map<T>(_ lazyTransform: @escaping (CreateML::MLDataValue) -> T) -> CreateML::MLDataColumn<T> where T : CreateML::MLDataValueConvertible
3619 public func mapMissing<T>(_ lazyTransform: @escaping (CreateML::MLDataValue) -> T?) -> CreateML::MLDataColumn<T> where T : CreateML::MLDataValueConvertible
3620 public func map<T>(to type: T.Type) -> CreateML::MLDataColumn<T> where T : CreateML::MLDataValueConvertible
3621 public func dropMissing() -> CreateML::MLUntypedColumn
3622 public func fillMissing(with value: CreateML::MLDataValue) -> CreateML::MLUntypedColumn
3623 public func dropDuplicates() -> CreateML::MLUntypedColumn
3624 public func prefix(_ maxLength: Swift::Int = 10) -> CreateML::MLUntypedColumn
3625 public func suffix(_ maxLength: Swift::Int = 10) -> CreateML::MLUntypedColumn
3626 public func sort(byIncreasingOrder: Swift::Bool = true) -> CreateML::MLUntypedColumn
3627 public func copy() -> CreateML::MLUntypedColumn
3628 public func materialize() throws -> CreateML::MLUntypedColumn
3629}
3630@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3631extension CreateML::MLUntypedColumn {
3632 public init(ints: CreateML::MLUntypedColumn)
3633 public init(doubles: CreateML::MLUntypedColumn)
3634 public init(strings: CreateML::MLUntypedColumn)
3635 public init(sequences: CreateML::MLUntypedColumn)
3636 public init(dictionaries: CreateML::MLUntypedColumn)
3637 public init(multiArrays: CreateML::MLUntypedColumn)
3638}
3639@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3640extension CreateML::MLUntypedColumn {
3641 public subscript(index: Swift::Int) -> CreateML::MLDataValue {
3642 get
3643 }
3644}
3645@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3646extension CreateML::MLUntypedColumn {
3647 public subscript(slice: Swift::Range<Swift::Int>) -> CreateML::MLUntypedColumn {
3648 get
3649 }
3650 public subscript<R>(slice: R) -> CreateML::MLUntypedColumn where R : Swift::RangeExpression, R.Bound == Swift::Int {
3651 get
3652 }
3653}
3654@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3655extension Swift::Array where Element == CreateML::MLDataValue {
3656 public init(_ untypedColumn: CreateML::MLUntypedColumn)
3657}
3658@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3659extension CreateML::MLUntypedColumn : Swift::CustomReflectable {
3660 public var customMirror: Swift::Mirror {
3661 get
3662 }
3663}
3664@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3665extension CreateML::MLUntypedColumn : Swift::CustomStringConvertible, Swift::CustomDebugStringConvertible, Swift::CustomPlaygroundDisplayConvertible {
3666 public var description: Swift::String {
3667 get
3668 }
3669 public var debugDescription: Swift::String {
3670 get
3671 }
3672 public var playgroundDescription: Any {
3673 get
3674 }
3675}
3676@_hasMissingDesignatedInitializers @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3677final public class MLJob<Result> : Combine::Cancellable {
3678 final public let startDate: Foundation::Date
3679 final public let progress: Foundation::Progress
3680 final public var isCanceled: Swift::Bool {
3681 get
3682 }
3683 final public var checkpoints: Combine::AnyPublisher<CreateML::MLCheckpoint, Swift::Never> {
3684 get
3685 }
3686 final public var result: Combine::AnyPublisher<Result, any Swift::Error> {
3687 get
3688 }
3689 @available(macOS 12.0, iOS 15.0, tvOS 16.0, *)
3690 final public var phase: Combine::AnyPublisher<CreateML::MLPhase, Swift::Never> {
3691 get
3692 }
3693 final public func cancel()
3694 @objc deinit
3695}
3696@available(*, unavailable)
3697extension CreateML::MLJob : Swift::Sendable {
3698}
3699extension CreateML::MLImageClassifier.CreateML::ModelParameters {
3700 @available(macOS 11.0, iOS 15.0, *)
3701 @available(tvOS, unavailable)
3702 public enum ModelAlgorithmType : Swift::CustomStringConvertible, Swift::Sendable {
3703 case transferLearning(featureExtractor: CreateML::MLImageClassifier.CreateML::FeatureExtractorType, classifier: CreateML::MLImageClassifier.CreateML::ModelParameters.CreateML::ClassifierType)
3704 public var description: Swift::String {
3705 get
3706 }
3707 }
3708}
3709extension CreateML::MLDataTable {
3710 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3711 public func pack(columnsNamed: Swift::String..., to: Swift::String, type: CreateML::MLDataTable.CreateML::PackType = .sequence, filling: CreateML::MLDataValue = MLDataValue.invalid) -> CreateML::MLDataTable
3712 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3713 public func unpack(columnNamed: Swift::String, valueTypes: [CreateML::MLDataValue.CreateML::ValueType]? = nil, indexSubset: [Swift::Int]? = nil, keySubset: [Swift::String]? = nil) -> CreateML::MLDataTable
3714 @available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3715 public enum PackType : Swift::Sendable {
3716 case sequence
3717 case dictionary
3718 public static func == (a: CreateML::MLDataTable.CreateML::PackType, b: CreateML::MLDataTable.CreateML::PackType) -> Swift::Bool
3719 public func hash(into hasher: inout Swift::Hasher)
3720 public var hashValue: Swift::Int {
3721 get
3722 }
3723 }
3724}
3725@available(macOS 12.0, iOS 15.0, *)
3726@available(tvOS, unavailable)
3727extension CreateML::MLHandActionClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType : Swift::Hashable {}
3728@available(macOS 12.0, iOS 15.0, *)
3729@available(tvOS, unavailable)
3730extension CreateML::MLHandPoseClassifier.CreateML::ModelParameters.CreateML::ModelAlgorithmType : Swift::Hashable {}
3731@available(macOS 12.0, iOS 15.0, *)
3732@available(tvOS, unavailable)
3733extension CreateML::MLSoundClassifier.CreateML::ModelParameters.CreateML::FeaturePrintType : Swift::Hashable {}
3734@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3735extension CreateML::MLProgress.CreateML::Metric : Swift::RawRepresentable {}
3736@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3737extension CreateML::MLDataValue.CreateML::ValueType : Swift::Equatable {}
3738@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3739extension CreateML::MLDataValue.CreateML::ValueType : Swift::Hashable {}
3740@available(macOS 11.0, iOS 15.0, *)
3741@available(tvOS, unavailable)
3742extension CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ModelAlgorithmType : Swift::Equatable {}
3743@available(macOS 11.0, iOS 15.0, *)
3744@available(tvOS, unavailable)
3745extension CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ModelAlgorithmType : Swift::Hashable {}
3746@available(macOS 11.0, iOS 15.0, *)
3747@available(tvOS, unavailable)
3748extension CreateML::MLStyleTransfer.CreateML::ModelParameters.CreateML::ModelAlgorithmType : Swift::RawRepresentable {}
3749@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3750extension CreateML::MLPhase : Swift::Equatable {}
3751@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3752extension CreateML::MLPhase : Swift::Hashable {}
3753@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3754extension CreateML::MLPhase : Swift::RawRepresentable {}
3755@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3756extension CreateML::MLDataTable.CreateML::JoinType : Swift::Equatable {}
3757@available(macOS 10.14, iOS 15.0, tvOS 16.0, *)
3758extension CreateML::MLDataTable.CreateML::JoinType : Swift::Hashable {}
3759@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3760extension CreateML::MLDataTable.CreateML::PackType : Swift::Equatable {}
3761@available(macOS 11.0, iOS 15.0, tvOS 16.0, *)
3762extension CreateML::MLDataTable.CreateML::PackType : Swift::Hashable {}