相关资料:
Ubuntu22.04系统安装DeepMind Lab
======================================================
import deepmind_lab import numpy as np # Create a new environment object. lab = deepmind_lab.Lab("demos/extra_entities", ['RGB_INTERLEAVED'], {'fps': '30', 'width': '80', 'height': '60'}) lab.reset(seed=1) # Execute 100 walk-forward steps and sum the returned rewards from each step. print(sum([lab.step(np.array([0,0,0,1,0,0,0], dtype=np.intc)) for i in range(0, 100)]))
标签:python,Ubuntu22.04,lab,Lab,DeepMind,np,sum From: https://www.cnblogs.com/devilmaycry812839668/p/16758120.html