MapVariableDescriptorPreview Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deprecated. Represents the map variable descriptor information.
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
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (introduced in v1.0)
|
Examples
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.");
}
}
Remarks
Warning
This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.
Properties
Description |
Deprecated. Gets the description map variable. |
Fields |
Deprecated. Gets the data type of the field of the map variable. |
IsRequired |
Deprecated. If true, you must bind a value to this feature before evaluating the LearningModelSession. |
KeyKind |
Deprecated. Gets the data type of the key for the map variable. |
ModelFeatureKind |
Deprecated. Gets the data type of the variable. |
Name |
Deprecated. Gets the name of the map variable. |
ValidIntegerKeys |
Deprecated. Gets the valid integer keys for the map variable descriptor. |
ValidStringKeys |
Deprecated. Gets the valid string keys of the map variable descriptor. |