Skip to main content
API referenceSubnets

Subnet Weight Similarity

GET
/api/v1/subnets/{netuid}/weights/similarity

Fetch how alike one subnet's validators weight the miners (#9391): the cosine similarity of every pair of validators' current mechanism-0 weight vectors (SubtensorModule.Weights, self-weight excluded), with the mean, median and near-identical (cosine >= 0.99) share, each validator's nearest neighbour and the 100 most similar pairs. Computed per request from state.weights, bounded at 256 vectors (32,640 pairs). A cluster of near-identical vectors is what weight copying looks like, and also what one obvious scoring function looks like, so this publishes the measurement and not a verdict. Until the producer has observed the weights family the response is the schema-stable decline: validator_count null, never 0.

Path Parameters

netuid*integer

The subnet's numeric id on the Bittensor network, as used by the chain itself.

Range0 <= value

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/subnets/1/weights/similarity"
{  "data": {    "captured_at": "2026-06-01T00:00:00.000Z",    "excluded_count": 1,    "mechanism": 1,    "near_identical_threshold": 0.5,    "netuid": 7,    "pair_count": 1,    "pairs": [      {        "cosine": 0.5,        "hotkey_a": "example",        "hotkey_b": "example",        "uid_a": 1,        "uid_b": 1      }    ],    "schema_version": 1,    "summary": {      "mean_cosine": 0.5,      "median_cosine": 0.5,      "near_identical_pairs": 1,      "near_identical_share": 0.5    },    "truncated": false,    "validator_count": 1,    "validators": [      {        "hotkey": "example",        "nearest_cosine": 0.5,        "nearest_hotkey": "example",        "nearest_uid": 1,        "target_count": 1,        "uid": 1      }    ]  },  "meta": {    "artifact_path": "example",    "cache": "short",    "catalog_paging": {      "reason": "catalog_changed"    },    "contract_version": "2026-06-29.1",    "generated_at": "2026-06-01T00:00:00.000Z",    "observed_through": "2026-06-01T00:00:00.000Z",    "pagination": {      "collection": "example",      "cursor": 1,      "limit": 1,      "next_cursor": 1,      "order": "asc",      "returned": 1,      "snapshot": "v1.a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1",      "sort": "example",      "total": 1    },    "published_at": "2026-06-01T00:00:00.000Z",    "source": "live-cron-prober",    "stale_contract": {      "built_under": "example",      "live": "example"    }  },  "ok": true,  "schema_version": 1}