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

How to set the parameter to customize the number of hidden layers and their hidden sizes #231

Open
2 tasks done
astonisingHSR opened this issue Sep 20, 2023 · 2 comments
Open
2 tasks done
Labels
question Further information is requested

Comments

@astonisingHSR
Copy link

❓ Question

Setting the config parameter seems to only make all the hidden layers the same size. How can I set the parameter to customize the number of hidden layers and their respective sizes?
For examples, if i want to set up a policy network with three hidden layers, each of size 128, 64, 32. How do I set or modify the config parameter.
I would appreciate it if you could give me a detailed reply.

Checklist

@astonisingHSR astonisingHSR added the question Further information is requested label Sep 20, 2023
@huangshiyu13
Copy link
Member

You can pass your predefined neural network to the OpenRL:
image

Code Examples1:

model_dict = {"model": PolicyValueNetwork}

Code Example2:
model_dict = {"model": PolicyValueNetwork}

Document: https://openrl-docs.readthedocs.io/en/latest/quick_start/train_nlp.html

@astonisingHSR
Copy link
Author

Thank you for your careful response!

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

No branches or pull requests

2 participants