@octane-xplat/macos-renderer 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -20
- package/package.json +15 -2
- package/src/appearance.ts +2 -0
- package/src/fonts.ts +2 -0
- package/src/formatted-text.ts +147 -0
- package/src/gestures.ts +196 -0
- package/src/host-globals.d.ts +55 -0
- package/src/html-text.ts +88 -0
- package/src/image.ts +91 -16
- package/src/index.d.ts +9 -0
- package/src/index.ts +5030 -678
- package/src/layer.ts +11 -9
- package/src/list-template.ts +266 -0
- package/src/list-view.ts +445 -0
- package/src/portal-components.macos.tsx +86 -0
- package/src/presentation.ts +48 -15
- package/src/scroll-view.ts +124 -0
- package/src/tab-view.ts +512 -0
- package/src/template-props.ts +402 -0
- package/src/vendor/listview/LICENSE +19 -0
- package/src/vendor/listview/README.md +1 -0
- package/src/vendor/listview/binding-options.ts +189 -0
- package/src/vendor/listview/expressions.ts +285 -0
- package/src/webview.ts +36 -7
- package/types/ARKitCore.d.ts +199 -0
- package/types/AVFAudio.d.ts +2304 -0
- package/types/AVFoundation.d.ts +6974 -0
- package/types/AVKit.d.ts +215 -0
- package/types/AVRouting.d.ts +7 -0
- package/types/Accelerate.d.ts +4776 -0
- package/types/Accessibility.d.ts +69 -0
- package/types/Accounts.d.ts +134 -0
- package/types/AdSupport.d.ts +12 -0
- package/types/AddressBook.d.ts +1012 -0
- package/types/AppKit.d.ts +34247 -0
- package/types/AppTrackingTransparency.d.ts +23 -0
- package/types/AppleScriptKit.d.ts +6 -0
- package/types/ApplicationServices.d.ts +6346 -0
- package/types/AudioToolbox.d.ts +7129 -0
- package/types/AudioVideoBridging.d.ts +613 -0
- package/types/AuthenticationServices.d.ts +982 -0
- package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
- package/types/Automator.d.ts +248 -0
- package/types/BackgroundAssets.d.ts +9 -0
- package/types/BrowserEngineKit.d.ts +166 -0
- package/types/BusinessChat.d.ts +29 -0
- package/types/CFNetwork.d.ts +931 -0
- package/types/CalendarStore.d.ts +354 -0
- package/types/CallKit.d.ts +30 -0
- package/types/Carbon.d.ts +16207 -0
- package/types/ClassKit.d.ts +281 -0
- package/types/CloudKit.d.ts +1565 -0
- package/types/Collaboration.d.ts +123 -0
- package/types/ColorSync.d.ts +562 -0
- package/types/CompositorServices.d.ts +60 -0
- package/types/ComputeGraph.d.ts +16 -0
- package/types/Contacts.d.ts +1558 -0
- package/types/ContactsUI.d.ts +39 -0
- package/types/CoreAudio.d.ts +1376 -0
- package/types/CoreAudioKit.d.ts +122 -0
- package/types/CoreAudioTypes.d.ts +1003 -0
- package/types/CoreBluetooth.d.ts +657 -0
- package/types/CoreData.d.ts +2479 -0
- package/types/CoreFoundation.d.ts +5546 -0
- package/types/CoreGraphics.d.ts +3676 -0
- package/types/CoreHaptics.d.ts +361 -0
- package/types/CoreImage.d.ts +4781 -0
- package/types/CoreLocation.d.ts +564 -0
- package/types/CoreMIDI.d.ts +1538 -0
- package/types/CoreML.d.ts +905 -0
- package/types/CoreMedia.d.ts +2615 -0
- package/types/CoreMediaIO.d.ts +1046 -0
- package/types/CoreMotion.d.ts +316 -0
- package/types/CoreServices.d.ts +24810 -0
- package/types/CoreSpotlight.d.ts +789 -0
- package/types/CoreTelephony.d.ts +31 -0
- package/types/CoreText.d.ts +3973 -0
- package/types/CoreTransferable.d.ts +3 -0
- package/types/CoreVideo.d.ts +1162 -0
- package/types/CoreWLAN.d.ts +556 -0
- package/types/CryptoTokenKit.d.ts +548 -0
- package/types/DVDPlayback.d.ts +931 -0
- package/types/DataDetection.d.ts +66 -0
- package/types/DeviceCheck.d.ts +46 -0
- package/types/DeviceDiscoveryExtension.d.ts +142 -0
- package/types/DirectoryService.d.ts +966 -0
- package/types/DiscRecording.d.ts +2345 -0
- package/types/DiscRecordingUI.d.ts +288 -0
- package/types/DiskArbitration.d.ts +366 -0
- package/types/DriverKit.d.ts +639 -0
- package/types/EventKit.d.ts +640 -0
- package/types/ExceptionHandling.d.ts +56 -0
- package/types/ExecutionPolicy.d.ts +30 -0
- package/types/ExternalAccessory.d.ts +98 -0
- package/types/FSKit.d.ts +237 -0
- package/types/FileProvider.d.ts +495 -0
- package/types/FileProviderUI.d.ts +31 -0
- package/types/FinderSync.d.ts +165 -0
- package/types/FocusEngine.d.ts +133 -0
- package/types/ForceFeedback.d.ts +399 -0
- package/types/Foundation.d.ts +18216 -0
- package/types/GLKit.d.ts +937 -0
- package/types/GLUT.d.ts +1018 -0
- package/types/GSS.d.ts +855 -0
- package/types/GameController.d.ts +1394 -0
- package/types/GameKit.d.ts +1958 -0
- package/types/GameSave.d.ts +54 -0
- package/types/GameplayKit.d.ts +1645 -0
- package/types/HealthKit.d.ts +278 -0
- package/types/Hypervisor.d.ts +2079 -0
- package/types/ICADevices.d.ts +1400 -0
- package/types/IOBluetooth.d.ts +6094 -0
- package/types/IOBluetoothUI.d.ts +250 -0
- package/types/IOKit.d.ts +25804 -0
- package/types/IOSurface.d.ts +435 -0
- package/types/IOUSBHost.d.ts +809 -0
- package/types/ImageCaptureCore.d.ts +1104 -0
- package/types/ImageIO.d.ts +1697 -0
- package/types/InputMethodKit.d.ts +264 -0
- package/types/InstallerPlugins.d.ts +102 -0
- package/types/InstantMessage.d.ts +229 -0
- package/types/Intents.d.ts +1833 -0
- package/types/IntentsUI.d.ts +5 -0
- package/types/JavaRuntimeSupport.d.ts +520 -0
- package/types/JavaScriptCore.d.ts +934 -0
- package/types/Kerberos.d.ts +3754 -0
- package/types/Kernel.d.ts +33698 -0
- package/types/KernelManagement.d.ts +5 -0
- package/types/LatentSemanticMapping.d.ts +152 -0
- package/types/LinkPresentation.d.ts +57 -0
- package/types/LocalAuthentication.d.ts +94 -0
- package/types/MLCompute.d.ts +2343 -0
- package/types/MapKit.d.ts +2125 -0
- package/types/Matter.d.ts +151 -0
- package/types/MediaAccessibility.d.ts +137 -0
- package/types/MediaLibrary.d.ts +394 -0
- package/types/MediaPlayer.d.ts +475 -0
- package/types/MediaToolbox.d.ts +70 -0
- package/types/Metal.d.ts +4542 -0
- package/types/MetalFX.d.ts +107 -0
- package/types/MetalKit.d.ts +524 -0
- package/types/MetalPerformanceShaders.d.ts +9306 -0
- package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
- package/types/MetricKit.d.ts +231 -0
- package/types/ModelIO.d.ts +2908 -0
- package/types/MultipeerConnectivity.d.ts +348 -0
- package/types/NaturalLanguage.d.ts +556 -0
- package/types/NearbyInteraction.d.ts +51 -0
- package/types/NetFS.d.ts +99 -0
- package/types/Network.d.ts +1622 -0
- package/types/NetworkExtension.d.ts +1574 -0
- package/types/NotificationCenter.d.ts +103 -0
- package/types/OSAKit.d.ts +260 -0
- package/types/OSLog.d.ts +208 -0
- package/types/OpenAL.d.ts +314 -0
- package/types/OpenCL.d.ts +2489 -0
- package/types/OpenDirectory.d.ts +1919 -0
- package/types/OpenGL.d.ts +11322 -0
- package/types/PCSC.d.ts +534 -0
- package/types/PDFKit.d.ts +1575 -0
- package/types/PHASE.d.ts +166 -0
- package/types/ParavirtualizedGraphics.d.ts +153 -0
- package/types/PassKit.d.ts +1287 -0
- package/types/PencilKit.d.ts +201 -0
- package/types/Photos.d.ts +1125 -0
- package/types/PhotosUI.d.ts +397 -0
- package/types/PreferencePanes.d.ts +68 -0
- package/types/ProximityReaderStub.d.ts +5 -0
- package/types/PushKit.d.ts +45 -0
- package/types/Quartz.d.ts +1642 -0
- package/types/QuartzCore.d.ts +1398 -0
- package/types/QuickLook.d.ts +212 -0
- package/types/QuickLookThumbnailing.d.ts +131 -0
- package/types/QuickLookUI.d.ts +117 -0
- package/types/REVISION.json +5 -0
- package/types/ReplayKit.d.ts +294 -0
- package/types/Runtime.d.ts +51605 -0
- package/types/SafariServices.d.ts +430 -0
- package/types/SafetyKit.d.ts +7 -0
- package/types/SceneKit.d.ts +4996 -0
- package/types/ScreenCaptureKit.d.ts +16 -0
- package/types/ScreenSaver.d.ts +41 -0
- package/types/ScreenTime.d.ts +41 -0
- package/types/ScriptingBridge.d.ts +96 -0
- package/types/Security.d.ts +14336 -0
- package/types/SecurityFoundation.d.ts +53 -0
- package/types/SecurityInterface.d.ts +297 -0
- package/types/SensorKit.d.ts +7 -0
- package/types/ServiceManagement.d.ts +71 -0
- package/types/SharedWithYou.d.ts +9 -0
- package/types/SharedWithYouCore.d.ts +5 -0
- package/types/ShazamKit.d.ts +12 -0
- package/types/Social.d.ts +306 -0
- package/types/SoundAnalysis.d.ts +177 -0
- package/types/Speech.d.ts +246 -0
- package/types/SpriteKit.d.ts +2766 -0
- package/types/StoreKit.d.ts +509 -0
- package/types/SyncServices.d.ts +551 -0
- package/types/SystemConfiguration.d.ts +1415 -0
- package/types/SystemExtensions.d.ts +89 -0
- package/types/TWAIN.d.ts +380 -0
- package/types/Tcl.d.ts +4013 -0
- package/types/ThreadNetwork.d.ts +77 -0
- package/types/Tk.d.ts +3750 -0
- package/types/UIUtilities.d.ts +31 -0
- package/types/UniformTypeIdentifiers.d.ts +358 -0
- package/types/UserNotifications.d.ts +538 -0
- package/types/UserNotificationsUI.d.ts +38 -0
- package/types/VideoDecodeAcceleration.d.ts +50 -0
- package/types/VideoSubscriberAccount.d.ts +139 -0
- package/types/VideoToolbox.d.ts +907 -0
- package/types/Virtualization.d.ts +302 -0
- package/types/Vision.d.ts +1723 -0
- package/types/WebKit.d.ts +5195 -0
- package/types/WidgetKit.d.ts +9 -0
- package/types/_LocationEssentials.d.ts +159 -0
- package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
- package/types/iTunesLibrary.d.ts +528 -0
- package/types/index.d.ts +9 -0
- package/types/vecLib.d.ts +33586 -0
- package/types/vmnet.d.ts +178 -0
- package/src/appkit.d.ts +0 -472
|
@@ -0,0 +1,905 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const MLModelErrorDomain: string
|
|
5
|
+
|
|
6
|
+
declare const MLModelAuthorKey: string
|
|
7
|
+
|
|
8
|
+
declare const MLModelVersionStringKey: string
|
|
9
|
+
|
|
10
|
+
declare const MLModelDescriptionKey: string
|
|
11
|
+
|
|
12
|
+
declare const MLFeatureValueImageOptionCropAndScale: string
|
|
13
|
+
|
|
14
|
+
declare const MLFeatureValueImageOptionCropRect: string
|
|
15
|
+
|
|
16
|
+
declare const MLModelLicenseKey: string
|
|
17
|
+
|
|
18
|
+
declare const MLModelCreatorDefinedKey: string
|
|
19
|
+
|
|
20
|
+
declare const MLModelCollectionDidChangeNotification: string
|
|
21
|
+
|
|
22
|
+
declare const MLUpdateProgressEvent: {
|
|
23
|
+
TrainingBegin: 1
|
|
24
|
+
EpochEnd: 2
|
|
25
|
+
MiniBatchEnd: 4
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare const MLMultiArrayDataType: {
|
|
29
|
+
Double: 65600
|
|
30
|
+
Float64: 65600
|
|
31
|
+
Float32: 65568
|
|
32
|
+
Float: 65568
|
|
33
|
+
Int32: 131104
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare const MLFeatureType: {
|
|
37
|
+
Invalid: 0
|
|
38
|
+
Int64: 1
|
|
39
|
+
Double: 2
|
|
40
|
+
String: 3
|
|
41
|
+
Image: 4
|
|
42
|
+
MultiArray: 5
|
|
43
|
+
Dictionary: 6
|
|
44
|
+
Sequence: 7
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare const MLModelError: {
|
|
48
|
+
Generic: 0
|
|
49
|
+
FeatureType: 1
|
|
50
|
+
IO: 3
|
|
51
|
+
CustomLayer: 4
|
|
52
|
+
CustomModel: 5
|
|
53
|
+
Update: 6
|
|
54
|
+
Parameters: 7
|
|
55
|
+
ModelDecryptionKeyFetch: 8
|
|
56
|
+
ModelDecryption: 9
|
|
57
|
+
ModelCollection: 10
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare const MLComputeUnits: {
|
|
61
|
+
CPUOnly: 0
|
|
62
|
+
CPUAndGPU: 1
|
|
63
|
+
All: 2
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare const MLTaskState: {
|
|
67
|
+
Suspended: 1
|
|
68
|
+
Running: 2
|
|
69
|
+
Cancelling: 3
|
|
70
|
+
Completed: 4
|
|
71
|
+
Failed: 5
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare const MLMultiArrayShapeConstraintType: {
|
|
75
|
+
Unspecified: 1
|
|
76
|
+
Enumerated: 2
|
|
77
|
+
Range: 3
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare const MLImageSizeConstraintType: {
|
|
81
|
+
Unspecified: 0
|
|
82
|
+
Enumerated: 2
|
|
83
|
+
Range: 3
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare interface MLWritable extends NSObjectProtocol {
|
|
87
|
+
writeToURLError(url: NSURL, error: interop.PointerConvertible): boolean
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare class MLWritable extends NativeObject implements MLWritable {}
|
|
91
|
+
|
|
92
|
+
declare interface MLCustomModel {
|
|
93
|
+
initWithModelDescriptionParameterDictionaryError(
|
|
94
|
+
modelDescription: MLModelDescription,
|
|
95
|
+
parameters:
|
|
96
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
97
|
+
| Record<interop.Object, interop.Object>,
|
|
98
|
+
error: interop.PointerConvertible,
|
|
99
|
+
): this
|
|
100
|
+
|
|
101
|
+
predictionFromFeaturesOptionsError(
|
|
102
|
+
input: MLFeatureProvider,
|
|
103
|
+
options: MLPredictionOptions,
|
|
104
|
+
error: interop.PointerConvertible,
|
|
105
|
+
): MLFeatureProvider
|
|
106
|
+
|
|
107
|
+
predictionsFromBatchOptionsError?(
|
|
108
|
+
inputBatch: MLBatchProvider,
|
|
109
|
+
options: MLPredictionOptions,
|
|
110
|
+
error: interop.PointerConvertible,
|
|
111
|
+
): MLBatchProvider
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare class MLCustomModel extends NativeObject implements MLCustomModel {}
|
|
115
|
+
|
|
116
|
+
declare interface MLCustomLayer {
|
|
117
|
+
initWithParameterDictionaryError(
|
|
118
|
+
parameters:
|
|
119
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
120
|
+
| Record<interop.Object, interop.Object>,
|
|
121
|
+
error: interop.PointerConvertible,
|
|
122
|
+
): this
|
|
123
|
+
|
|
124
|
+
setWeightDataError(
|
|
125
|
+
weights: NSArray<interop.Object> | Array<interop.Object>,
|
|
126
|
+
error: interop.PointerConvertible,
|
|
127
|
+
): boolean
|
|
128
|
+
|
|
129
|
+
outputShapesForInputShapesError(
|
|
130
|
+
inputShapes: NSArray<interop.Object> | Array<interop.Object>,
|
|
131
|
+
error: interop.PointerConvertible,
|
|
132
|
+
): NSArray
|
|
133
|
+
|
|
134
|
+
evaluateOnCPUWithInputsOutputsError(
|
|
135
|
+
inputs: NSArray<interop.Object> | Array<interop.Object>,
|
|
136
|
+
outputs: NSArray<interop.Object> | Array<interop.Object>,
|
|
137
|
+
error: interop.PointerConvertible,
|
|
138
|
+
): boolean
|
|
139
|
+
|
|
140
|
+
encodeToCommandBufferInputsOutputsError?(
|
|
141
|
+
commandBuffer: MTLCommandBuffer,
|
|
142
|
+
inputs: NSArray<interop.Object> | Array<interop.Object>,
|
|
143
|
+
outputs: NSArray<interop.Object> | Array<interop.Object>,
|
|
144
|
+
error: interop.PointerConvertible,
|
|
145
|
+
): boolean
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
declare class MLCustomLayer extends NativeObject implements MLCustomLayer {}
|
|
149
|
+
|
|
150
|
+
declare interface MLFeatureProvider {
|
|
151
|
+
readonly featureNames: NSSet
|
|
152
|
+
|
|
153
|
+
featureValueForName(featureName: string): MLFeatureValue
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class MLFeatureProvider extends NativeObject implements MLFeatureProvider {}
|
|
157
|
+
|
|
158
|
+
declare interface MLBatchProvider {
|
|
159
|
+
readonly count: number
|
|
160
|
+
|
|
161
|
+
featuresAtIndex(index: number): MLFeatureProvider
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
declare class MLBatchProvider extends NativeObject implements MLBatchProvider {}
|
|
165
|
+
|
|
166
|
+
declare class MLModelCollectionEntry extends NSObject {
|
|
167
|
+
readonly modelIdentifier: string
|
|
168
|
+
|
|
169
|
+
readonly modelURL: NSURL
|
|
170
|
+
|
|
171
|
+
isEqualToModelCollectionEntry(entry: MLModelCollectionEntry): boolean
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
declare class MLParameterDescription extends NSObject implements NSSecureCoding {
|
|
175
|
+
readonly key: MLParameterKey
|
|
176
|
+
|
|
177
|
+
readonly defaultValue: interop.Object
|
|
178
|
+
|
|
179
|
+
readonly numericConstraint: MLNumericConstraint
|
|
180
|
+
|
|
181
|
+
static readonly supportsSecureCoding: boolean
|
|
182
|
+
|
|
183
|
+
encodeWithCoder(coder: NSCoder): void
|
|
184
|
+
|
|
185
|
+
initWithCoder(coder: NSCoder): this
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
declare class MLNumericConstraint extends NSObject implements NSSecureCoding {
|
|
189
|
+
readonly minNumber: NSNumber
|
|
190
|
+
|
|
191
|
+
readonly maxNumber: NSNumber
|
|
192
|
+
|
|
193
|
+
readonly enumeratedNumbers: NSSet
|
|
194
|
+
|
|
195
|
+
static readonly supportsSecureCoding: boolean
|
|
196
|
+
|
|
197
|
+
encodeWithCoder(coder: NSCoder): void
|
|
198
|
+
|
|
199
|
+
initWithCoder(coder: NSCoder): this
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
declare class MLUpdateContext extends NSObject {
|
|
203
|
+
readonly task: MLUpdateTask
|
|
204
|
+
|
|
205
|
+
readonly model: MLModel
|
|
206
|
+
|
|
207
|
+
readonly event: interop.Enum<typeof MLUpdateProgressEvent>
|
|
208
|
+
|
|
209
|
+
readonly metrics: NSDictionary
|
|
210
|
+
|
|
211
|
+
readonly parameters: NSDictionary
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare class MLTask extends NSObject {
|
|
215
|
+
readonly taskIdentifier: string
|
|
216
|
+
|
|
217
|
+
readonly state: interop.Enum<typeof MLTaskState>
|
|
218
|
+
|
|
219
|
+
readonly error: NSError
|
|
220
|
+
|
|
221
|
+
resume(): void
|
|
222
|
+
|
|
223
|
+
cancel(): void
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
declare class MLKey extends NSObject implements NSCopying, NSSecureCoding {
|
|
227
|
+
readonly name: string
|
|
228
|
+
|
|
229
|
+
readonly scope: string
|
|
230
|
+
|
|
231
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
232
|
+
|
|
233
|
+
static readonly supportsSecureCoding: boolean
|
|
234
|
+
|
|
235
|
+
encodeWithCoder(coder: NSCoder): void
|
|
236
|
+
|
|
237
|
+
initWithCoder(coder: NSCoder): this
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare class MLModel extends NSObject {
|
|
241
|
+
readonly modelDescription: MLModelDescription
|
|
242
|
+
|
|
243
|
+
readonly configuration: MLModelConfiguration
|
|
244
|
+
|
|
245
|
+
static modelWithContentsOfURLError<This extends abstract new (...args: any) => any>(
|
|
246
|
+
this: This,
|
|
247
|
+
url: NSURL,
|
|
248
|
+
error: interop.PointerConvertible,
|
|
249
|
+
): InstanceType<This>
|
|
250
|
+
|
|
251
|
+
static modelWithContentsOfURLConfigurationError<This extends abstract new (...args: any) => any>(
|
|
252
|
+
this: This,
|
|
253
|
+
url: NSURL,
|
|
254
|
+
configuration: MLModelConfiguration,
|
|
255
|
+
error: interop.PointerConvertible,
|
|
256
|
+
): InstanceType<This>
|
|
257
|
+
|
|
258
|
+
static loadContentsOfURLConfigurationCompletionHandler(
|
|
259
|
+
url: NSURL,
|
|
260
|
+
configuration: MLModelConfiguration,
|
|
261
|
+
handler: (p1: MLModel, p2: NSError) => void | null,
|
|
262
|
+
): void
|
|
263
|
+
|
|
264
|
+
predictionFromFeaturesError(
|
|
265
|
+
input: MLFeatureProvider,
|
|
266
|
+
error: interop.PointerConvertible,
|
|
267
|
+
): MLFeatureProvider
|
|
268
|
+
|
|
269
|
+
predictionFromFeaturesOptionsError(
|
|
270
|
+
input: MLFeatureProvider,
|
|
271
|
+
options: MLPredictionOptions,
|
|
272
|
+
error: interop.PointerConvertible,
|
|
273
|
+
): MLFeatureProvider
|
|
274
|
+
|
|
275
|
+
predictionsFromBatchError(
|
|
276
|
+
inputBatch: MLBatchProvider,
|
|
277
|
+
error: interop.PointerConvertible,
|
|
278
|
+
): MLBatchProvider
|
|
279
|
+
|
|
280
|
+
predictionsFromBatchOptionsError(
|
|
281
|
+
inputBatch: MLBatchProvider,
|
|
282
|
+
options: MLPredictionOptions,
|
|
283
|
+
error: interop.PointerConvertible,
|
|
284
|
+
): MLBatchProvider
|
|
285
|
+
|
|
286
|
+
parameterValueForKeyError(key: MLParameterKey, error: interop.PointerConvertible): interop.Object
|
|
287
|
+
|
|
288
|
+
static compileModelAtURLError(modelURL: NSURL, error: interop.PointerConvertible): NSURL
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare class MLModelConfiguration extends NSObject implements NSCopying, NSSecureCoding {
|
|
292
|
+
computeUnits: interop.Enum<typeof MLComputeUnits>
|
|
293
|
+
|
|
294
|
+
allowLowPrecisionAccumulationOnGPU: boolean
|
|
295
|
+
|
|
296
|
+
preferredMetalDevice: MTLDevice
|
|
297
|
+
|
|
298
|
+
get parameters(): NSDictionary
|
|
299
|
+
set parameters(
|
|
300
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
304
|
+
|
|
305
|
+
static readonly supportsSecureCoding: boolean
|
|
306
|
+
|
|
307
|
+
encodeWithCoder(coder: NSCoder): void
|
|
308
|
+
|
|
309
|
+
initWithCoder(coder: NSCoder): this
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
declare class MLArrayBatchProvider extends NSObject implements MLBatchProvider {
|
|
313
|
+
readonly array: NSArray
|
|
314
|
+
|
|
315
|
+
initWithFeatureProviderArray(array: NSArray<interop.Object> | Array<interop.Object>): this
|
|
316
|
+
|
|
317
|
+
initWithDictionaryError(
|
|
318
|
+
dictionary:
|
|
319
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
320
|
+
| Record<interop.Object, interop.Object>,
|
|
321
|
+
error: interop.PointerConvertible,
|
|
322
|
+
): this
|
|
323
|
+
|
|
324
|
+
readonly count: number
|
|
325
|
+
|
|
326
|
+
featuresAtIndex(index: number): MLFeatureProvider
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
declare class MLDictionaryFeatureProvider
|
|
330
|
+
extends NSObject
|
|
331
|
+
implements MLFeatureProvider, NSFastEnumeration, NSSecureCoding
|
|
332
|
+
{
|
|
333
|
+
readonly dictionary: NSDictionary
|
|
334
|
+
|
|
335
|
+
initWithDictionaryError(
|
|
336
|
+
dictionary:
|
|
337
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
338
|
+
| Record<interop.Object, interop.Object>,
|
|
339
|
+
error: interop.PointerConvertible,
|
|
340
|
+
): this
|
|
341
|
+
|
|
342
|
+
objectForKeyedSubscript(featureName: string): MLFeatureValue
|
|
343
|
+
|
|
344
|
+
readonly featureNames: NSSet
|
|
345
|
+
|
|
346
|
+
featureValueForName(featureName: string): MLFeatureValue
|
|
347
|
+
|
|
348
|
+
countByEnumeratingWithStateObjectsCount(
|
|
349
|
+
state: interop.PointerConvertible,
|
|
350
|
+
buffer: interop.PointerConvertible,
|
|
351
|
+
len: number,
|
|
352
|
+
): number
|
|
353
|
+
|
|
354
|
+
static readonly supportsSecureCoding: boolean
|
|
355
|
+
|
|
356
|
+
encodeWithCoder(coder: NSCoder): void
|
|
357
|
+
|
|
358
|
+
initWithCoder(coder: NSCoder): this
|
|
359
|
+
|
|
360
|
+
readonly [Symbol.iterator]: () => Iterator<any>
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
declare class MLMultiArrayShapeConstraint extends NSObject implements NSSecureCoding {
|
|
364
|
+
readonly type: interop.Enum<typeof MLMultiArrayShapeConstraintType>
|
|
365
|
+
|
|
366
|
+
readonly sizeRangeForDimension: NSArray
|
|
367
|
+
|
|
368
|
+
readonly enumeratedShapes: NSArray
|
|
369
|
+
|
|
370
|
+
static readonly supportsSecureCoding: boolean
|
|
371
|
+
|
|
372
|
+
encodeWithCoder(coder: NSCoder): void
|
|
373
|
+
|
|
374
|
+
initWithCoder(coder: NSCoder): this
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
declare class MLMultiArrayConstraint extends NSObject implements NSSecureCoding {
|
|
378
|
+
readonly shape: NSArray
|
|
379
|
+
|
|
380
|
+
readonly dataType: interop.Enum<typeof MLMultiArrayDataType>
|
|
381
|
+
|
|
382
|
+
readonly shapeConstraint: MLMultiArrayShapeConstraint
|
|
383
|
+
|
|
384
|
+
static readonly supportsSecureCoding: boolean
|
|
385
|
+
|
|
386
|
+
encodeWithCoder(coder: NSCoder): void
|
|
387
|
+
|
|
388
|
+
initWithCoder(coder: NSCoder): this
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
declare class MLDictionaryConstraint extends NSObject implements NSSecureCoding {
|
|
392
|
+
readonly keyType: interop.Enum<typeof MLFeatureType>
|
|
393
|
+
|
|
394
|
+
static readonly supportsSecureCoding: boolean
|
|
395
|
+
|
|
396
|
+
encodeWithCoder(coder: NSCoder): void
|
|
397
|
+
|
|
398
|
+
initWithCoder(coder: NSCoder): this
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
declare class MLImageSizeConstraint extends NSObject implements NSSecureCoding {
|
|
402
|
+
readonly type: interop.Enum<typeof MLImageSizeConstraintType>
|
|
403
|
+
|
|
404
|
+
readonly pixelsWideRange: _NSRange
|
|
405
|
+
|
|
406
|
+
readonly pixelsHighRange: _NSRange
|
|
407
|
+
|
|
408
|
+
readonly enumeratedImageSizes: NSArray
|
|
409
|
+
|
|
410
|
+
static readonly supportsSecureCoding: boolean
|
|
411
|
+
|
|
412
|
+
encodeWithCoder(coder: NSCoder): void
|
|
413
|
+
|
|
414
|
+
initWithCoder(coder: NSCoder): this
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare class MLFeatureValue extends NSObject implements NSCopying, NSSecureCoding {
|
|
418
|
+
readonly type: interop.Enum<typeof MLFeatureType>
|
|
419
|
+
|
|
420
|
+
readonly undefined: boolean
|
|
421
|
+
|
|
422
|
+
readonly int64Value: number
|
|
423
|
+
|
|
424
|
+
readonly doubleValue: number
|
|
425
|
+
|
|
426
|
+
readonly stringValue: string
|
|
427
|
+
|
|
428
|
+
readonly multiArrayValue: MLMultiArray
|
|
429
|
+
|
|
430
|
+
readonly dictionaryValue: NSDictionary
|
|
431
|
+
|
|
432
|
+
readonly imageBufferValue: interop.Object
|
|
433
|
+
|
|
434
|
+
readonly sequenceValue: MLSequence
|
|
435
|
+
|
|
436
|
+
static featureValueWithInt64<This extends abstract new (...args: any) => any>(
|
|
437
|
+
this: This,
|
|
438
|
+
value: number,
|
|
439
|
+
): InstanceType<This>
|
|
440
|
+
|
|
441
|
+
static featureValueWithDouble<This extends abstract new (...args: any) => any>(
|
|
442
|
+
this: This,
|
|
443
|
+
value: number,
|
|
444
|
+
): InstanceType<This>
|
|
445
|
+
|
|
446
|
+
static featureValueWithString<This extends abstract new (...args: any) => any>(
|
|
447
|
+
this: This,
|
|
448
|
+
value: string,
|
|
449
|
+
): InstanceType<This>
|
|
450
|
+
|
|
451
|
+
static featureValueWithMultiArray<This extends abstract new (...args: any) => any>(
|
|
452
|
+
this: This,
|
|
453
|
+
value: MLMultiArray,
|
|
454
|
+
): InstanceType<This>
|
|
455
|
+
|
|
456
|
+
static featureValueWithPixelBuffer<This extends abstract new (...args: any) => any>(
|
|
457
|
+
this: This,
|
|
458
|
+
value: interop.Object,
|
|
459
|
+
): InstanceType<This>
|
|
460
|
+
|
|
461
|
+
static featureValueWithSequence<This extends abstract new (...args: any) => any>(
|
|
462
|
+
this: This,
|
|
463
|
+
sequence: MLSequence,
|
|
464
|
+
): InstanceType<This>
|
|
465
|
+
|
|
466
|
+
static undefinedFeatureValueWithType<This extends abstract new (...args: any) => any>(
|
|
467
|
+
this: This,
|
|
468
|
+
type: interop.Enum<typeof MLFeatureType>,
|
|
469
|
+
): InstanceType<This>
|
|
470
|
+
|
|
471
|
+
static featureValueWithDictionaryError<This extends abstract new (...args: any) => any>(
|
|
472
|
+
this: This,
|
|
473
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
474
|
+
error: interop.PointerConvertible,
|
|
475
|
+
): InstanceType<This>
|
|
476
|
+
|
|
477
|
+
isEqualToFeatureValue(value: MLFeatureValue): boolean
|
|
478
|
+
|
|
479
|
+
isUndefined(): boolean
|
|
480
|
+
|
|
481
|
+
static featureValueWithImageAtURLPixelsWidePixelsHighPixelFormatTypeOptionsError<
|
|
482
|
+
This extends abstract new (...args: any) => any,
|
|
483
|
+
>(
|
|
484
|
+
this: This,
|
|
485
|
+
url: NSURL,
|
|
486
|
+
pixelsWide: number,
|
|
487
|
+
pixelsHigh: number,
|
|
488
|
+
pixelFormatType: number,
|
|
489
|
+
options:
|
|
490
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
491
|
+
| Record<interop.Object, interop.Object>
|
|
492
|
+
| null,
|
|
493
|
+
error: interop.PointerConvertible,
|
|
494
|
+
): InstanceType<This>
|
|
495
|
+
|
|
496
|
+
static featureValueWithImageAtURLConstraintOptionsError<
|
|
497
|
+
This extends abstract new (...args: any) => any,
|
|
498
|
+
>(
|
|
499
|
+
this: This,
|
|
500
|
+
url: NSURL,
|
|
501
|
+
constraint: MLImageConstraint,
|
|
502
|
+
options:
|
|
503
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
504
|
+
| Record<interop.Object, interop.Object>
|
|
505
|
+
| null,
|
|
506
|
+
error: interop.PointerConvertible,
|
|
507
|
+
): InstanceType<This>
|
|
508
|
+
|
|
509
|
+
static featureValueWithCGImagePixelsWidePixelsHighPixelFormatTypeOptionsError<
|
|
510
|
+
This extends abstract new (...args: any) => any,
|
|
511
|
+
>(
|
|
512
|
+
this: This,
|
|
513
|
+
cgImage: interop.Object,
|
|
514
|
+
pixelsWide: number,
|
|
515
|
+
pixelsHigh: number,
|
|
516
|
+
pixelFormatType: number,
|
|
517
|
+
options:
|
|
518
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
519
|
+
| Record<interop.Object, interop.Object>
|
|
520
|
+
| null,
|
|
521
|
+
error: interop.PointerConvertible,
|
|
522
|
+
): InstanceType<This>
|
|
523
|
+
|
|
524
|
+
static featureValueWithCGImageConstraintOptionsError<
|
|
525
|
+
This extends abstract new (...args: any) => any,
|
|
526
|
+
>(
|
|
527
|
+
this: This,
|
|
528
|
+
cgImage: interop.Object,
|
|
529
|
+
constraint: MLImageConstraint,
|
|
530
|
+
options:
|
|
531
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
532
|
+
| Record<interop.Object, interop.Object>
|
|
533
|
+
| null,
|
|
534
|
+
error: interop.PointerConvertible,
|
|
535
|
+
): InstanceType<This>
|
|
536
|
+
|
|
537
|
+
static featureValueWithImageAtURLOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError<
|
|
538
|
+
This extends abstract new (...args: any) => any,
|
|
539
|
+
>(
|
|
540
|
+
this: This,
|
|
541
|
+
url: NSURL,
|
|
542
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
543
|
+
pixelsWide: number,
|
|
544
|
+
pixelsHigh: number,
|
|
545
|
+
pixelFormatType: number,
|
|
546
|
+
options:
|
|
547
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
548
|
+
| Record<interop.Object, interop.Object>
|
|
549
|
+
| null,
|
|
550
|
+
error: interop.PointerConvertible,
|
|
551
|
+
): InstanceType<This>
|
|
552
|
+
|
|
553
|
+
static featureValueWithImageAtURLOrientationConstraintOptionsError<
|
|
554
|
+
This extends abstract new (...args: any) => any,
|
|
555
|
+
>(
|
|
556
|
+
this: This,
|
|
557
|
+
url: NSURL,
|
|
558
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
559
|
+
constraint: MLImageConstraint,
|
|
560
|
+
options:
|
|
561
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
562
|
+
| Record<interop.Object, interop.Object>
|
|
563
|
+
| null,
|
|
564
|
+
error: interop.PointerConvertible,
|
|
565
|
+
): InstanceType<This>
|
|
566
|
+
|
|
567
|
+
static featureValueWithCGImageOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError<
|
|
568
|
+
This extends abstract new (...args: any) => any,
|
|
569
|
+
>(
|
|
570
|
+
this: This,
|
|
571
|
+
cgImage: interop.Object,
|
|
572
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
573
|
+
pixelsWide: number,
|
|
574
|
+
pixelsHigh: number,
|
|
575
|
+
pixelFormatType: number,
|
|
576
|
+
options:
|
|
577
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
578
|
+
| Record<interop.Object, interop.Object>
|
|
579
|
+
| null,
|
|
580
|
+
error: interop.PointerConvertible,
|
|
581
|
+
): InstanceType<This>
|
|
582
|
+
|
|
583
|
+
static featureValueWithCGImageOrientationConstraintOptionsError<
|
|
584
|
+
This extends abstract new (...args: any) => any,
|
|
585
|
+
>(
|
|
586
|
+
this: This,
|
|
587
|
+
cgImage: interop.Object,
|
|
588
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
589
|
+
constraint: MLImageConstraint,
|
|
590
|
+
options:
|
|
591
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
592
|
+
| Record<interop.Object, interop.Object>
|
|
593
|
+
| null,
|
|
594
|
+
error: interop.PointerConvertible,
|
|
595
|
+
): InstanceType<This>
|
|
596
|
+
|
|
597
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
598
|
+
|
|
599
|
+
static readonly supportsSecureCoding: boolean
|
|
600
|
+
|
|
601
|
+
encodeWithCoder(coder: NSCoder): void
|
|
602
|
+
|
|
603
|
+
initWithCoder(coder: NSCoder): this
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
declare class MLMultiArray extends NSObject implements NSSecureCoding {
|
|
607
|
+
readonly dataPointer: interop.Pointer
|
|
608
|
+
|
|
609
|
+
readonly dataType: interop.Enum<typeof MLMultiArrayDataType>
|
|
610
|
+
|
|
611
|
+
readonly shape: NSArray
|
|
612
|
+
|
|
613
|
+
readonly strides: NSArray
|
|
614
|
+
|
|
615
|
+
readonly count: number
|
|
616
|
+
|
|
617
|
+
initWithShapeDataTypeError(
|
|
618
|
+
shape: NSArray<interop.Object> | Array<interop.Object>,
|
|
619
|
+
dataType: interop.Enum<typeof MLMultiArrayDataType>,
|
|
620
|
+
error: interop.PointerConvertible,
|
|
621
|
+
): this
|
|
622
|
+
|
|
623
|
+
initWithDataPointerShapeDataTypeStridesDeallocatorError(
|
|
624
|
+
dataPointer: interop.PointerConvertible,
|
|
625
|
+
shape: NSArray<interop.Object> | Array<interop.Object>,
|
|
626
|
+
dataType: interop.Enum<typeof MLMultiArrayDataType>,
|
|
627
|
+
strides: NSArray<interop.Object> | Array<interop.Object>,
|
|
628
|
+
deallocator: (p1: interop.PointerConvertible) => void | null,
|
|
629
|
+
error: interop.PointerConvertible,
|
|
630
|
+
): this
|
|
631
|
+
|
|
632
|
+
static multiArrayByConcatenatingMultiArraysAlongAxisDataType<
|
|
633
|
+
This extends abstract new (...args: any) => any,
|
|
634
|
+
>(
|
|
635
|
+
this: This,
|
|
636
|
+
multiArrays: NSArray<interop.Object> | Array<interop.Object>,
|
|
637
|
+
axis: number,
|
|
638
|
+
dataType: interop.Enum<typeof MLMultiArrayDataType>,
|
|
639
|
+
): InstanceType<This>
|
|
640
|
+
|
|
641
|
+
objectAtIndexedSubscript(idx: number): NSNumber
|
|
642
|
+
|
|
643
|
+
objectForKeyedSubscript(key: NSArray<interop.Object> | Array<interop.Object>): NSNumber
|
|
644
|
+
|
|
645
|
+
setObjectAtIndexedSubscript(obj: NSNumber, idx: number): void
|
|
646
|
+
|
|
647
|
+
setObjectForKeyedSubscript(
|
|
648
|
+
obj: NSNumber,
|
|
649
|
+
key: NSArray<interop.Object> | Array<interop.Object>,
|
|
650
|
+
): void
|
|
651
|
+
|
|
652
|
+
static readonly supportsSecureCoding: boolean
|
|
653
|
+
|
|
654
|
+
encodeWithCoder(coder: NSCoder): void
|
|
655
|
+
|
|
656
|
+
initWithCoder(coder: NSCoder): this
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
declare class MLMetricKey extends MLKey {
|
|
660
|
+
static readonly lossValue: MLMetricKey
|
|
661
|
+
|
|
662
|
+
static readonly epochIndex: MLMetricKey
|
|
663
|
+
|
|
664
|
+
static readonly miniBatchIndex: MLMetricKey
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
declare class MLSequenceConstraint extends NSObject implements NSSecureCoding {
|
|
668
|
+
readonly valueDescription: MLFeatureDescription
|
|
669
|
+
|
|
670
|
+
readonly countRange: _NSRange
|
|
671
|
+
|
|
672
|
+
static readonly supportsSecureCoding: boolean
|
|
673
|
+
|
|
674
|
+
encodeWithCoder(coder: NSCoder): void
|
|
675
|
+
|
|
676
|
+
initWithCoder(coder: NSCoder): this
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
declare class MLImageSize extends NSObject implements NSSecureCoding {
|
|
680
|
+
readonly pixelsWide: number
|
|
681
|
+
|
|
682
|
+
readonly pixelsHigh: number
|
|
683
|
+
|
|
684
|
+
static readonly supportsSecureCoding: boolean
|
|
685
|
+
|
|
686
|
+
encodeWithCoder(coder: NSCoder): void
|
|
687
|
+
|
|
688
|
+
initWithCoder(coder: NSCoder): this
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
declare class MLUpdateProgressHandlers extends NSObject {
|
|
692
|
+
initForEventsProgressHandlerCompletionHandler(
|
|
693
|
+
interestedEvents: interop.Enum<typeof MLUpdateProgressEvent>,
|
|
694
|
+
progressHandler: (p1: MLUpdateContext) => void | null,
|
|
695
|
+
completionHandler: (p1: MLUpdateContext) => void,
|
|
696
|
+
): this
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
declare class MLUpdateTask extends MLTask {
|
|
700
|
+
static updateTaskForModelAtURLTrainingDataConfigurationCompletionHandlerError<
|
|
701
|
+
This extends abstract new (...args: any) => any,
|
|
702
|
+
>(
|
|
703
|
+
this: This,
|
|
704
|
+
modelURL: NSURL,
|
|
705
|
+
trainingData: MLBatchProvider,
|
|
706
|
+
configuration: MLModelConfiguration | null,
|
|
707
|
+
completionHandler: (p1: MLUpdateContext) => void,
|
|
708
|
+
error: interop.PointerConvertible,
|
|
709
|
+
): InstanceType<This>
|
|
710
|
+
|
|
711
|
+
static updateTaskForModelAtURLTrainingDataCompletionHandlerError<
|
|
712
|
+
This extends abstract new (...args: any) => any,
|
|
713
|
+
>(
|
|
714
|
+
this: This,
|
|
715
|
+
modelURL: NSURL,
|
|
716
|
+
trainingData: MLBatchProvider,
|
|
717
|
+
completionHandler: (p1: MLUpdateContext) => void,
|
|
718
|
+
error: interop.PointerConvertible,
|
|
719
|
+
): InstanceType<This>
|
|
720
|
+
|
|
721
|
+
static updateTaskForModelAtURLTrainingDataConfigurationProgressHandlersError<
|
|
722
|
+
This extends abstract new (...args: any) => any,
|
|
723
|
+
>(
|
|
724
|
+
this: This,
|
|
725
|
+
modelURL: NSURL,
|
|
726
|
+
trainingData: MLBatchProvider,
|
|
727
|
+
configuration: MLModelConfiguration | null,
|
|
728
|
+
progressHandlers: MLUpdateProgressHandlers,
|
|
729
|
+
error: interop.PointerConvertible,
|
|
730
|
+
): InstanceType<This>
|
|
731
|
+
|
|
732
|
+
static updateTaskForModelAtURLTrainingDataProgressHandlersError<
|
|
733
|
+
This extends abstract new (...args: any) => any,
|
|
734
|
+
>(
|
|
735
|
+
this: This,
|
|
736
|
+
modelURL: NSURL,
|
|
737
|
+
trainingData: MLBatchProvider,
|
|
738
|
+
progressHandlers: MLUpdateProgressHandlers,
|
|
739
|
+
error: interop.PointerConvertible,
|
|
740
|
+
): InstanceType<This>
|
|
741
|
+
|
|
742
|
+
resumeWithParameters(
|
|
743
|
+
updateParameters:
|
|
744
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
745
|
+
| Record<interop.Object, interop.Object>,
|
|
746
|
+
): void
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
declare class MLPredictionOptions extends NSObject {
|
|
750
|
+
usesCPUOnly: boolean
|
|
751
|
+
|
|
752
|
+
get outputBackings(): NSDictionary
|
|
753
|
+
set outputBackings(
|
|
754
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
755
|
+
)
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
declare class MLModelCollection extends NSObject {
|
|
759
|
+
readonly identifier: string
|
|
760
|
+
|
|
761
|
+
readonly entries: NSDictionary
|
|
762
|
+
|
|
763
|
+
readonly deploymentID: string
|
|
764
|
+
|
|
765
|
+
static beginAccessingModelCollectionWithIdentifierCompletionHandler(
|
|
766
|
+
identifier: string,
|
|
767
|
+
completionHandler: (p1: MLModelCollection, p2: NSError) => void | null,
|
|
768
|
+
): NSProgress
|
|
769
|
+
|
|
770
|
+
static endAccessingModelCollectionWithIdentifierCompletionHandler(
|
|
771
|
+
identifier: string,
|
|
772
|
+
completionHandler: (p1: boolean, p2: NSError) => void | null,
|
|
773
|
+
): void
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
declare class MLImageConstraint extends NSObject implements NSSecureCoding {
|
|
777
|
+
readonly pixelsHigh: number
|
|
778
|
+
|
|
779
|
+
readonly pixelsWide: number
|
|
780
|
+
|
|
781
|
+
readonly pixelFormatType: number
|
|
782
|
+
|
|
783
|
+
readonly sizeConstraint: MLImageSizeConstraint
|
|
784
|
+
|
|
785
|
+
static readonly supportsSecureCoding: boolean
|
|
786
|
+
|
|
787
|
+
encodeWithCoder(coder: NSCoder): void
|
|
788
|
+
|
|
789
|
+
initWithCoder(coder: NSCoder): this
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
declare class MLModelDescription extends NSObject implements NSSecureCoding {
|
|
793
|
+
readonly inputDescriptionsByName: NSDictionary
|
|
794
|
+
|
|
795
|
+
readonly outputDescriptionsByName: NSDictionary
|
|
796
|
+
|
|
797
|
+
readonly predictedFeatureName: string
|
|
798
|
+
|
|
799
|
+
readonly predictedProbabilitiesName: string
|
|
800
|
+
|
|
801
|
+
readonly metadata: NSDictionary
|
|
802
|
+
|
|
803
|
+
readonly classLabels: NSArray
|
|
804
|
+
|
|
805
|
+
readonly isUpdatable: boolean
|
|
806
|
+
|
|
807
|
+
readonly trainingInputDescriptionsByName: NSDictionary
|
|
808
|
+
|
|
809
|
+
readonly parameterDescriptionsByKey: NSDictionary
|
|
810
|
+
|
|
811
|
+
static readonly supportsSecureCoding: boolean
|
|
812
|
+
|
|
813
|
+
encodeWithCoder(coder: NSCoder): void
|
|
814
|
+
|
|
815
|
+
initWithCoder(coder: NSCoder): this
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
declare class MLFeatureDescription extends NSObject implements NSCopying, NSSecureCoding {
|
|
819
|
+
readonly name: string
|
|
820
|
+
|
|
821
|
+
readonly type: interop.Enum<typeof MLFeatureType>
|
|
822
|
+
|
|
823
|
+
readonly optional: boolean
|
|
824
|
+
|
|
825
|
+
isAllowedValue(value: MLFeatureValue): boolean
|
|
826
|
+
|
|
827
|
+
isOptional(): boolean
|
|
828
|
+
|
|
829
|
+
readonly multiArrayConstraint: MLMultiArrayConstraint
|
|
830
|
+
|
|
831
|
+
readonly imageConstraint: MLImageConstraint
|
|
832
|
+
|
|
833
|
+
readonly dictionaryConstraint: MLDictionaryConstraint
|
|
834
|
+
|
|
835
|
+
readonly sequenceConstraint: MLSequenceConstraint
|
|
836
|
+
|
|
837
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
838
|
+
|
|
839
|
+
static readonly supportsSecureCoding: boolean
|
|
840
|
+
|
|
841
|
+
encodeWithCoder(coder: NSCoder): void
|
|
842
|
+
|
|
843
|
+
initWithCoder(coder: NSCoder): this
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
declare class MLParameterKey extends MLKey {
|
|
847
|
+
static readonly learningRate: MLParameterKey
|
|
848
|
+
|
|
849
|
+
static readonly momentum: MLParameterKey
|
|
850
|
+
|
|
851
|
+
static readonly miniBatchSize: MLParameterKey
|
|
852
|
+
|
|
853
|
+
static readonly beta1: MLParameterKey
|
|
854
|
+
|
|
855
|
+
static readonly beta2: MLParameterKey
|
|
856
|
+
|
|
857
|
+
static readonly eps: MLParameterKey
|
|
858
|
+
|
|
859
|
+
static readonly epochs: MLParameterKey
|
|
860
|
+
|
|
861
|
+
static readonly shuffle: MLParameterKey
|
|
862
|
+
|
|
863
|
+
static readonly seed: MLParameterKey
|
|
864
|
+
|
|
865
|
+
static readonly numberOfNeighbors: MLParameterKey
|
|
866
|
+
|
|
867
|
+
static readonly linkedModelFileName: MLParameterKey
|
|
868
|
+
|
|
869
|
+
static readonly linkedModelSearchPath: MLParameterKey
|
|
870
|
+
|
|
871
|
+
static readonly weights: MLParameterKey
|
|
872
|
+
|
|
873
|
+
static readonly biases: MLParameterKey
|
|
874
|
+
|
|
875
|
+
scopedTo(scope: string): MLParameterKey
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
declare class MLSequence extends NSObject implements NSSecureCoding {
|
|
879
|
+
readonly type: interop.Enum<typeof MLFeatureType>
|
|
880
|
+
|
|
881
|
+
static emptySequenceWithType<This extends abstract new (...args: any) => any>(
|
|
882
|
+
this: This,
|
|
883
|
+
type: interop.Enum<typeof MLFeatureType>,
|
|
884
|
+
): InstanceType<This>
|
|
885
|
+
|
|
886
|
+
static sequenceWithStringArray<This extends abstract new (...args: any) => any>(
|
|
887
|
+
this: This,
|
|
888
|
+
stringValues: NSArray<interop.Object> | Array<interop.Object>,
|
|
889
|
+
): InstanceType<This>
|
|
890
|
+
|
|
891
|
+
readonly stringValues: NSArray
|
|
892
|
+
|
|
893
|
+
static sequenceWithInt64Array<This extends abstract new (...args: any) => any>(
|
|
894
|
+
this: This,
|
|
895
|
+
int64Values: NSArray<interop.Object> | Array<interop.Object>,
|
|
896
|
+
): InstanceType<This>
|
|
897
|
+
|
|
898
|
+
readonly int64Values: NSArray
|
|
899
|
+
|
|
900
|
+
static readonly supportsSecureCoding: boolean
|
|
901
|
+
|
|
902
|
+
encodeWithCoder(coder: NSCoder): void
|
|
903
|
+
|
|
904
|
+
initWithCoder(coder: NSCoder): this
|
|
905
|
+
}
|