Weights are the most fundamental concept in the economics of Commune. Stake collectively weights the distribution of rewards. Validator Stake submits weights periodically representing the proportion of rewards each Miner should have according to their evaluation.
This allows to granularly define and adapt the distribution of rewards between miners, while separating the computation involved in calculating the weights from the protocol. Allowing to create granular, adaptive, dynamic incentive landscapes.
Since this basic mechanism alone is vulnerable to selfish dishonest actors, subnets run a consensus calculation between the transformation of local weights to global weights based on Stake.
See Yuma Consensus
To set weights you will first need:
You will first have to pick a subnet on which you will set the weights on. This also means that you have to register your key there.
Since validator doesn't need to have any exposed endpoints, you can leave out ip and port specification.
Python code example
Important consideration is also a subnet consensus.
That means that it might not be a profitable strategy to set scoring outside of the subnetwork intend.