LearningModelSession.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.
Asynchronously evaluate the machine learning model using the feature values in features.
public:
virtual IAsyncOperation<LearningModelEvaluationResult ^> ^ EvaluateFeaturesAsync(IMap<Platform::String ^, Platform::Object ^> ^ features, Platform::String ^ correlationId) = EvaluateFeaturesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<LearningModelEvaluationResult> EvaluateFeaturesAsync(IMap<winrt::hstring, IInspectable const&> const& features, winrt::hstring const& correlationId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<LearningModelEvaluationResult> 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 LearningModelEvaluationResult)
Parameters
A map of features with which to evaluate the model.
- correlationId
-
String
Platform::String
winrt::hstring
Optional user supplied string to connect the output results.
Returns
The result of the evaluation.
- Attributes
Remarks
This method is an alternative to the separated bind then evaluate form that takes a LearningModelBinding. It will take the passed in features, create a LearningModelBinding for you, bind the features, and then evaluate the model.
Windows Server
To use this API on Windows Server, you must use Windows Server 2019 with Desktop Experience.
Thread safety
This API is thread-safe.