Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.22 KB

ilearningmodelvariabledescriptorpreview_description.md

File metadata and controls

37 lines (27 loc) · 1.22 KB
-api-id -api-type
P:Windows.AI.MachineLearning.Preview.ILearningModelVariableDescriptorPreview.Description
winrt property

Windows.AI.MachineLearning.Preview.ILearningModelVariableDescriptorPreview.Description

-description

Deprecated. Gets the description of the variable.

-property-value

The description of the variable.

-remarks

Warning

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

-see-also

-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;

	//Output input feature description
    Console.WriteLine($"Input Feature Name: {imageDescriptor.Name}. Feature Descption: {imageDescriptor.Description}");
 }