question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Questions: How can I access the active population of current generation? / How can I ensure nonrepetitive individuals among the population?

See original GitHub issue

Hi!

I wrote my own diversity measure to be executed on every generation. I’m using the peek method to invoke my method so I can access the population via result.getPopulation() method. But by assessing the population i’ve noticed that population size increases during each evolution step. I tried to filter the population by generation and isValid method, but it didn’t seem to be correct because i’m getting a population greater than my population size parameter and there are duplicated individuals inside of it. So, here comes my questions:

How can I access the active population of current generation? How can I ensure nonrepetitive individuals among the population?

Accessing population final Population<IntegerGene, Double> population = result.getPopulation();

This is my genotype: Factory<Genotype<IntegerGene>> gtf = Genotype.of(IntegerChromosome.of(1, 5, (int) chromosomeSize));

=== Thank you for the library, by the way!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jeneticscommented, Oct 5, 2017

Good, I think #234 caused the problem.

0reactions
yoranlcommented, Oct 5, 2017

Was using 3.8! Thought it was 3.9, sorry. Running on 3.9 everything went fine! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Successful Strategies for Recruiting, Training, and Utilizing ...
e all want a healthy community, a peaceful place where people live and work together in harmony. We all have ideas about how...
Read more >
Systematic Sampling | A Step-by-Step Guide with Examples
In systematic sampling, researchers select members of the population for their sample at a regular interval (or k) determined in advance.
Read more >
cohort, cross sectional, and case-control studies
A questionnaire based cross sectional study explored the relation between A&E attendance and alcohol consumption in elderly persons. A recent example can be ......
Read more >
Section 2: Focus Groups 2.1 Gather and review existing data ...
Use focus groups when you want: • Narrative information about opinions, experiences, beliefs or perceived norms. • To get feedback in your clients'...
Read more >
The American Trends Panel | Pew Research Center
We do this to ensure representation on the panel that resembles the general population, and to avoid having to weight certain panelists too...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found