Platforms to show: All Mac Windows Linux Cross-Platform
MLFeatureValueMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreML | MBS Mac64bit Plugin | 17.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
MLFeatureValue does not support type conversion in its accessor properties.
It can also have a missing or undefined value of a well defined type.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 15 properties
- property CIImageValue as Variant
- property dictionaryValue as Dictionary
- property doubleValue as Double
- property Handle as Integer
- property imageBufferValue as Integer
- property int64Value as Int64
- property multiArrayValue as MLMultiArrayMBS
- property PictureHeight as Integer
- property PictureValue as Picture
- property PictureWidth as Integer
- property sequenceValue as MLSequenceMBS
- property stringValue as String
- property Type as Integer
- property Undefined as Boolean
- property value as Variant
- 3 methods
- method Constructor Private
- method copy as MLFeatureValueMBS
- method isEqualToFeatureValue(value as MLFeatureValueMBS) as Boolean
- 15 shared methods
- shared method featureValueWithCGImage(image as variant, orientation as integer = -1, constraint as MLImageConstraintMBS, options as Dictionary = nil, byref error as NSErrorMBS) as MLFeatureValueMBS
- shared method featureValueWithCGImage(image as variant, orientation as integer = -1, pixelsWide as Integer, pixelsHigh as Integer, pixelFormatType as String, options as Dictionary = nil, byref error as NSErrorMBS) as MLFeatureValueMBS
- shared method featureValueWithDictionary(value as Dictionary, byref error as NSErrorMBS) as MLFeatureValueMBS
- shared method featureValueWithDouble(value as double) as MLFeatureValueMBS
- shared method featureValueWithImageFile(File as FolderItem, orientation as integer = -1, constraint as MLImageConstraintMBS, options as Dictionary = nil, byref error as NSErrorMBS) as MLFeatureValueMBS
- shared method featureValueWithImageFile(File as FolderItem, orientation as integer = -1, pixelsWide as Integer, pixelsHigh as Integer, pixelFormatType as String, options as Dictionary = nil, byref error as NSErrorMBS) as MLFeatureValueMBS
- shared method featureValueWithInt64(value as Int64) as MLFeatureValueMBS
- shared method featureValueWithMultiArray(value as MLMultiArrayMBS) as MLFeatureValueMBS
- shared method featureValueWithPicture(value as Picture) as MLFeatureValueMBS
- shared method featureValueWithPixelBuffer(Handle as Integer) as MLFeatureValueMBS
- shared method featureValueWithSequence(sequence as MLSequenceMBS) as MLFeatureValueMBS
- shared method featureValueWithString(value as string) as MLFeatureValueMBS
- shared method MLFeatureValueImageOptionCropAndScale as String
- shared method MLFeatureValueImageOptionCropRect as String
- shared method undefinedFeatureValueWithType(type as Integer) as MLFeatureValueMBS
- 8 constants
Value Types
Constant | Value | Description |
---|---|---|
TypeDictionary | 6 |
Numerically weighted hashable objects (e.g. word counts) |
TypeDouble | 2 |
Continuous values |
TypeImage | 4 |
CVPixelBufferRef or converted by plugin to Xojo picture. |
TypeInt64 | 1 |
Discrete values, sometimes used to hold numeric encoding of a categorical value |
TypeInvalid | 0 |
Undefined type. |
TypeMultiArray | 5 |
An array of values. |
TypeSequence | 7 |
The possible types for feature values, input features, and output features. |
TypeString | 3 |
Text or categorical strings |
This class has no sub classes.
Some methods using this class:
- MLDictionaryFeatureProviderMBS.objectForKeyedSubscript(script as string) as MLFeatureValueMBS
- MLFeatureDescriptionMBS.isAllowedValue(value as MLFeatureValueMBS) as boolean
- MLFeatureProviderMBS.featureValueForName(featureName as String) as MLFeatureValueMBS
Some examples using this class:
Blog Entries
Release notes
- Version 21.5
- Changed MLFeatureValueMBS.featureValueWithPicture to convert picture to bitmap if needed.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
MLFeatureProviderMBS - MLImageConstraintMBS