Share via


MapVariableDescriptorPreview Clase

Definición

En desuso. Representa la información del descriptor de variable 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
Herencia
Object Platform::Object IInspectable MapVariableDescriptorPreview
Atributos
Implementaciones

Requisitos de Windows

Familia de dispositivos
Windows 10, version 1803 (se introdujo en la versión 10.0.17134.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (se introdujo en la versión v1.0)

Ejemplos

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

 }

Comentarios

Advertencia

Se trata de una API en desuso. Use el espacio de nombres Windows.AI.MachineLearning en su lugar.

Propiedades

Description

En desuso. Obtiene la variable de asignación de descripción.

Fields

En desuso. Obtiene el tipo de datos del campo de la variable de mapa.

IsRequired

En desuso. Si es true, debe enlazar un valor a esta característica antes de evaluar LearningModelSession.

KeyKind

En desuso. Obtiene el tipo de datos de la clave para la variable de asignación.

ModelFeatureKind

En desuso. Obtiene el tipo de datos de la variable.

Name

En desuso. Obtiene el nombre de la variable de mapa.

ValidIntegerKeys

En desuso. Obtiene las claves de entero válidas para el descriptor de variable de mapa.

ValidStringKeys

En desuso. Obtiene las claves de cadena válidas del descriptor de variable de mapa.

Se aplica a