MapVariableDescriptorPreview MapVariableDescriptorPreview MapVariableDescriptorPreview MapVariableDescriptorPreview MapVariableDescriptorPreview Class

Definition

Deprecated. Represents the map variable descriptor information.

public : sealed class MapVariableDescriptorPreview : ILearningModelVariableDescriptorPreview, IMapVariableDescriptorPreview
struct winrt::Windows::AI::MachineLearning::Preview::MapVariableDescriptorPreview : ILearningModelVariableDescriptorPreview, IMapVariableDescriptorPreview
public sealed class MapVariableDescriptorPreview : ILearningModelVariableDescriptorPreview, IMapVariableDescriptorPreview
Public NotInheritable Class MapVariableDescriptorPreview Implements ILearningModelVariableDescriptorPreview, IMapVariableDescriptorPreview
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (introduced v1)

Examples

public void Evaluator(LearningModelPreview model)
{
    // Retrieve the first input feature which is a map
    ILearningModelVariableDescriptorPreview inputMapFeatureDescription = model.Description.InputFeatures.First(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Map);

    MapVariableDescriptorPreview MapDescriptor = (MapVariableDescriptorPreview)inputMapFeatureDescription;

    // Ensure the input feature is of type map
    if (MapDescriptor.ModelFeatureKind != LearningModelFeatureKindPreview.Map)
    {
        Console.WriteLine($"Input Feature Name: {imageDescriptor.Name}. Not a map feature type.");
    }

 }

Properties

Description Description Description Description Description

Deprecated. Gets the description map variable.

Fields Fields Fields Fields Fields

Deprecated. Gets the data type of the field of the map variable.

IsRequired IsRequired IsRequired IsRequired IsRequired
KeyKind KeyKind KeyKind KeyKind KeyKind

Deprecated. Gets the data type of the key for the map variable.

ModelFeatureKind ModelFeatureKind ModelFeatureKind ModelFeatureKind ModelFeatureKind

Deprecated. Gets the data type of the variable.

Name Name Name Name Name

Deprecated. Gets the name of the map variable.

ValidIntegerKeys ValidIntegerKeys ValidIntegerKeys ValidIntegerKeys ValidIntegerKeys
ValidStringKeys ValidStringKeys ValidStringKeys ValidStringKeys ValidStringKeys

See also

  • [!Warning] > This is a deprecated API. Please use the N:Windows.AI.MachineLearning namespace instead.