From e4ab8d9a7d70579cde4bc250ab946c0498e396e5 Mon Sep 17 00:00:00 2001 From: opentaco Date: Fri, 17 Mar 2023 23:57:10 +0200 Subject: [PATCH] Fix scaling law powers --- bittensor/_subtensor/subtensor_impl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bittensor/_subtensor/subtensor_impl.py b/bittensor/_subtensor/subtensor_impl.py index a2a1fd0b05..60eaa82d31 100644 --- a/bittensor/_subtensor/subtensor_impl.py +++ b/bittensor/_subtensor/subtensor_impl.py @@ -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: