pull/1/head
E. Almqvist 4 years ago
parent 5a88f515d2
commit d928c454e1
  1. 2
      rgbAI/lib/func.py

@ -52,7 +52,7 @@ class AIlib:
res2 = AIlib.think( inp, obj2 ) res2 = AIlib.think( inp, obj2 )
cost2 = AIlib.getThinkCost( inp, res2 ) # get the second cost cost2 = AIlib.getThinkCost( inp, res2 ) # get the second cost
# Get the usefull variables # Actually calculate stuff
dCost = cost2 - cost1 dCost = cost2 - cost1
dWeight = obj2.weights[layerIndex] - obj1.weights[layerIndex] dWeight = obj2.weights[layerIndex] - obj1.weights[layerIndex]
dBias = obj2.bias[layerIndex] - obj1.bias[layerIndex] dBias = obj2.bias[layerIndex] - obj1.bias[layerIndex]

Loading…
Cancel
Save