Removing custom cogment_verse.specs.Space and cogment_verse.specs.SpaceValue classes in favour of directly using gym.spaces.Space instances and np.array directly. Introduce cogment_verse.specs.EnvironmentSpecs, cogment_verse.specs.ObservationSpace, cogment_verse.specs.ActionSpace as (relatively) thin wrapper around gym stuffs. Remove custom flatten, unflatten, sample functions in favor of using Gym's.
Enable deserialization of the np.array on the javascript side to open the door to implementing rendering on the client side. Currently using that for action mask and for a new debug display showing the observation tensor:
Benchmarking various numpy array serialization/deserialization strategies
To reviewer -> Take a look a the changes in actors and environment to get an understanding of the API changes, this is the "last" API change I'd like to consider before merging next in main.
closes #115
cogment_verse.specs.Space
andcogment_verse.specs.SpaceValue
classes in favour of directly usinggym.spaces.Space
instances andnp.array
directly. Introducecogment_verse.specs.EnvironmentSpecs
,cogment_verse.specs.ObservationSpace
,cogment_verse.specs.ActionSpace
as (relatively) thin wrapper around gym stuffs. Remove customflatten
,unflatten
,sample
functions in favor of using Gym's.np.array
on the javascript side to open the door to implementing rendering on the client side. Currently using that for action mask and for a new debug display showing the observation tensor:To reviewer -> Take a look a the changes in actors and environment to get an understanding of the API changes, this is the "last" API change I'd like to consider before merging
next
inmain
.