다음을 통해 공유


LearningModelDescriptionPreview 클래스

정의

더 이상 사용되지 않습니다. 제공된 모델의 메타데이터 및 속성 설명을 나타냅니다.

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
상속
Object Platform::Object IInspectable LearningModelDescriptionPreview
특성

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1803 (10.0.17134.0에서 도입되었습니다.)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (v1.0에서 도입되었습니다.)

예제

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");
    }
}

설명

경고

더 이상 사용되지 않는 API입니다. 대신 Windows.AI.MachineLearning 네임스페이스를 사용하세요.

속성

Author

더 이상 사용되지 않습니다. 모델에서 작성자 정보를 가져옵니다.

Description

더 이상 사용되지 않습니다. 모델에 대한 사용자 지정 설명을 가져옵니다.

Domain

더 이상 사용되지 않습니다. 모델의 도메인 정보를 가져옵니다.

InputFeatures

더 이상 사용되지 않습니다. 모델에 대한 입력 설명을 가져옵니다.

Metadata

더 이상 사용되지 않습니다. 모델에서 메타데이터를 가져옵니다.

Name

더 이상 사용되지 않습니다. 모델의 이름을 가져옵니다.

OutputFeatures

더 이상 사용되지 않습니다. 모델의 출력 설명을 가져옵니다.

Version

더 이상 사용되지 않습니다. 모델의 버전 정보를 가져옵니다.

적용 대상