Cluster Analysis with the BigML Dashboard

8.3 Using Clusters via the BigML API

Clusters have full citizenship in the BigML API. This means you can programmatically create, update, list, delete, and use them for predictions. For example, this is how you can create a cluster from the command line with custom values for a few available arguments. This will require you have properly set the BIGML_AUTH environment variable to contain your authentication credentials:

curl "https://bigml.io/cluster?$BIGML_AUTH" \
     -X POST \
     -H 'content-type: application/json' \
     -d '{"dataset": "dataset/4f66a80803ce8940c5000006",
          "name": "my model",
          "range": [25, 125]}'

For more information on using clusters through the BigML API, please refer to cluster REST API documentation.