Gradient Descent

   1363   0   1
User Avatar
Member
36 posts
Joined: Dec. 2016
Offline
Hi everyone!

I've implemented a gradient descent algorithm with Python and PDG to create a best fit line for data points. I'm trying to recreate this experiment that someone else did: https://forums.odforce.net/topic/44527-machine-learning-in-houdini-because-why-not/ [forums.odforce.net]

I would like to be able to see the line running through each epoch and adjusting to the data in real time, but I can't figure out how to do this. Is there a way to set a work item per frame? Or would outputting the line to files and running through each file per frame be the best way? (I've been trying to do this with a PDG rop geometry output but the cook always fails). Any input would be greatly appreciated!

Thanks,
Ryan




Edited by canonball900 - May 4, 2020 20:26:48

Attachments:
line_parms.jpg (390.9 KB)
python_code.jpg (262.8 KB)
geo_import.jpg (155.6 KB)
geo_rop.jpg (119.0 KB)

  • Quick Links