LearningModelFeatureKindPreview LearningModelFeatureKindPreview LearningModelFeatureKindPreview LearningModelFeatureKindPreview LearningModelFeatureKindPreview Enum


Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Defines the list of data types for a model feature

public : enum class LearningModelFeatureKindPreview
enum class winrt::Windows::AI::MachineLearning::Preview::LearningModelFeatureKindPreview : int32_t
public enum LearningModelFeatureKindPreview
Public Enum LearningModelFeatureKindPreview
var value = Windows.AI.MachineLearning.Preview.LearningModelFeatureKindPreview.image;
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17110.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (introduced v1)


Image Image Image Image Image

Prerelease. The feature type is an Image.

Map Map Map Map Map

Prerelease. The feature type is a Map.

Sequence Sequence Sequence Sequence Sequence

Prerelease. The feature type is a Sequence.

Tensor Tensor Tensor Tensor Tensor

Prerelease. The feature type is a Tensor.

Undefined Undefined Undefined Undefined Undefined

Prerelease. The feature type is Undefined.


public void Evaluator(LearningModelPreview model)
    // Retrieve the first input feature which is an image
    ILearningModelVariableDescriptorPreview inputImageFeatureDescription = model.Description.InputFeatures.FirstOrDefault(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Image);

    ImageVariableDescriptorPreview imageDescriptor = (ImageVariableDescriptorPreview)inputImageFeatureDescription;