Skip to content

Fix leveled layout#1

Open
taugr wants to merge 1 commit into
crener:masterfrom
taugr:FixLeveledLayout
Open

Fix leveled layout#1
taugr wants to merge 1 commit into
crener:masterfrom
taugr:FixLeveledLayout

Conversation

@taugr

@taugr taugr commented Jun 10, 2020

Copy link
Copy Markdown

The diff of LeveledLayout.cs looks horrific. I suggest just looking at the new version as I did something a bit different.

I noticed a couple of issues with some of the layout unit tests which I've fixed:

  1. ConvergenceDelayedLayout was checking the wrong entries in levels 1 and 2 (branch 2 should be in level 2).
  2. BackPropagationSkipLayout and BackPropagationSkipLayout2 were asserting there are 4 levels even though it later checked the content of 5 levels (5 is correct).

@crener

crener commented Jun 13, 2020

Copy link
Copy Markdown
Owner

I've fixed the the tests to check for both X and Y axis rather than just the X axis which should make it much more specific what the layout should be doing. My implementation entirely fails these (passes about 25%) so... thats great :(

Also made the tests test an interface so it should be easier to reuse the tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants