LearningModelPreview.Description LearningModelPreview.Description LearningModelPreview.Description LearningModelPreview.Description LearningModelPreview.Description Property

Definition

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

public : LearningModelDescriptionPreview Description { get; }
LearningModelDescriptionPreview Description();
public LearningModelDescriptionPreview Description { get; }
Public ReadOnly Property Description As LearningModelDescriptionPreview
var learningModelDescriptionPreview = learningModelPreview.description;

Property Value

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.