Giter VIP home page Giter VIP logo

Comments (3)

clarencecastillo avatar clarencecastillo commented on June 26, 2024

Same issue applies to the organism's 'identity' and 'deme'. Expected results do not get reflected in the final report. Cause of bug is currently unknown.

Observations:

  1. Organism takes in the last generated 'identity' as the entire population's 'identity' individually.
  2. Implementing the methods inside genetic.py does not show any changes.
  3. Possible (least likely to be for this case) cause could be individuals inheriting or sharing the changes of the status dictionary keys.

from dose.

clarencecastillo avatar clarencecastillo commented on June 26, 2024

Issue now resolved. Problem was caused by genetic.py's Organism.clone(). Function does not properly deepcopy() the status dictionary of each organisms. It simply references all status dictionary of all organisms into one original dictionary. Reporting location, deme, identity and genome now show the desired results. Was resolved by manually referencing each of the original organism to be cloned's status dictionary keys into the different clones. See genetic.py.

  1. Location of every individual now varies according to it's deployment scheme.
  2. Deme of every individual is named according to the population's name.
  3. Identity of every individual now varies according to it's randomly generated 32-char name.
  4. Genome variation among all individuals remain different among each generation. No important changes applied as this never did have issues.

from dose.

clarencecastillo avatar clarencecastillo commented on June 26, 2024
  1. Creation of new Organism instances within mating schemes seems to have the same problems with this issue. (See new Issue #29)
  2. Solution to this issue is now obsolete (See commit: 75766b7). Replaced with a new method that incorporates the status dictionary to the initialization of Organism class itself which makes it bound to the Organism class. Also reverted clone function to its previous state. (See commit: b5b500c)

from dose.

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.