Computational graph library for machine learning in Julia
Here's an implementation of this computational graph (source)
using Kwesi
function addone(b)
b + 1
end
function addxy(x,y)
x + y
end
function multxy(x,y)
x * y
end
a = VarNode("a", [2])
b = VarNode("b", [1])
c = OpsNode(addxy, [0], [a,b])
d = OpsNode(addone, [0], [b])
e = OpsNode(multxy, [0], [c,d])
println(runNode(e))
println("e state is " * string(e.state))
Real[6]
e state is Real[6]