Bagikan melalui


LearningModelDescriptionPreview Kelas

Definisi

Dihentikan. Mewakili metadata dan deskripsi properti untuk model yang disediakan.

public ref class LearningModelDescriptionPreview sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
class LearningModelDescriptionPreview final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("Use LearningModel instead of LearningModelDescriptionPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
class LearningModelDescriptionPreview final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
public sealed class LearningModelDescriptionPreview
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("Use LearningModel instead of LearningModelDescriptionPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public sealed class LearningModelDescriptionPreview
Public NotInheritable Class LearningModelDescriptionPreview
Warisan
Object Platform::Object IInspectable LearningModelDescriptionPreview
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10, version 1803 (diperkenalkan dalam 10.0.17134.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (diperkenalkan dalam v1.0)

Contoh

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

    // Our evaluator only handles version 1 of the model
    if (model.Description.Version != 1)
    {
        throw new Exception("Invalid model version");
    }
}

Keterangan

Peringatan

Ini adalah API yang tidak digunakan lagi. Silakan gunakan namespace Windows.AI.MachineLearning sebagai gantinya.

Properti

Author

Dihentikan. Mendapatkan informasi penulis dari model.

Description

Dihentikan. Mendapatkan deskripsi kustom model.

Domain

Dihentikan. Mendapatkan informasi domain untuk model.

InputFeatures

Dihentikan. Mendapatkan deskripsi input untuk model.

Metadata

Dihentikan. Mendapatkan metadata dari model.

Name

Dihentikan. Mendapatkan nama model.

OutputFeatures

Dihentikan. Mendapatkan deskripsi output model.

Version

Dihentikan. Mendapatkan informasi versi model.

Berlaku untuk