Hacker News new | past | comments | ask | show | jobs | submit login

How does the differentiation part of this work? Is it just gradient descent, or something more clever than that?

It seems like it ought to need to trace the data flows, but there doesn't seem to be the machinery to do so in the code.

Thanks! This is awesome to play with :).




In https://github.com/bijection/g9/blob/master/src/Data2Rendera... each shape gets a unique id.

Dragging a shape calls the 'desire' function in https://github.com/bijection/g9/blob/master/src/index.js , which runs gradient descent with something like the shape's distance from the mouse as the cost.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: