After the installation of both Soccer and marl i tried to run the second example with the MinMaxQAgent but I got the error:
AttributeError: 'MARL' object has no attribute 'experience'
Following the Traceback:
> Start learning process.
| Date : 16/06/2021 12:28:09
Traceback (most recent call last):
File "prova.py", line 30, in
mas.learn(env, nb_timesteps=100000)
File "/home/tiago/Scrivania/Libri magistrale/Tesi/Cidici Git/marl/marl/agent/agent.py", line 265, in learn
self.update_model(timestep)
File "/home/tiago/Scrivania/Libri magistrale/Tesi/Cidici Git/marl/marl/marl.py", line 85, in update_model
ag.update_model(t)
File "/home/tiago/Scrivania/Libri magistrale/Tesi/Cidici Git/marl/marl/agent/q_agent.py", line 53, in update_model
batch = self.mas.experience.get_transition(len(self.mas.experience) - np.array(ind)-1)
AttributeError: 'MARL' object has no attribute 'experience'
prova.py contains the code of the second example that is the following (the same of the README):
import marl
from marl import MARL
from marl.agent import MinimaxQAgent
from marl.exploration import EpsGreedy
from soccer import DiscreteSoccerEnv
# Environment available here "https://github.com/blavad/soccer"
env = DiscreteSoccerEnv(nb_pl_team1=1, nb_pl_team2=1)
After the installation of both Soccer and marl i tried to run the second example with the MinMaxQAgent but I got the error: AttributeError: 'MARL' object has no attribute 'experience'
Following the Traceback:
> Start learning process.
| Date : 16/06/2021 12:28:09 Traceback (most recent call last): File "prova.py", line 30, in
mas.learn(env, nb_timesteps=100000)
File "/home/tiago/Scrivania/Libri magistrale/Tesi/Cidici Git/marl/marl/agent/agent.py", line 265, in learn
self.update_model(timestep)
File "/home/tiago/Scrivania/Libri magistrale/Tesi/Cidici Git/marl/marl/marl.py", line 85, in update_model
ag.update_model(t)
File "/home/tiago/Scrivania/Libri magistrale/Tesi/Cidici Git/marl/marl/agent/q_agent.py", line 53, in update_model
batch = self.mas.experience.get_transition(len(self.mas.experience) - np.array(ind)-1)
AttributeError: 'MARL' object has no attribute 'experience'
prova.py contains the code of the second example that is the following (the same of the README):
Thank you in advance