This documentation is for Machine Learner 1.0.0. View documentation for the latest release.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel3

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

Info

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

Code Block
languagetext
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

Code Block
languagetext
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.