

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# SPARQL 推理查询中使用的 Neptune ML 谓词
<a name="machine-learning-sparql-inference-query-predicates"></a>

以下谓词用于 SPARQL 推理：

## `neptune-ml:timeout` 谓词
<a name="machine-learning-sparql-inference-predicates-timeout"></a>

指定与远程服务器连接的超时。不应与查询请求超时混淆，查询请求超时是服务器满足请求所花费的最大时间量。

请注意，如果查询超时在 `neptune-ml:timeout` 谓词指定的服务超时之前发生，则服务连接也会被取消。

## `neptune-ml:outputClass` 谓词
<a name="machine-learning-sparql-inference-predicates-outputClass"></a>

`neptune-ml:outputClass` 谓词仅用于定义用于对象预测的预测对象或用于主题预测的预测主题的类别。

## `neptune-ml:outputScore` 谓词
<a name="machine-learning-sparql-inference-predicates-outputScore"></a>

`neptune-ml:outputScore` 谓词是一个正数，它表示机器学习模型的输出正确的可能性。

## `neptune-ml:modelType` 谓词
<a name="machine-learning-sparql-inference-predicates-modelType"></a>

`neptune-ml:modelType` 谓词指定正在训练的机器学习模型的类型：
+ `OBJECT_CLASSIFICATION`
+ `OBJECT_REGRESSION`
+ `OBJECT_PREDICTION`
+ `SUBJECT_PREDICTION`

## `neptune-ml:input` 谓词
<a name="machine-learning-sparql-inference-predicates-input"></a>

`neptune-ml:input` 谓词是指用作 Neptune ML 的输入的 URI 列表。

## `neptune-ml:output` 谓词
<a name="machine-learning-sparql-inference-predicates-output"></a>

`neptune-ml:output` 谓词是指 Neptune ML 返回结果的绑定集列表。

## `neptune-ml:predicate` 谓词
<a name="machine-learning-sparql-inference-predicates-predicate"></a>

根据正在执行的任务，`neptune-ml:predicate` 谓词的使用方式有所不同：
+ 对于**对象或主题预测**：定义谓词的类型（边缘或关系类型）。
+ 对于**对象分类和回归**：定义我们要预测的文本（属性）。

## `neptune-ml:batchSize` 谓词
<a name="machine-learning-sparql-inference-predicates-batchSize"></a>

`neptune-ml:batchSize` 指定远程服务调用的输入大小。