Share via


LearningModelFeatureKind Enum

Definition

Important

For the latest documentation about Windows Machine Learning, see What is Windows ML. That documentation describes APIs that are in the Microsoft.Windows.AI.MachineLearning namespace, which ships in the Windows App SDK. Those APIs supersede the ones documented here, which are in the Windows.AI.MachineLearning namespace, and were shipped in 2018.

Input and output feature kinds for a machine learning model.

public enum class LearningModelFeatureKind
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
enum class LearningModelFeatureKind
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
public enum LearningModelFeatureKind
var value = Windows.AI.MachineLearning.LearningModelFeatureKind.tensor
Public Enum LearningModelFeatureKind
Inheritance
LearningModelFeatureKind
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.AI.MachineLearning.MachineLearningContract (introduced in v1.0)

Fields

Name Value Description
Tensor 0

The feature is a tensor, so use TensorFeatureDescriptor.

Sequence 1

The feature is a sequence, so use SequenceFeatureDescriptor.

Map 2

The feature is a map, so use MapFeatureDescriptor.

Image 3

The feature is an image, so use ImageFeatureDescriptor.

Remarks

Each of these maps to a corresponding feature descriptor that can be used to learn more about how to pass the feature into and out of the model.

Windows Server

To use this API on Windows Server, you must use Windows Server 2019 with Desktop Experience.

Thread safety

This API is thread-safe.

Applies to

See also