MapVariableDescriptorPreview Classe

Definição

Preterido. Representa as informações do descritor de variável de mapa.

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
Herança
Object Platform::Object IInspectable MapVariableDescriptorPreview
Atributos
Implementações

Requisitos do Windows

Família de dispositivos
Windows 10, version 1803 (introduzida na 10.0.17134.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (introduzida na v1.0)

Exemplos

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

 }

Comentários

Aviso

Essa é uma API preterida. Use o namespace Windows.AI.MachineLearning .

Propriedades

Description

Preterido. Obtém a variável de mapa de descrição.

Fields

Preterido. Obtém o tipo de dados do campo da variável de mapa.

IsRequired

Preterido. Se for true, você deverá associar um valor a esse recurso antes de avaliar LearningModelSession.

KeyKind

Preterido. Obtém o tipo de dados da chave para a variável de mapa.

ModelFeatureKind

Preterido. Obtém o tipo de dados da variável.

Name

Preterido. Obtém o nome da variável de mapa.

ValidIntegerKeys

Preterido. Obtém as chaves de inteiro válidas para o descritor de variável de mapa.

ValidStringKeys

Preterido. Obtém as chaves de cadeia de caracteres válidas do descritor de variável de mapa.

Aplica-se a