mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 00:39:32 +08:00
[rllib] Fix incorrect documentation on how to use custom models #1405
This commit is contained in:
@@ -183,9 +183,11 @@ custom model and preprocessor classes are documented in the
|
||||
|
||||
ray.init()
|
||||
alg = ppo.PPOAgent(env="CartPole-v0", config={
|
||||
"custom_preprocessor": "my_prep",
|
||||
"custom_model": "my_model",
|
||||
"custom_options": {}, # extra options to pass to your classes
|
||||
"model": {
|
||||
"custom_preprocessor": "my_prep",
|
||||
"custom_model": "my_model",
|
||||
"custom_options": {}, # extra options to pass to your classes
|
||||
},
|
||||
})
|
||||
|
||||
Using RLlib with Ray.tune
|
||||
|
||||
Reference in New Issue
Block a user