Record Case Detail

Notes

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

Stderr

Traceback (most recent call last):
  File "autograder.py", line 414, in <module>
    moduleDict[moduleName] = loadModuleFile(moduleName, os.path.join(options.codeRoot, cp))
  File "autograder.py", line 146, in loadModuleFile
    return imp.load_module(moduleName, f, "%s.py" % moduleName, (".py", "r", imp.PY_SOURCE))
  File "/usr/lib/python3.6/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 781, in get_code
  File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "inference.py", line 418
    self.particles.append(permutations[x])
       ^
In

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


        

JOJ Answer

*** None) Particle filter full test: 0 inference errors.
*** PASS: ./test_cases/q7/2-ParticlePredict.test