LearningModelPreview Класс

Определение

Не рекомендуется. Представляет модель машинного обучения.

public ref class LearningModelPreview sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
class LearningModelPreview final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("Use LearningModel instead of LearningModelPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
class LearningModelPreview final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
public sealed class LearningModelPreview
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("Use LearningModel instead of LearningModelPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public sealed class LearningModelPreview
Public NotInheritable Class LearningModelPreview
Наследование
Object Platform::Object IInspectable LearningModelPreview
Атрибуты

Требования к Windows

Семейство устройств
Windows 10, version 1803 (появилось в 10.0.17134.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (появилось в v1.0)

Примеры

public async Task LoadModel()
{
    var modelFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("model.onnx");
    LearningModelPreview model = await LearningModelPreview.LoadModelFromStorageFileAsync(modelFile);

	...
}

Комментарии

Предупреждение

Это нерекомендуемый API. Вместо этого используйте пространство имен Windows.AI.MachineLearning .

Свойства

Description

Не рекомендуется. Возвращает описательные метаданные для обученной модели машинного обучения.

InferencingOptions

Не рекомендуется. Возвращает или задает параметры вывода для оценки модели.

Методы

EvaluateAsync(LearningModelBindingPreview, String)

Не рекомендуется. Асинхронная оценка модели машинного обучения с помощью значения признака, уже связанного в привязке.

EvaluateFeaturesAsync(IMap<String,Object>, String)

Не рекомендуется. Асинхронно вычисляет имена экземпляров переменных в качестве входных и выходных данных для модели.

LoadModelFromStorageFileAsync(IStorageFile)

Не рекомендуется. Асинхронно загружает модель из хранилища файлов.

LoadModelFromStreamAsync(IRandomAccessStreamReference)

Не рекомендуется. Асинхронно загружает модель из предоставленного потока.

Применяется к