Compartir a través de


LearningModelPreview.Description Propiedad

Definición

En desuso. Obtiene los metadatos descriptivos para el modelo de aprendizaje automático entrenado.

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

Valor de propiedad

Metadatos descriptivos para el modelo de Machine Learning.

Atributos

Ejemplos

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)
    {
		...
    }
}

Comentarios

Advertencia

Se trata de una API en desuso. Use el espacio de nombres Windows.AI.MachineLearning en su lugar.

Se aplica a