Replies: 1 comment
-
|
Here's a minimal example demonstrating my issue: The first print shows how my model can't access structured observations and the second shows why I can't include my structured data in the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm using Tianshou with a RL problem where the environment represents a network and the agent acts by modifying edges of the network graph.
The most effective models for graph problems are "GNN"s, many of which only accept examples in a particular form. Here's an example with Torch Geometric. Separate vectors are provided for the edge "coordinates", edge features and node features. Graph examples (even of different sizes) are batched together through a matrix diagonalisation trick.
The naive approach would be to output this structured data as the observation from my
Env.stepmethod, but this isn't possible (I see there is aDictspace that isn't supported by Tianshou). I could return it in theinfodict for each step, however that doesn't seem like the intended use ofinfo(e.g. it's missing when training on "next batch" observations in the DQN policy, but that might be an oversight).What's the idiomatic way to pass (edge coordinate, edge feature, node feature) vectors of variable sizes to a GNN in the Tianshou framework?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions