-api-id | -api-type |
---|---|
P:Windows.AI.MachineLearning.Preview.MapVariableDescriptorPreview.Name |
winrt property |
Deprecated. Gets the name of the map variable.
The name of the map variable. This must be unique across all variables in the model.
Warning
This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.
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;
// Output the description of the map variable
Console.WriteLine($"Input Feature Name: {MapDescriptor.Name}. Description: {MapDescriptor.Description}.");
}