bowen-xu / PyNARS

MIT License
26 stars 8 forks source link

[Bug] "Invalid case." during induction_composition() in examples #108

Open kripper opened 3 months ago

kripper commented 3 months ago

Hello,

I was trying to fix the examples Pong and Pong2, but it seems there are some deeper issues. Maybe you can help here: https://github.com/bowen-xu/PyNARS/pull/107

Please note that the atariari interface changed and I had to fix the wrappers:

    1) site-packages/atariari/benchmark/wrapper.py        
        #observation, reward, done, info = self.env.step(action)
        #return observation, reward, done, self.info(info)
        observation, reward, done, truncated, info = self.env.step(action)
        return observation, reward, done, truncated, self.info(info)

    2) site-packages/gym/wrappers/order_enforcing.py
        #observation, reward, done, info = self.env.step(action)
        #return observation, reward, done, info
        return self.env.step(action)