LearningModelPreview.Description Property

Definition

Deprecated. Gets the descriptive metadata for the trained machine learning model.

public:
 property LearningModelDescriptionPreview ^ Description { LearningModelDescriptionPreview ^ get(); };
LearningModelDescriptionPreview Description();
/// [get: Windows.Foundation.Metadata.Deprecated("Use ILearningModel instead of ILearningModelPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
LearningModelDescriptionPreview Description();
public LearningModelDescriptionPreview Description { get; }
public LearningModelDescriptionPreview Description { [Windows.Foundation.Metadata.Deprecated("Use ILearningModel instead of ILearningModelPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")] get; }
var learningModelDescriptionPreview = learningModelPreview.description;
Public ReadOnly Property Description As LearningModelDescriptionPreview

Property Value

The descriptive metadata for the machine learning model.

Attributes

Examples

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

    // Confirm the version of the model is 1
    if (model.Description.Version != 1)
    {
		...
    }
}

Remarks

Warning

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

Applies to