Skip to content
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

Potential mistake in your read.me #2

Open
yuanggeng opened this issue Apr 4, 2023 · 3 comments
Open

Potential mistake in your read.me #2

yuanggeng opened this issue Apr 4, 2023 · 3 comments

Comments

@yuanggeng
Copy link

Thanks for sharing your great work! I have one question about how to input weights and biases of NN into POLAR. In your neural_network.py, it seems like you read the weights and biases for each neuron like: w,w,b,w,w,b... not w,w,w,w,w,...,b,b,b,.... Thanks for your time.

@ChaoHuang2018
Copy link
Owner

ChaoHuang2018 commented Apr 4, 2023 via email

@yuanggeng
Copy link
Author

Thank you so much! Can I double check what is the time step you set in each control step maybe in the single pendulum example? Can you explain the differene when you deal with ODE and DDE? Thank you : )

@ChaoHuang2018
Copy link
Owner

In the single pendulum example, the control step size is 0.05.

For DDE encoding, please refer to the mountain car example (POLAR_Tool/examples/Mountain_Car/mountain_car.cpp). Simply speaking, the main difference is the construction of the dynamics: use DDE() to construct DDE-based dynamics (e.g., line 42, mountain_car.cpp), and use ODE() to construct ODE-based dynamics (e.g., line 26, single_pendulum.cpp).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants