def getGb(t): X1 = Matrix([[x1], [x2], [x3]]) W1 = Matrix([[w14, w24, w34]]) #W2 = Matrix([[w4]]) A = W1 * X1 A = m.activateFunc(A) #A = W2 + A #A = m.activateFunc(A) r = m.inputData(A,t) gr = groebner(r) return gr
def getGb2(t): X1 = getX() W1 = getW() W2 = Matrix([[w46,w56]]) A = W1 * X1 A = m.activateFunc(A) A = W2 * A r = m.inputData(A,t) r.append(w14 + w24 + w34 -6) gr = groebner(r) return gr