Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bittensor/_subtensor/subtensor_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,12 +456,12 @@ def max_weight_limit (self, netuid: int, block: Optional[int] = None ) -> Option
""" Returns network ScalingLawPower hyper parameter """
def scaling_law_power (self, netuid: int, block: Optional[int] = None ) -> Optional[float]:
if not self.subnet_exists( netuid ): return None
return U16_NORMALIZED_FLOAT( self.query_subtensor('ScalingLawPower', block, [netuid] ).value)
return self.query_subtensor('ScalingLawPower', block, [netuid] ).value / 100.

""" Returns network SynergyScalingLawPower hyper parameter """
def synergy_scaling_law_power (self, netuid: int, block: Optional[int] = None ) -> Optional[float]:
if not self.subnet_exists( netuid ): return None
return U16_NORMALIZED_FLOAT( self.query_subtensor('SynergyScalingLawPower', block, [netuid] ).value )
return self.query_subtensor('SynergyScalingLawPower', block, [netuid] ).value / 100.

""" Returns network SubnetworkN hyper parameter """
def subnetwork_n (self, netuid: int, block: Optional[int] = None ) -> int:
Expand Down