LearningModelFeatureKindPreview LearningModelFeatureKindPreview LearningModelFeatureKindPreview LearningModelFeatureKindPreview LearningModelFeatureKindPreview Enum

Definition

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;
Attributes
Windows 10 requirements
Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (introduced v1)

Fields

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.

Examples

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;

    ...

 }

Remarks

Warning

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