Bagikan melalui


LearningModelFeatureKindPreview Enum

Definisi

Dihentikan. Menentukan daftar jenis data untuk fitur model

public enum class LearningModelFeatureKindPreview
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
enum class LearningModelFeatureKindPreview
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("Use LearningModelFeatureKind instead of LearningModelFeatureKindPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
enum class LearningModelFeatureKindPreview
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
public enum LearningModelFeatureKindPreview
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("Use LearningModelFeatureKind instead of LearningModelFeatureKindPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public enum LearningModelFeatureKindPreview
var value = Windows.AI.MachineLearning.Preview.LearningModelFeatureKindPreview.undefined
Public Enum LearningModelFeatureKindPreview
Warisan
LearningModelFeatureKindPreview
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10, version 1803 (diperkenalkan dalam 10.0.17134.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (diperkenalkan dalam v1.0)

Bidang

Image 4

Jenis fiturnya adalah Gambar.

Map 3

Jenis fitur adalah Peta.

Sequence 2

Jenis fitur adalah Urutan.

Tensor 1

Jenis fiturnya adalah Tensor.

Undefined 0

Jenis fitur tidak terdefinis.

Contoh

public void Evaluator(LearningModelPreview model)
{
	// Retrieve the first input feature which is an image
    ILearningModelVariableDescriptorPreview inputImageFeatureDescription = model.Description.InputFeatures.FirstOrDefault(feature=>feature.ModelFeatureKind == LearningModelFeatureKindPreview.Image);

    ImageVariableDescriptorPreview imageDescriptor = (ImageVariableDescriptorPreview)inputImageFeatureDescription;

	...

 }

Keterangan

Peringatan

Ini adalah API yang tidak digunakan lagi. Silakan gunakan namespace Windows.AI.MachineLearning sebagai gantinya.

Berlaku untuk