LearningModelDescriptionPreview.InputFeatures Property

Definition

Deprecated. Gets the input descriptions for the model.

public:
 property IIterable<ILearningModelVariableDescriptorPreview ^> ^ InputFeatures { IIterable<ILearningModelVariableDescriptorPreview ^> ^ get(); };
IIterable<ILearningModelVariableDescriptorPreview> InputFeatures();
/// [get: Windows.Foundation.Metadata.Deprecated("Use ILearningModel instead of ILearningModelDescriptionPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
IIterable<ILearningModelVariableDescriptorPreview> InputFeatures();
public IEnumerable<ILearningModelVariableDescriptorPreview> InputFeatures { get; }
public IEnumerable<ILearningModelVariableDescriptorPreview> InputFeatures { [Windows.Foundation.Metadata.Deprecated("Use ILearningModel instead of ILearningModelDescriptionPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")] get; }
var iIterable = learningModelDescriptionPreview.inputFeatures;
Public ReadOnly Property InputFeatures As IEnumerable(Of ILearningModelVariableDescriptorPreview)

Property Value

The input descriptions for the model, keyed by name of input.

Attributes

Examples

public void Evaluator()
{
    var modelFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("model.onnx");
    LearningModelPreview model = await LearningModelPreview.LoadModelFromStorageFileAsync(modelFile);

	// Retrieve the first input feature which is an image
    ILearningModelVariableDescriptorPreview inputImageFeatureDescription = model.Description.InputFeatures.First(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Image);

 }

Remarks

Warning

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

Applies to