Start validation Sample Clauses

Start validation. The validation is initialized with a HTTP POST call to ▇▇▇▇://▇▇▇▇▇▇▇.▇▇▇▇▇▇▇▇▇▇.▇▇▇- ▇▇▇▇▇▇▇▇.▇▇/▇▇▇▇▇▇▇▇▇▇/▇▇▇▇▇▇▇▇_▇▇▇▇_▇▇▇▇▇. The parameters to control the routine are algorithm-URI, dataset-URI and prediction-feature. The subject-id is specified as additional header (with –H option): curl -X POST -d algorithm_uri="▇▇▇▇▇://▇▇▇▇▇.▇▇▇-▇▇▇▇▇▇▇.▇▇:8443/ambit2/algorithm/LR" -d dataset_uri="▇▇▇▇▇://▇▇▇▇▇.▇▇▇-▇▇▇▇▇▇▇.▇▇:8443/ambit2/dataset/R401560" -d prediction_feature="▇▇▇▇▇://▇▇▇▇▇.▇▇▇-▇▇▇▇▇▇▇.▇▇:8443/ambit2/feature/22190" ▇▇▇▇://▇▇▇▇▇▇▇.▇▇▇▇▇▇▇▇▇▇.▇▇▇-▇▇▇▇▇▇▇▇.▇▇/validation/training_test_split -H "subjectid:AQIC5wM2LY4SfczngIclWu3ztAWK7WKXHfAFK+CI8Rvf5zU=@AAJTSQACMDE=#" The validation service returns the URI of a task object, while running the validation as an asynchronous background job. The result is stored in the task object when the job is finished. Get validation result-URI: 58 See for example: ▇▇▇▇▇://▇▇▇▇▇.▇▇▇- ▇▇▇▇▇▇▇.▇▇:8443/ambit2/algorithm/org.openscience.cdk.qsar.descriptors.molecular.AtomCountDescriptor 59 Documentation for the OpenTox API ▇▇▇▇://▇▇▇▇▇▇▇.▇▇▇/dev/apis/api-1.2 60 The cURL calls (presented in purple boxes) can be copied to and executed with a command-line interface. The return value is marked in green (success) or orange (error) boxes. Task resources are not protected, which is why the following cURL call does not need to include the subject-id: curl ▇▇▇▇://▇▇▇▇▇▇▇.▇▇▇▇▇▇▇▇▇▇.▇▇▇-▇▇▇▇▇▇▇▇.▇▇/task/1004 -H "Accept:application/x- yaml" --- ▇▇▇▇://▇▇▇▇.▇▇▇/dc/elements/1.1/title: Perform training test split validation ▇▇▇▇://▇▇▇.▇▇▇▇▇▇▇.▇▇▇/api/1.1#hasStatus: Completed ▇▇▇▇://▇▇▇.▇▇▇▇▇▇▇.▇▇▇/api/1.1#resultURI: ▇▇▇▇://▇▇▇▇▇▇▇.▇▇▇▇▇▇▇▇▇▇.▇▇▇- ▇▇▇▇▇▇▇▇.▇▇/▇▇▇▇▇▇▇▇▇▇/▇▇▇ ▇▇▇▇://▇▇▇.▇▇▇▇▇▇▇.▇▇▇/api/1.1#percentageCompleted: 100.0 […] Using cURL on the task-URI returns a list of its properties, including the field result-URI that contains the validation-URI. Get validation result: The following cURL call demonstrates that the validation result ▇▇▇▇://▇▇▇▇▇▇▇.▇▇▇▇▇▇▇▇▇▇.▇▇▇- ▇▇▇▇▇▇▇▇.▇▇/▇▇▇▇▇▇▇▇▇▇/▇▇▇ is protected by the A&A routines: curl ▇▇▇▇://▇▇▇▇▇▇▇.▇▇▇▇▇▇▇▇▇▇.▇▇▇-▇▇▇▇▇▇▇▇.▇▇/validation/114 --- !ruby/object:OpenTox::ErrorReport actor: ▇▇▇▇://▇▇▇▇▇▇▇.▇▇▇▇▇▇▇▇▇▇.▇▇▇-▇▇▇▇▇▇▇▇.▇▇/validation/114 errorType: OpenTox::NotAuthorizedError http_code: 401 message: Not authorized […] Access is denied, and an error report is returned instead. However, we can access this resource when specifying the subject-id: curl ▇▇▇▇://▇▇▇▇▇▇▇.▇▇▇▇▇▇▇▇▇▇.▇▇▇-▇▇▇▇▇...