Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Multiple parents for same data point in XY graph #31

Open
v-i-s-h opened this issue Feb 19, 2020 · 4 comments
Open

Multiple parents for same data point in XY graph #31

v-i-s-h opened this issue Feb 19, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@v-i-s-h
Copy link

v-i-s-h commented Feb 19, 2020

The XY graph for capturing the relationship with parents and child data points are really helpful. But most of the time, we create a new child node by combining two (or more) parent nodes. In the current version, I can see

Multiple points can share the same parent.

Is it possible to include multiple parents to the same child so that the "family tree" can be traced during the experiment?

@jrapin
Copy link

jrapin commented Feb 19, 2020

For now it's not possible, but I would definitely be interested in it too :D

@danthe3rd
Copy link
Contributor

Hi,

It's indeed something we are interested in doing for future versions. My only worry is about readability. If each point has 2 parents, the whole ancestors tree can contain thousands of points in the early generations, which will make the plot hard to read. So there are several ways to do it:

  • either highlight all the ancestors
  • highlight the most recent N ancestors (but we have to hardcode a limit N somewhere)
  • only highlight direct parents if there is more than one parent

For your use-case, how many datapoints do you have typically, over how many generations?

Thank you for the suggestion :)

@danthe3rd danthe3rd added the enhancement New feature or request label Feb 19, 2020
@v-i-s-h
Copy link
Author

v-i-s-h commented Feb 20, 2020

Hi @danthe3rd
My experiments are on NeuroEvolution and relatively small, up to 64 generations and population ranging from 32 - 128 candidates. And this could be an interesting tool to analyze one experiment at a time also.

As you rightly pointed out, if all ancestors are highlighted, readability may be an issue. Right now, the highlighting is done as a thick line. What if, with multiple parents, the highlighting it still thick, but as the distance in X-axis increases, the alpha-factor (opacity) is reduced? This way, the immediate parents can be easily visualized and far away ancestors are highlighted with less visual clutter?

@danthe3rd
Copy link
Contributor

Oh that sounds like a good solution!
More generically (because the X axis can be arbitrary, and not always increasing), we could divide the alpha factor by the number of parents (or a function of it) - which would preserve the current behavior for cases with 1 parent or less.
I'll give it a try in the coming weeks and let you know later :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants