Git Product home page Git Product logo

Comments (5)

danijar avatar danijar commented on August 16, 2024

Good to know, thanks for reporting this. You can just remove the cache decorator for now and it should all still work, without substantial performance difference. I will replace it with @functools.lru_cache(1000) in the next release so it works with older Python versions.

from crafter.

DanielS684 avatar DanielS684 commented on August 16, 2024

Thanks for the quick response but to clarify how would I remove the cache decorator?

from crafter.

danijar avatar danijar commented on August 16, 2024

There are many ways:
A) You could edit the file in your site-packages folder. The path to it should be printed in your error message.
B) You could clone the repo, edit the file, and run pip3 install ..
C) In your own code, before importing crafter, you could write functools.cache = functools.lru_cache.

from crafter.

DanielS684 avatar DanielS684 commented on August 16, 2024

Ok thank you for this project and also and the last question I have is about the module in general. When/ Are you going to implement multiagent use?

from crafter.

danijar avatar danijar commented on August 16, 2024

I made the update and the LRU cache should now work also for your Python version.

I like the idea but I don't have any plans for supporting multi-agent training in Crafter for now. Of course there are creatures other than the player in the world that it can interact with.

from crafter.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.