LearningModelSession.EvaluateFeatures 方法

定义

使用 特征中的特征值评估机器学习模型。

public:
 virtual LearningModelEvaluationResult ^ EvaluateFeatures(IMap<Platform::String ^, Platform::Object ^> ^ features, Platform::String ^ correlationId) = EvaluateFeatures;
LearningModelEvaluationResult EvaluateFeatures(IMap<winrt::hstring, IInspectable const&> const& features, winrt::hstring const& correlationId);
public LearningModelEvaluationResult EvaluateFeatures(IDictionary<string,object> features, string correlationId);
function evaluateFeatures(features, correlationId)
Public Function EvaluateFeatures (features As IDictionary(Of String, Object), correlationId As String) As LearningModelEvaluationResult

参数

features

IMap<String,Object>

IDictionary<String,Object>

IMap<Platform::String,Platform::Object>

IMap<winrt::hstring,IInspectable>

用于评估模型的特征的映射。

correlationId
String

Platform::String

winrt::hstring

可选用户提供的用于连接输出结果的字符串。

返回

计算的结果。

注解

Windows Server

若要在 Windows Server 上使用此 API,必须使用带桌面体验的 Windows Server 2019。

线程安全

此 API 是线程安全的。

适用于