LearningModelFeatureKindPreview LearningModelFeatureKindPreview LearningModelFeatureKindPreview LearningModelFeatureKindPreview LearningModelFeatureKindPreview Enum


Deprecated. 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, version 1809 (introduced v10.0.17763.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (introduced v2)


Image Image Image Image Image 4

The feature type is an Image.

Map Map Map Map Map 3

The feature type is a Map.

Sequence Sequence Sequence Sequence Sequence 2

The feature type is a Sequence.

Tensor Tensor Tensor Tensor Tensor 1

The feature type is a Tensor.

Undefined Undefined Undefined Undefined Undefined 0

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;





This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.