-
Notifications
You must be signed in to change notification settings - Fork 43
/
MLModel.xml
588 lines (584 loc) · 32.1 KB
/
MLModel.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
<Type Name="MLModel" FullName="CoreML.MLModel">
<TypeSignature Language="C#" Value="public class MLModel : Foundation.NSObject" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MLModel extends Foundation.NSObject" />
<TypeSignature Language="DocId" Value="T:CoreML.MLModel" />
<TypeSignature Language="F#" Value="type MLModel = class
 inherit NSObject" />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Foundation.NSObject</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>Foundation.Register("MLModel", true)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Encapsulates a trained machine-learning model.</summary>
<remarks>
<para>The <see cref="T:CoreML.MLModel" /> class encapsulates a machine-learning model that maps a predefined set of input features to a predefined set of output features. Models are generally stored as .mlmodel files but these must be "compiled" into a .mlmodelc directory prior to inferencing. This compilation step generally occurs prior to deploymenty, but may be performed on the device with the time-consuming <see cref="M:CoreML.MLModel.CompileModel(Foundation.NSUrl,Foundation.NSError@)" /> method.</para>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MLModel ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:CoreML.MLModel.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("init")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Default constructor, initializes a new instance of this class.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected MLModel (Foundation.NSObjectFlag t);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Foundation.NSObjectFlag t) cil managed" />
<MemberSignature Language="DocId" Value="M:CoreML.MLModel.#ctor(Foundation.NSObjectFlag)" />
<MemberSignature Language="F#" Value="new CoreML.MLModel : Foundation.NSObjectFlag -> CoreML.MLModel" Usage="new CoreML.MLModel t" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="t" Type="Foundation.NSObjectFlag" />
</Parameters>
<Docs>
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
<remarks>
<para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When developers invoke the constructor that takes the NSObjectFlag.Empty they take advantage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to the developer.</para>
<para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
<para>It is the developer's responsibility to completely initialize the object if they chain up using the NSObjectFlag.Empty path.</para>
<para>In general, if the developer's constructor invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, developers should instead chain to the proper constructor in their class. </para>
<para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
//
// The NSObjectFlag merely allocates the object and registers the
// C# class with the Objective-C runtime if necessary, but no actual
// initXxx method is invoked, that is done later in the constructor
//
// This is taken from Xamarin.iOS's source code:
//
[Export ("initWithFrame:")]
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
{
// Invoke the init method now.
var initWithFrame = new Selector ("initWithFrame:").Handle;
if (IsDirectBinding)
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
else
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
}
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected internal MLModel (IntPtr handle);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" />
<MemberSignature Language="DocId" Value="M:CoreML.MLModel.#ctor(System.IntPtr)" />
<MemberSignature Language="F#" Value="new CoreML.MLModel : nativeint -> CoreML.MLModel" Usage="new CoreML.MLModel handle" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="handle" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="handle">Pointer (handle) to the unmanaged object.</param>
<summary>A constructor used when creating managed representations of unmanaged objects; Called by the runtime.</summary>
<remarks>
<para>This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object. Developers should not invoke this method directly, instead they should call the GetNSObject method as it will prevent two instances of a managed object to point to the same native object.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="ClassHandle">
<MemberSignature Language="C#" Value="public override IntPtr ClassHandle { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance native int ClassHandle" />
<MemberSignature Language="DocId" Value="P:CoreML.MLModel.ClassHandle" />
<MemberSignature Language="F#" Value="member this.ClassHandle : nativeint" Usage="CoreML.MLModel.ClassHandle" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<summary>The handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
<remarks>Each Xamarin.iOS class mirrors an unmanaged Objective-C class. This value contains the pointer to the Objective-C class, it is similar to calling objc_getClass with the object name.</remarks>
</Docs>
</Member>
<Member MemberName="CompileModel">
<MemberSignature Language="C#" Value="public static Foundation.NSUrl CompileModel (Foundation.NSUrl modelUrl, out Foundation.NSError error);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Foundation.NSUrl CompileModel(class Foundation.NSUrl modelUrl, [out] class Foundation.NSError& error) cil managed" />
<MemberSignature Language="DocId" Value="M:CoreML.MLModel.CompileModel(Foundation.NSUrl,Foundation.NSError@)" />
<MemberSignature Language="F#" Value="static member CompileModel : Foundation.NSUrl * -> Foundation.NSUrl" Usage="CoreML.MLModel.CompileModel (modelUrl, error)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("compileModelAtURL:error:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSUrl</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="modelUrl" Type="Foundation.NSUrl" />
<Parameter Name="error" Type="Foundation.NSError" RefType="out" />
</Parameters>
<Docs>
<param name="modelUrl">A URL to a model to compile.</param>
<param name="error">On failure, the error that occurred.</param>
<summary>Compiles the model at <paramref name="modelUrl" />.</summary>
<returns>To be added.</returns>
<remarks>
<para>This is an expensive function. Execution time varies depending on the model size, but developers should run this method on a background thread and take steps to avoid the need to run this method repeatedly.</para>
<para>The following example shows how a developer can download a model, compile it, and move the compiled model into the app's permanent storage:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
NSUrl CompileModel(string modelName)
{
var downloadedFile = modelName + ".mlmodel";
var fileUrl = NSUrl.FromFilename(downloadedFile);
NSError err = null;
var compiledUrl = MLModel.CompileModel(fileUrl, out err);
if (err != null)
{
throw new Exception(err.ToString());
}
return compiledUrl;
}
NSUrl StoreModel(NSUrl sourceUrl)
{
var fileManager = NSFileManager.DefaultManager;
NSError err = null;
var appSupportDirectory = fileManager.GetUrl(NSSearchPathDirectory.ApplicationSupportDirectory, NSSearchPathDomain.User, sourceUrl, true, out err);
if (err != null)
{
throw new Exception(err.ToString());
}
// Create a permanent URL in appSupportDirectory
var destinationUrl = appSupportDirectory.Append(sourceUrl.LastPathComponent, true);
NSUrl resultingUrl = null;
var destPath = destinationUrl.AbsoluteString;
// If the compiled model directory exists, replace it
if (System.IO.Directory.Exists(destinationUrl.Path))
{
fileManager.Replace(destinationUrl, sourceUrl, null, NSFileManagerItemReplacementOptions.None, out resultingUrl, out err);
}
else
{
fileManager.Copy(sourceUrl, destinationUrl, out err);
}
if (err != null)
{
throw new Exception(err.ToString());
}
return resultingUrl;
}
private async Task<NSUrl> DownloadAndStoryCoreMLModelAsync()
{
var modelName = "SomeModel";
var sourceUrl ="https://Contoso.org/SomeModel.mlmodel";
using (var wc = new WebClient())
{
await wc.DownloadFileTaskAsync(sourceUrl, modelName +".mlmodel");
var compiledModelPath = CompileModel(modelName);
var finalPath = StoreModel(compiledModelPath);
return finalPath;
}
}
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName="Configuration">
<MemberSignature Language="C#" Value="public virtual CoreML.MLModelConfiguration Configuration { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class CoreML.MLModelConfiguration Configuration" />
<MemberSignature Language="DocId" Value="P:CoreML.MLModel.Configuration" />
<MemberSignature Language="F#" Value="member this.Configuration : CoreML.MLModelConfiguration" Usage="CoreML.MLModel.Configuration" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("configuration")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>CoreML.MLModelConfiguration</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Create">
<MemberSignature Language="C#" Value="public static CoreML.MLModel Create (Foundation.NSUrl url, out Foundation.NSError error);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class CoreML.MLModel Create(class Foundation.NSUrl url, [out] class Foundation.NSError& error) cil managed" />
<MemberSignature Language="DocId" Value="M:CoreML.MLModel.Create(Foundation.NSUrl,Foundation.NSError@)" />
<MemberSignature Language="F#" Value="static member Create : Foundation.NSUrl * -> CoreML.MLModel" Usage="CoreML.MLModel.Create (url, error)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("modelWithContentsOfURL:error:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>CoreML.MLModel</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="url" Type="Foundation.NSUrl" />
<Parameter Name="error" Type="Foundation.NSError" RefType="out" />
</Parameters>
<Docs>
<param name="url">The URL of the model resource.</param>
<param name="error">On failure, the error that occurred.</param>
<summary>Creates and returns a CoreML model with the data that is stored at the specified <paramref name="url" />, reporting any errors in <paramref name="error" />.</summary>
<returns>The new model, or <see langword="null" /> if an error occurred.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Create">
<MemberSignature Language="C#" Value="public static CoreML.MLModel Create (Foundation.NSUrl url, CoreML.MLModelConfiguration configuration, out Foundation.NSError error);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class CoreML.MLModel Create(class Foundation.NSUrl url, class CoreML.MLModelConfiguration configuration, [out] class Foundation.NSError& error) cil managed" />
<MemberSignature Language="DocId" Value="M:CoreML.MLModel.Create(Foundation.NSUrl,CoreML.MLModelConfiguration,Foundation.NSError@)" />
<MemberSignature Language="F#" Value="static member Create : Foundation.NSUrl * CoreML.MLModelConfiguration * -> CoreML.MLModel" Usage="CoreML.MLModel.Create (url, configuration, error)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("modelWithContentsOfURL:configuration:error:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>CoreML.MLModel</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="url" Type="Foundation.NSUrl" />
<Parameter Name="configuration" Type="CoreML.MLModelConfiguration" />
<Parameter Name="error" Type="Foundation.NSError" RefType="out" />
</Parameters>
<Docs>
<param name="url">To be added.</param>
<param name="configuration">To be added.</param>
<param name="error">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetPrediction">
<MemberSignature Language="C#" Value="public virtual CoreML.IMLFeatureProvider GetPrediction (CoreML.IMLFeatureProvider input, out Foundation.NSError error);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class CoreML.IMLFeatureProvider GetPrediction(class CoreML.IMLFeatureProvider input, [out] class Foundation.NSError& error) cil managed" />
<MemberSignature Language="DocId" Value="M:CoreML.MLModel.GetPrediction(CoreML.IMLFeatureProvider,Foundation.NSError@)" />
<MemberSignature Language="F#" Value="abstract member GetPrediction : CoreML.IMLFeatureProvider * -> CoreML.IMLFeatureProvider
override this.GetPrediction : CoreML.IMLFeatureProvider * -> CoreML.IMLFeatureProvider" Usage="mLModel.GetPrediction (input, error)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("predictionFromFeatures:error:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>CoreML.IMLFeatureProvider</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="input" Type="CoreML.IMLFeatureProvider" />
<Parameter Name="error" Type="Foundation.NSError" RefType="out" />
</Parameters>
<Docs>
<param name="input">The feature from which to make a prediction.</param>
<param name="error">On failure, the error that occurred.</param>
<summary>Makes a prediction on <paramref name="input" />.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetPrediction">
<MemberSignature Language="C#" Value="public virtual CoreML.IMLFeatureProvider GetPrediction (CoreML.IMLFeatureProvider input, CoreML.MLPredictionOptions options, out Foundation.NSError error);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class CoreML.IMLFeatureProvider GetPrediction(class CoreML.IMLFeatureProvider input, class CoreML.MLPredictionOptions options, [out] class Foundation.NSError& error) cil managed" />
<MemberSignature Language="DocId" Value="M:CoreML.MLModel.GetPrediction(CoreML.IMLFeatureProvider,CoreML.MLPredictionOptions,Foundation.NSError@)" />
<MemberSignature Language="F#" Value="abstract member GetPrediction : CoreML.IMLFeatureProvider * CoreML.MLPredictionOptions * -> CoreML.IMLFeatureProvider
override this.GetPrediction : CoreML.IMLFeatureProvider * CoreML.MLPredictionOptions * -> CoreML.IMLFeatureProvider" Usage="mLModel.GetPrediction (input, options, error)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("predictionFromFeatures:options:error:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>CoreML.IMLFeatureProvider</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="input" Type="CoreML.IMLFeatureProvider" />
<Parameter Name="options" Type="CoreML.MLPredictionOptions" />
<Parameter Name="error" Type="Foundation.NSError" RefType="out" />
</Parameters>
<Docs>
<param name="input">The feature from which to make a prediction.</param>
<param name="options">Options about resources to use for the prediction.</param>
<param name="error">On failure, the error that occurred.</param>
<summary>Makes a prediction on <paramref name="input" />.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetPredictions">
<MemberSignature Language="C#" Value="public virtual CoreML.IMLBatchProvider GetPredictions (CoreML.IMLBatchProvider inputBatch, CoreML.MLPredictionOptions options, out Foundation.NSError error);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class CoreML.IMLBatchProvider GetPredictions(class CoreML.IMLBatchProvider inputBatch, class CoreML.MLPredictionOptions options, [out] class Foundation.NSError& error) cil managed" />
<MemberSignature Language="DocId" Value="M:CoreML.MLModel.GetPredictions(CoreML.IMLBatchProvider,CoreML.MLPredictionOptions,Foundation.NSError@)" />
<MemberSignature Language="F#" Value="abstract member GetPredictions : CoreML.IMLBatchProvider * CoreML.MLPredictionOptions * -> CoreML.IMLBatchProvider
override this.GetPredictions : CoreML.IMLBatchProvider * CoreML.MLPredictionOptions * -> CoreML.IMLBatchProvider" Usage="mLModel.GetPredictions (inputBatch, options, error)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("predictionsFromBatch:options:error:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>CoreML.IMLBatchProvider</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="inputBatch" Type="CoreML.IMLBatchProvider" />
<Parameter Name="options" Type="CoreML.MLPredictionOptions" />
<Parameter Name="error" Type="Foundation.NSError" RefType="out" />
</Parameters>
<Docs>
<param name="inputBatch">To be added.</param>
<param name="options">To be added.</param>
<param name="error">To be added.</param>
<summary>Gets the <see cref="T:CoreML.IMLBatchProvider" /> describing the outputs for the <param name="inputBatch" /> and <param name="options" />.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ModelDescription">
<MemberSignature Language="C#" Value="public virtual CoreML.MLModelDescription ModelDescription { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class CoreML.MLModelDescription ModelDescription" />
<MemberSignature Language="DocId" Value="P:CoreML.MLModel.ModelDescription" />
<MemberSignature Language="F#" Value="member this.ModelDescription : CoreML.MLModelDescription" Usage="CoreML.MLModel.ModelDescription" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("modelDescription")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>CoreML.MLModelDescription</ReturnType>
</ReturnValue>
<Docs>
<summary>A developer-meaningful description of this <see cref="T:CoreML.MLModel" />.</summary>
<value>To be added.</value>
<remarks>A properly-specified <see cref="T:CoreML.MLModelDescription" /> contains all the detail necessary for a user of the model to properly create inputs and interpret outputs. For instance, image resolution, column- vs. row-major matrix forms, etc.</remarks>
</Docs>
</Member>
</Members>
</Type>