wessle / costaware

Repository for cost-aware project code.
MIT License
2 stars 0 forks source link

Agents should be initialized with envs #43

Open wessle opened 3 years ago

wessle commented 3 years ago

Issue

We currently initialize agents in a hodgepodge of different ways depending on the dimension of the state and action spaces, the actions themselves, and the specific environment expected. The result is that the arguments we pass in to various agents are too diverse to make a more uniform interface for agent initialization.

Solution

Passing the created environment into the agent itself can help sidestep this, since the agent can inspect the environment and collect the required information internally.

TODO