This documentation is for Machine Learner 1.0.0. View documentation for the latest release.
||
Skip to end of metadata
Go to start of metadata

Overview

DescriptionAdd customized features to an analysis.
Resource Path

/api/analyses/{analysisId}/features

HTTP MethodPOST
Request/Response Formatapplication/json

Parameter description

Parameter
Description
{analysisId}ID of the analysis to which you need to add customized features.

Sample cURL command

For information on the property definitions that are used in a JSON file to define customized features, see Sample Customized Features Definition.

curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/analyses/1/features -k -v -d @'customized-features.json'
customized-features.json
[{
"type" : "NUMERICAL",
"name" : "BMI",
"include" : true,
"imputeOption" : "DISCARD"
},
{
"type" : "NUMERICAL",
"name" : "Age",
"include" : true,
"imputeOption" : "DISCARD"
},
{
"type" : "NUMERICAL",
"name" : "PG2",
"include" : true,
"imputeOption" : "DISCARD"
}]

Example

POST https://localhost:9443/api/analyses/{analysisId}/features

REST API response

HTTP status code

200, 404 or 500

For descriptions of the HTTP status codes, see HTTP Status Codes.

  • No labels