Platforms to show: All Mac Windows Linux Cross-Platform

MLSequenceMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CoreML MBS Mac64bit Plugin 20.0 ✅ Yes ❌ No ❌ No ✅ Yes All
A sequence of data used as a feature input or feature output for a model.
Example
// pass a sequence of words as input feature to a Core ML model
Var words() As String = Array("the", "quick", "brown", "fox")
Var sequence As MLSequenceMBS = MLSequenceMBS.sequenceWithStringArray(words)
Var feature As MLFeatureValueMBS = MLFeatureValueMBS.featureValueWithSequence(sequence)

MessageBox sequence.stringValues.Count.ToString + " words in the sequence"

Data from sensors (a time series) or language (a series of words) are often manipulated as sequences by machine learning models. These sequences can have variable lengths depending on their context. MLSequenceMBS explicitly encodes a sequence of strings or integers to support a series of data points as a single input.

If you need to process a sequence of values individually, one at a time, see Making Predictions with a Sequence of Inputs for details.
https://developer.apple.com/documentation/coreml/core_ml_api/making_predictions_with_a_sequence_of_inputs

Available in MacOS 10.14 or newer.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

This class has no subclasses.

Blog Entries

Release notes

Some methods using this class:

Some properties using this class:

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS Mac64bit Plugin.


MLSequenceConstraintMBS   -   MLTaskMBS


The biggest plugin in space...