LearningModelBindingPreview LearningModelBindingPreview LearningModelBindingPreview LearningModelBindingPreview LearningModelBindingPreview Class

Definition

Deprecated. Represents the associations between model inputs and variable instances.

public : sealed class LearningModelBindingPreview
struct winrt::Windows::AI::MachineLearning::Preview::LearningModelBindingPreview
public sealed class LearningModelBindingPreview
Public NotInheritable Class LearningModelBindingPreview
var learningModelBindingPreview = new learningModelBindingPreview(model);
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 void PrepareBinding(LearningModelPreview model, VideoFrame picture)
{
	ImageVariableDescriptorPreview inputImageDescription;
	List<ILearningModelVariableDescriptorPreview> inputFeatures = model.Description.InputFeatures.ToList();

    inputImageDescription =
         inputFeatures.FirstOrDefault(feature => feature.ModelFeatureKind == LearningModelFeatureKindPreview.Image)
         as ImageVariableDescriptorPreview;

    // Bind the image
    var binding = new LearningModelBindingPreview(model);
    binding.Bind(inputImageDescription, picture);
}

Remarks

Warning

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

Constructors

LearningModelBindingPreview(LearningModelPreview) LearningModelBindingPreview(LearningModelPreview) LearningModelBindingPreview(LearningModelPreview) LearningModelBindingPreview(LearningModelPreview) LearningModelBindingPreview(LearningModelPreview)

Properties

Size Size Size Size Size

Methods

Bind(String, Object) Bind(String, Object) Bind(String, Object) Bind(String, Object) Bind(String, Object)

Deprecated. Binds a single input or output feature to a defined variable.

Bind(String, Object, IPropertySet) Bind(String, Object, IPropertySet) Bind(String, Object, IPropertySet) Bind(String, Object, IPropertySet) Bind(String, Object, IPropertySet)
Clear() Clear() Clear() Clear() Clear()

Deprecated. Clears all bound variables.

First() First() First() First() First()
HasKey(String) HasKey(String) HasKey(String) HasKey(String) HasKey(String)
Lookup(String) Lookup(String) Lookup(String) Lookup(String) Lookup(String)
Split(IMapView<String, Object>, IMapView<String, Object>) Split(IMapView<String, Object>, IMapView<String, Object>) Split(IMapView<String, Object>, IMapView<String, Object>) Split(IMapView<String, Object>, IMapView<String, Object>) Split(IMapView<String, Object>, IMapView<String, Object>)