MapVariableDescriptorPreview Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
- 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. |