LearningModelPreview LearningModelPreview LearningModelPreview LearningModelPreview LearningModelPreview Class

Definition

Deprecated. Represents a machine learning model.

public : sealed class LearningModelPreview : ILearningModelPreview
struct winrt::Windows::AI::MachineLearning::Preview::LearningModelPreview : ILearningModelPreview
public sealed class LearningModelPreview : ILearningModelPreview
Public NotInheritable Class LearningModelPreview Implements ILearningModelPreview
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract (introduced v2)

Examples

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

    ...
}

Remarks

Warning

This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.

Properties

Description Description Description Description Description

Deprecated. Gets the descriptive metadata for the trained machine learning model.

InferencingOptions InferencingOptions InferencingOptions InferencingOptions InferencingOptions

Deprecated. Gets or sets the inferencing options for the evaluation of a model.

Methods

EvaluateAsync(LearningModelBindingPreview, String) EvaluateAsync(LearningModelBindingPreview, String) EvaluateAsync(LearningModelBindingPreview, String) EvaluateAsync(LearningModelBindingPreview, String) EvaluateAsync(LearningModelBindingPreview, String)
EvaluateFeaturesAsync(IMap<String, Object>, String) EvaluateFeaturesAsync(IMap<String, Object>, String) EvaluateFeaturesAsync(IMap<String, Object>, String) EvaluateFeaturesAsync(IMap<String, Object>, String) EvaluateFeaturesAsync(IMap<String, Object>, String)

Deprecated. Asynchronously evaluates names variable instances as the inputs and outputs for the model.

LoadModelFromStorageFileAsync(IStorageFile) LoadModelFromStorageFileAsync(IStorageFile) LoadModelFromStorageFileAsync(IStorageFile) LoadModelFromStorageFileAsync(IStorageFile) LoadModelFromStorageFileAsync(IStorageFile)

Deprecated. Asynchronously loads a model from file storage.

LoadModelFromStreamAsync(IRandomAccessStreamReference) LoadModelFromStreamAsync(IRandomAccessStreamReference) LoadModelFromStreamAsync(IRandomAccessStreamReference) LoadModelFromStreamAsync(IRandomAccessStreamReference) LoadModelFromStreamAsync(IRandomAccessStreamReference)

Deprecated. Asynchronously loads a model from a provided stream.