LearningModelPreview.EvaluateFeaturesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deprecated. Asynchronously evaluates names variable instances as the inputs and outputs for the model.
public:
virtual IAsyncOperation<LearningModelEvaluationResultPreview ^> ^ EvaluateFeaturesAsync(IMap<Platform::String ^, Platform::Object ^> ^ features, Platform::String ^ correlationId) = EvaluateFeaturesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<LearningModelEvaluationResultPreview> EvaluateFeaturesAsync(IMap<winrt::hstring, IInspectable const&> const& features, winrt::hstring const& correlationId);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("Use ILearningModel instead of ILearningModelPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
IAsyncOperation<LearningModelEvaluationResultPreview> EvaluateFeaturesAsync(IMap<winrt::hstring, IInspectable const&> const& features, winrt::hstring const& correlationId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<LearningModelEvaluationResultPreview> EvaluateFeaturesAsync(IDictionary<string,object> features, string correlationId);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("Use ILearningModel instead of ILearningModelPreview. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public IAsyncOperation<LearningModelEvaluationResultPreview> EvaluateFeaturesAsync(IDictionary<string,object> features, string correlationId);
function evaluateFeaturesAsync(features, correlationId)
Public Function EvaluateFeaturesAsync (features As IDictionary(Of String, Object), correlationId As String) As IAsyncOperation(Of LearningModelEvaluationResultPreview)
Parameters
The features to bind as inputs.
- correlationId
-
String
Platform::String
winrt::hstring
The value to correlate the evaluation with the output results.
Returns
The evaluation result.
- Attributes
Remarks
Warning
This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.
Prior to evaluation, this method performs and internal check onn feature constraints and binds the features as inputs. This is an alternative separately binding then evaluating the model, streamlining the validation and creation of workspace resources.