浏览代码

Fix utils test

/develop/add-fire/halfentropy
Ervin Teng 4 年前
当前提交
50a7e952
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/tests/torch/test_utils.py

2
ml-agents/mlagents/trainers/tests/torch/test_utils.py


for ent in entropies.flatten():
# entropy of standard normal at 0
assert ent == pytest.approx(2.83, abs=0.01)
assert ent == pytest.approx(1.42, abs=0.01)
# Test continuous
# Add two dists to the list.

正在加载...
取消
保存