

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 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` 指定遠端服務呼叫的輸入大小。