Coder Social home page Coder Social logo

Comments (6)

andreped avatar andreped commented on June 5, 2024 1

I think it is easier if you just test the model during deployment. You should see some bugs quite early on - especially as the team gets full. I'm not really sure what is causing it, but take a look.

I would recommend having two monitors, one displaying the game where the AI is playing, and the other showing the terminal.

from super-ml-pets.

andreped avatar andreped commented on June 5, 2024

This might be related to this issue: #15

from super-ml-pets.

GoldExplosion avatar GoldExplosion commented on June 5, 2024

I think the Pet is not sold but pilled(you probably didn't catch it since it was happening very fast). There is an issue with pilling a pet in this framework probably because of the following piece of code

if env.player.lives <= 3:

It is not a problem with sapai itself as pilling works properly in the engine's tests. Pilling a Pet adds -1000 to the Pet's health. The above code keep the AI player from dying but also breaks the sapai engine's pilling mechanism and allows Pet with -1000 health to continue playing.
We need to know if the AI won or lost against real opponent so that we can avoid using altering the number of lives remaining.

from super-ml-pets.

andreped avatar andreped commented on June 5, 2024

Makes sense. I think it is very smart of us to get the deployment stuff working properly, before doing a lot more on the RL-aspect. I believe the model I have trained is actually decent, it just fails to win more than 2-3 games, as bugs seem to occur when the team is full (or after shuffling a lot). Not really sure what the main reason is.

Would be great if you could take a look at it.

from super-ml-pets.

GoldExplosion avatar GoldExplosion commented on June 5, 2024

Yes, will do.

from super-ml-pets.

andreped avatar andreped commented on June 5, 2024

The issue I observed was not related to the team being full, but rather to how teams were reordered. This has now been fixed in fa8516b.

Could be that there is a strange behaviour if an animal is sold, but I have not observed it yet. Could create a separate issue if the sold event is broken.

from super-ml-pets.

Related Issues (20)

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.