

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# SPARQL 객체 회귀 예제
<a name="machine-learning-sparql-inference-object-regression"></a>

객체 회귀는 각 노드의 회귀 모델에서 유추된 수치 예측 값을 제외하면 객체 분류와 유사합니다. `the Neptune#ml.limit` 및 `Neptune#ml.threshold` 조건자를 적용할 수 없다는 점을 제외하면 객체 분류의 경우와 동일한 SPARQL 쿼리를 객체 회귀에 사용할 수 있습니다.

다음 쿼리는 모든 `foaf:Person` 유형의 입력에 대한 <http://www.example.org/accountbalance> 조건자 값을 예측하려고 합니다.

```
SELECT * WHERE { ?input a foaf:Person .
  SERVICE neptune-ml:inference {
    neptune-ml:config neptune-ml:modelType 'OBJECT_REGRESSION' ;
                      neptune-ml:input ?input ;
                      neptune-ml:predicate <http://www.example.org/accountbalance> ;
                      neptune-ml:output ?output .
  }
}
```

이 쿼리는 다음과 같이 사용자 지정할 수 있습니다.

```
SELECT * WHERE { ?input a foaf:Person .
  SERVICE neptune-ml:inference {
    neptune-ml:config neptune-ml:endpoint 'node-prediction-account-balance-endpoint' ;
                      neptune-ml:iamRoleArn 'arn:aws:iam::0123456789:role/sagemaker-role' ;

                      neptune-ml:batchSize "40"^^xsd:integer ;
                      neptune-ml:timeout "1000"^^xsd:integer ;

                      neptune-ml:modelType 'OBJECT_REGRESSION' ;
                      neptune-ml:input ?input ;
                      neptune-ml:predicate <http://www.example.org/accountbalance> ;
                      neptune-ml:output ?output .
  }
}
```