MapVariableDescriptorPreview 클래스

정의

더 이상 사용되지 않습니다. 지도 변수 설명자 정보를 나타냅니다.

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

Windows 요구 사항

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

예제

public void Evaluator(LearningModelPreview model)
{
    // Retrieve the first input feature which is a map
    ILearningModelVariableDescriptorPreview inputMapFeatureDescription = model.Description.InputFeatures.First(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Map);

    MapVariableDescriptorPreview MapDescriptor = (MapVariableDescriptorPreview)inputMapFeatureDescription;

    // Ensure the input feature is of type map
    if (MapDescriptor.ModelFeatureKind != LearningModelFeatureKindPreview.Map)
    {
        Console.WriteLine($"Input Feature Name: {imageDescriptor.Name}. Not a map feature type.");
    }

 }

설명

경고

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

속성

Description

되지 않는. 설명 맵 변수를 가져옵니다.

Fields

되지 않는. 지도 변수 필드의 데이터 형식을 가져옵니다.

IsRequired

되지 않는. true이면 LearningModelSession 을 평가하기 전에 이 기능에 값을 바인딩해야 합니다.

KeyKind

되지 않는. 지도 변수에 대한 키의 데이터 형식을 가져옵니다.

ModelFeatureKind

되지 않는. 변수의 데이터 형식을 가져옵니다.

Name

되지 않는. 지도 변수의 이름을 가져옵니다.

ValidIntegerKeys

되지 않는. 지도 변수 설명자에 대한 유효한 정수 키를 가져옵니다.

ValidStringKeys

되지 않는. 지도 변수 설명자의 유효한 문자열 키를 가져옵니다.

적용 대상