SymetryML Documentation
Models

Optimize k-means clustering

Schedules an asynchronous job that searches for the best k-means `k` within a given range for the project. Note there is **no `{model}` path segment** — this operates on the project as a whole, not a specific existing model. The request body is an `MLContext` object.

POST
/{user}/projects/{project}/kmeansOptimize

Schedules an asynchronous job that searches for the best k-means k within a given range for the project. Note there is no {model} path segment — this operates on the project as a whole, not a specific existing model. The request body is an MLContext object.

Authorization

SymetryMLAuth
AuthorizationBearer <token>

HMAC-SHA256 signature-based authentication: requests are signed with your secret key and sent with the Customer-ID, Sym-date, Authorization, Content-MD5 and sym-version headers. See SymetryML REST API Security for the signature algorithm and a complete example.

In: header

Path Parameters

user*string

User/Customer identifier

project*string

Project identifier

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/c1/projects/nbra_prj_iris/kmeansOptimize" \  -H "Content-Type: application/json" \  -d '{    "extraParameters": {      "kmeans_k_min": "2",      "kmeans_k_max": "10",      "kmeans_max_iterations": "1000"    }  }'
{  "statusCode": 202,  "statusString": "Job Created",  "values": {}}

{  "statusCode": 400,  "statusString": "kmeans_k_min not specified",  "values": {}}