Skip to content
Snippets Groups Projects

WIP: add support for neighbours in loss computation in LearnerND

Open Jorn Hoofwijk requested to merge 120--learnernd-curvature into master
2 unresolved threads

Closes #120

TODO add support to output in

RNR^N

TODO rewrite the code to be more readable, I will do this next week

image

As you can see in the plot, it is getting hard to distinguish the LearnerND from the Learner2D :D

Merge request reports

Pipeline #13210 passed

Pipeline passed for f53c378b on 120--learnernd-curvature

Test coverage 79.00% (0.00%) from 1 job
Approval is optional
Merge unavailable: merge requests are read-only on archived projects.

Merge details

  • The source branch is 51 commits behind the target branch.
  • 0 commits and 1 merge commit will be added to .
  • Source branch will not be deleted.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
606 601 """Simplices originating from a vertex don't overlap."""
607 602 raise NotImplementedError
608 603
604 def get_neighbours_from_vertices(self, simplex):
  • Bas Nijholt added 1 commit

    added 1 commit

    • 39ddfadd - add support for neighbours in loss computation in LearnerND

    Compare with previous version

  • Bas Nijholt added 1 commit

    added 1 commit

    • 2420c417 - add support for neighbours in loss computation in LearnerND

    Compare with previous version

  • Bas Nijholt added 1 commit

    added 1 commit

    • c771e7ab - add support for neighbours in loss computation in LearnerND

    Compare with previous version

  • Bas Nijholt added 1 commit

    added 1 commit

    • a339de54 - add support for neighbours in loss computation in LearnerND

    Compare with previous version

  • Bas Nijholt added 1 commit

    added 1 commit

    • c336a6e1 - add support for neighbours in loss computation in LearnerND

    Compare with previous version

  • Bas Nijholt added 1 commit

    added 1 commit

    • f53c378b - add support for neighbours in loss computation in LearnerND

    Compare with previous version

  • Joseph Weston
  • 80 at the boundary.
    81
    82 Returns
    83 -------
    84 loss : float
    85 """
    86
    87 neighbors = [n for n in neighbors if n is not None]
    88 if len(neighbors) == 0:
    89 return 0
    90
    91 return sum(simplex_volume_in_embedding([*simplex, neighbour])
    92 for neighbour in neighbors) / len(neighbors)
    93
    94 def get_curvature_loss(curvature_factor=1, volume_factor=0, input_volume_factor=0.05):
    95 # XXX: add doc-string!
  • mentioned in issue #125 (closed)

  • Please register or sign in to reply
    Loading