Removed .w and replaced with row_weights
@@ -82,7 +82,7 @@ def main(config: Munch, session: Session):
# ----- Init training state ---
model.train()
session.metagraph.sync() # Sync with the chain.
- row_weights = session.metagraph.W[ 0, :] # My weights on the chain-state (zeros initially).
+ row_weights = session.metagraph.row_weights # My weights on the chain-state (zeros initially).
history = []
local_step = 0
local_epochs = 10
@@ -130,10 +130,10 @@ def main(config: Munch, session: Session):
logger.info('Emitting with weights {}', row_weights.tolist())
session.metagraph.emit( row_weights, wait_for_inclusion = True ) # Sets my row-weights on the chain.
session.metagraph.sync() # Pulls the latest metagraph state (with my update.)
- row_weights = session.metagraph.W[ 0, :]
+ row_weights = session.metagraph.row_weights
# ---- Update Axon Priority ----
- col_weights = session.metagraph.W[:,0]
+ col_weights = session.metagraph.row_weights
session.axon.set_priority( session.metagraph.neurons, col_weights ) # Sets the nucleus-backend request priority.
local_step += 1
