-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
f(x, y) function approximation in 3D space #1
Comments
Hi Nikita, no worries, this is as good a place as any. You would have to do 2 things to make this work:
For 1, it looks like you are already generating data based on the plot you showed me, so you would just have to sample randomly from your x,y space and generate z values (ideally with some noise added). You would probably want to format your x,y pairs as a single matrix where one of its dimensions is For 2, all fully connected networks like this one are essentially compound functions, so there is a pretty straightforward way to adapt it to approximate any other continuous function. For the sin function, the number of inputs and outputs is 1:
Where |
Thank you so much, Ryan! It worked out :) |
Cool, I'm glad to hear it is running. I would be curious to see the output of the trained model if you have a plot. Also if you want to add your notebook to the repo, feel free to make a PR. |
Ok, I'll upload it when I'm finished. |
Nice, it looks like it is performing well. I think the 3D example is a much more impressive demonstration than the sin function |
Hey @rlorigro , thanks for your work, I didn't find a way to contact you, so I opened an issue here, sorry :)
How to extend your code so it could approximate 2 variable functions in 3D space?
For example: f(x, y) = x^2 + x + ycos(x) + sin(y)
The text was updated successfully, but these errors were encountered: