bittensor.core.chain_data.subnet_hyperparameters#

Classes#

SubnetHyperparameters

This class represents the hyperparameters for a subnet.

Module Contents#

class bittensor.core.chain_data.subnet_hyperparameters.SubnetHyperparameters[source]#

This class represents the hyperparameters for a subnet.

Variables:
  • rho (int) – The rate of decay of some value.

  • kappa (int) – A constant multiplier used in calculations.

  • immunity_period (int) – The period during which immunity is active.

  • min_allowed_weights (int) – Minimum allowed weights.

  • max_weight_limit (float) – Maximum weight limit.

  • tempo (int) – The tempo or rate of operation.

  • min_difficulty (int) – Minimum difficulty for some operations.

  • max_difficulty (int) – Maximum difficulty for some operations.

  • weights_version (int) – The version number of the weights used.

  • weights_rate_limit (int) – Rate limit for processing weights.

  • adjustment_interval (int) – Interval at which adjustments are made.

  • activity_cutoff (int) – Activity cutoff threshold.

  • registration_allowed (bool) – Indicates if registration is allowed.

  • target_regs_per_interval (int) – Target number of registrations per interval.

  • min_burn (int) – Minimum burn value.

  • max_burn (int) – Maximum burn value.

  • bonds_moving_avg (int) – Moving average of bonds.

  • max_regs_per_block (int) – Maximum number of registrations per block.

  • serving_rate_limit (int) – Limit on the rate of service.

  • max_validators (int) – Maximum number of validators.

  • adjustment_alpha (int) – Alpha value for adjustments.

  • difficulty (int) – Difficulty level.

  • commit_reveal_weights_interval (int) – Interval for commit-reveal weights.

  • commit_reveal_weights_enabled (bool) – Flag indicating if commit-reveal weights are enabled.

  • alpha_high (int) – High value of alpha.

  • alpha_low (int) – Low value of alpha.

  • liquid_alpha_enabled (bool) – Flag indicating if liquid alpha is enabled.

activity_cutoff: int#
adjustment_alpha: int#
adjustment_interval: int#
alpha_high: int#
alpha_low: int#
bonds_moving_avg: int#
commit_reveal_weights_enabled: bool#
commit_reveal_weights_interval: int#
difficulty: int#
classmethod from_vec_u8(vec_u8)[source]#

Create a SubnetHyperparameters instance from a vector of bytes.

This method decodes the given vector of bytes using the bt_decode module and creates a new instance of SubnetHyperparameters with the decoded values.

Parameters:

vec_u8 (bytes) – A vector of bytes to decode into SubnetHyperparameters.

Returns:

An instance of SubnetHyperparameters if decoding is successful, None otherwise.

Return type:

Optional[SubnetHyperparameters]

immunity_period: int#
kappa: int#
liquid_alpha_enabled: bool#
max_burn: int#
max_difficulty: int#
max_regs_per_block: int#
max_validators: int#
max_weight_limit: float#
min_allowed_weights: int#
min_burn: int#
min_difficulty: int#
registration_allowed: bool#
rho: int#
serving_rate_limit: int#
target_regs_per_interval: int#
tempo: int#
weights_rate_limit: int#
weights_version: int#