-api-id | -api-type |
---|---|
P:Windows.AI.MachineLearning.Preview.ILearningModelVariableDescriptorPreview.Description |
winrt property |
Deprecated. Gets the description of the variable.
The description of the variable.
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 an image
ILearningModelVariableDescriptorPreview inputImageFeatureDescription = model.Description.InputFeatures.FirstOrDefault(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Image);
ImageVariableDescriptorPreview imageDescriptor = (ImageVariableDescriptorPreview)inputImageFeatureDescription;
//Output input feature description
Console.WriteLine($"Input Feature Name: {imageDescriptor.Name}. Feature Descption: {imageDescriptor.Description}");
}