LearningModelPreview 클래스

정의

더 이상 사용되지 않습니다. 기계 학습 모델을 나타냅니다.

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

Windows 요구 사항

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

예제

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

    ...
}

설명

경고

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

속성

Description

되지 않는. 학습된 기계 학습 모델에 대한 설명이 포함된 메타데이터를 가져옵니다.

InferencingOptions

되지 않는. 모델 평가에 대한 추론 옵션을 가져오거나 설정합니다.

메서드

EvaluateAsync(LearningModelBindingPreview, String)

되지 않는. 바인딩 에 이미 바인딩된 기능 값을 사용하여 기계 학습 모델을 비동기적으로 평가합니다.

EvaluateFeaturesAsync(IMap<String,Object>, String)

되지 않는. 이름 변수 인스턴스를 모델의 입력 및 출력으로 비동기적으로 평가합니다.

LoadModelFromStorageFileAsync(IStorageFile)

되지 않는. 파일 스토리지에서 모델을 비동기적으로 로드합니다.

LoadModelFromStreamAsync(IRandomAccessStreamReference)

되지 않는. 제공된 스트림에서 모델을 비동기적으로 로드합니다.

적용 대상