Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

dict_items([(<generator object ParticleFilter.initializeUniformly.<locals>.<genexpr> at 0x7f5ebb7680f8>, 1.0), ((5, 4), 0.0), ((5, 2), 0.0), ((1, 4), 0.0), ((7, 4), 0.0), ((9, 4), 0.0), ((3, 4), 0.0), ((2, 4), 0.0), ((8, 4), 0.0)])
dict_items([((5, 4), 0.125), ((3, 4), 0.125), ((1, 4), 0.125), ((7, 4), 0.125), ((9, 4), 0.125), ((5, 2), 0.125), ((2, 4), 0.125), ((8, 4), 0.125), (<generator object ParticleFilter.initializeUniformly.<locals>.<genexpr> at 0x7f5ebb7680f8>, 0.0)])
*** None) Distribution deviated at move 0 by 1.1250 (squared norm) from the correct answer.
      key:     student                  reference                
   (5, 4):     0.0                      0.125                    
   (1, 4):     0.0                      0.125                    
<generator object ParticleFilter.initializeUniformly.<locals>.<genexpr> at 0x7f5ebb7680f8>:     1.0                      0.0                      
   (7, 4):     0.0                      0.125                    
   (9, 4):     0.0                      0

JOJ Answer

*** None) Particle filter observe test: 0 inference errors.
*** PASS: ./test_cases/q6/1-ParticleUpdate.test