deep-traffic-2019's People
deep-traffic-2019's Issues
Unit tests fail
Running the unit tests with the command below, I get 3 failed tests.
Mac OS 10.14.5, Python 3.7.3, numpy 1.16.4, gym 0.10.9
python3 -m unittest tests/libtraffic/test_env.py
......F....FF.
======================================================================
FAIL: test_apply_action (tests.libtraffic.test_env.TestTrafficState)
----------------------------------------------------------------------
Traceback (most recent call last):
File "deep-traffic-2019/tests/libtraffic/test_env.py", line 120, in test_apply_action
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
File "/usr/local/lib/python3.7/site-packages/numpy/testing/_private/utils.py", line 1015, in assert_array_almost_equal
precision=decimal)
File "/usr/local/lib/python3.7/site-packages/numpy/testing/_private/utils.py", line 827, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 6 decimals
Mismatch: 13.3%
Max absolute difference: 0.9975
Max relative difference: 0.9975
x: array([[1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. ,
1. , 1. , 0.0075, 0.0075, 0.0075, 0.0075, 1. , 1. ,
1. , 1. , 1. , 1. ],...
y: array([[1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 0.01,
0.01, 0.01, 0.01, 1. , 1. , 1. , 1. , 1. , 1. ],
[1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. ,...
======================================================================
FAIL: test_render_state (tests.libtraffic.test_env.TestTrafficState)
----------------------------------------------------------------------
Traceback (most recent call last):
File "deep-traffic-2019/tests/libtraffic/test_env.py", line 68, in test_render_state
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
File "/usr/local/lib/python3.7/site-packages/numpy/testing/_private/utils.py", line 1015, in assert_array_almost_equal
precision=decimal)
File "/usr/local/lib/python3.7/site-packages/numpy/testing/_private/utils.py", line 827, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 6 decimals
Mismatch: 13.3%
Max absolute difference: 0.9975
Max relative difference: 0.9975
x: array([[1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. ,
1. , 1. , 0.0075, 0.0075, 0.0075, 0.0075, 1. , 1. ,
1. , 1. , 1. , 1. ],...
y: array([[1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 0.01,
0.01, 0.01, 0.01, 1. , 1. , 1. , 1. , 1. , 1. ],
[1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. ,...
======================================================================
FAIL: test_safety_system (tests.libtraffic.test_env.TestTrafficState)
----------------------------------------------------------------------
Traceback (most recent call last):
File "deep-traffic-2019/tests/libtraffic/test_env.py", line 171, in test_safety_system
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
File "/usr/local/lib/python3.7/site-packages/numpy/testing/_private/utils.py", line 904, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/usr/local/lib/python3.7/site-packages/numpy/testing/_private/utils.py", line 827, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
Mismatch: 100%
Max absolute difference: 9.9925
Max relative difference: inf
x: array([[1. , 1. , 1. , 1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. , 1. , 0.0075, 0.0075,
0.0075, 0.0075, 1. , 1. ],...
y: array([[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10,
10, 10, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
----------------------------------------------------------------------
Ran 14 tests in 0.314s
FAILED (failures=3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.