Skip to content
Snippets Groups Projects

change the simplex_queue to a SortedKeyList

Merged Bas Nijholt requested to merge fix_learnerND_scaling into stable-0.7
2 unresolved threads

I suddenly realized the reason why the test_learner_performance_is_invariant_under_scaling was failing for the LearnerND sometimes.

We were saving the rounded loss and then when a subsimplex was created from an existing simplex, we divided the rounded loss instead of dividing the unrounded loss and then rounding it again.

Using a SortedKeyList will make sure this doesn't happen.

Edited by Bas Nijholt

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Bas Nijholt added 2 commits

    added 2 commits

    • 7f54e216 - change the simplex_queue to a SortedKeyList
    • a554de38 - take fewer points to speed up the test for the LearnerND

    Compare with previous version

  • Bas Nijholt resolved all discussions

    resolved all discussions

  • If were doing it like this, wouldn't it be better to use sortedcollections.ItemSortedDict just like in !139 (merged), then we also do not need to keep track of the losses and the queue in a separate place.

  • Bas Nijholt added 2 commits

    added 2 commits

    • c68790b3 - change the simplex_queue to a SortedKeyList
    • d332b00e - take fewer points to speed up the test for the LearnerND

    Compare with previous version

  • Author Maintainer

    @Jorn I agree, however that would be a bit more work and I would prefer to merge this as is and implement the sortedcollections.ItemSortedDict at some later time.

  • 100 100 return point
    101 101
    102 102
    103 def _simplex_evaluation_priority(key):
    104 # We round the loss to 8 digits such that losses
    105 # are equal up to numerical precision will be considered
    106 # to be equal.
  • 100 100 return point
    101 101
    102 102
    103 def _simplex_evaluation_priority(key):
    104 # We round the loss to 8 digits such that losses
    105 # are equal up to numerical precision will be considered
    106 # to be equal.
    107 loss, simpl, subsimpl = key
  • Anton Akhmerov
  • Other than the above LGTM. Please also open an issue for replacing SortedKeyList with ItemSortedDict.

  • I agree; last couple of points then merge

  • Bas Nijholt mentioned in issue #133

    mentioned in issue #133

  • Bas Nijholt added 3 commits

    added 3 commits

    • 7c340516 - 1 commit from branch master
    • 8ec83c23 - change the simplex_queue to a SortedKeyList
    • 590d90f5 - take fewer points to speed up the test for the LearnerND

    Compare with previous version

  • Bas Nijholt changed the description

    changed the description

  • Bas Nijholt changed target branch from master to stable-0.7

    changed target branch from master to stable-0.7

  • Bas Nijholt enabled an automatic merge when the pipeline for 590d90f5 succeeds

    enabled an automatic merge when the pipeline for 590d90f5 succeeds

  • merged

  • Bas Nijholt mentioned in commit b9009142

    mentioned in commit b9009142

  • Please register or sign in to reply
    Loading