Mava
Mava copied to clipboard
Create an update_network function to reduce code duplication
Feature
Because of the fact that we have a separate actor and critic, we need to update both networks separately, this is leading to a lot of code duplication, for example here.
We should make a function: update_network
and then call this twice to update the network to reduce the code duplication.