Partager via


MapVariableDescriptorPreview Classe

Définition

Action déconseillée. Représente les informations de descripteur de variable de mappage.

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
Héritage
Object Platform::Object IInspectable MapVariableDescriptorPreview
Attributs
Implémente

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 1803 (introduit dans 10.0.17134.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (introduit dans v1.0)

Exemples

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

 }

Remarques

Avertissement

Il s’agit d’une API déconseillée. Utilisez plutôt l’espace de noms Windows.AI.MachineLearning .

Propriétés

Description

Action déconseillée. Obtient la variable de mappage de description.

Fields

Action déconseillée. Obtient le type de données du champ de la variable de carte.

IsRequired

Action déconseillée. Si la valeur est true, vous devez lier une valeur à cette fonctionnalité avant d’évaluer learningModelSession.

KeyKind

Action déconseillée. Obtient le type de données de la clé pour la variable de carte.

ModelFeatureKind

Action déconseillée. Obtient le type de données de la variable.

Name

Action déconseillée. Obtient le nom de la variable de carte.

ValidIntegerKeys

Action déconseillée. Obtient les clés entières valides pour le descripteur de variable de mappage.

ValidStringKeys

Action déconseillée. Obtient les clés de chaîne valides du descripteur de variable de mappage.

S’applique à