Replies: 4 comments 19 replies
-
Copying the discussion from jeremysalwen/entity-gym#1 as a series of comments. jeremysalwen:
cswinter:
My response: The former type of symmetries are much easier to define and extend. Basically anyone can come along and say "here we need to choose an action which is a point on the surface of a sphere", and define some head to attach to our NN which takes some vector of floating point values, and differentiably converts it into a valid point on the surface of a sphere. They don't need to have any awareness of the structure of the rest of the network, the observation space, etc, in order to do that. It's the latter type of symmetries that I think are the difficult part. You have already created a demonstration of an API that allows us to express actions which have a single global symmetry (permutation invariance) through I think there are still some open questions:
|
Beta Was this translation helpful? Give feedback.
-
incubator/entity_gym/entity_gym/environment.py Lines 118 to 121 in 2191c9f jeremysalwen:
cswinter:
Yeah it does seem like python won't allow you express it directly in the type system. It still might be possible to do something fake, where we use typedefs so it's all strings under the hood (i.e. type checking doesn't check anything), but we use different aliases in different places so to a reader it looks like it's typed? |
Beta Was this translation helpful? Give feedback.
-
incubator/entity_gym/entity_gym/environment.py Lines 93 to 95 in 2191c9f jeremysalwen:
cswinter:
So, if I understand correctly, every action must be associated with an entity? This is what surprised me a bit. How would we handle global actions? Is the idea that we would always have a dummy entity to associate all global actions with? |
Beta Was this translation helpful? Give feedback.
-
I am not so keen on the idea of just looking like it is typed, perhaps for speed we can avoid checks at runtime but in a debug case we actively want to check the types are correct and that constraints on tensors are respected (such as dimensional constraints), I believe this would provide a lot more insight when debugging code rather than getting the next error from entity gym because we didn't respect the constraints. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Testing code block link:
incubator/entity_gym/entity_gym/environment.py
Lines 98 to 101 in 2191c9f
Previous discussion: jeremysalwen/entity-gym#1
Beta Was this translation helpful? Give feedback.
All reactions