Hello, I encountered the below error while running the demos.evaluate_sr
File "/home/kywch/nmmo-dev/baselines/demos/evaluate_sr.py", line 70, in <module>
parallel_simulations(CORES, HORIZON)
File "/home/kywch/nmmo-dev/baselines/demos/evaluate_sr.py", line 39, in parallel_simulations
ratings = sr.update(
File "/home/kywch/nmmo-dev/environment/nmmo/lib/rating.py", line 79, in update
ratings = [openskill.create_rating(team[0]) for team in ratings]
File "/home/kywch/nmmo-dev/environment/nmmo/lib/rating.py", line 79, in <listcomp>
ratings = [openskill.create_rating(team[0]) for team in ratings]
File "/home/kywch/nmmo-dev/.venv/lib/python3.9/site-packages/openskill/rate.py", line 218, in create_rating
raise TypeError("Argument is already a 'Rating' object.")
TypeError: Argument is already a 'Rating' object.
The results of openskill.rate are already Rating objects, so I removed the redundant openskill.create_rating()
After the fix, the error was gone, and I saw something like below.
Hello, I encountered the below error while running the
demos.evaluate_sr
The results of openskill.rate are already Rating objects, so I removed the redundant
openskill.create_rating()
After the fix, the error was gone, and I saw something like below.