Skip to content

Conversation

@vabor112
Copy link
Member

@vabor112 vabor112 commented Aug 6, 2024

This PR implements a new space: the hypercube graph space $\{0,1\}^d$ of binary vectors.

It includes a new space (HypercubeGraph), the respective notebook HypercubeGraph.ipynb, a theory page docs/theory/hypercube_graph.rst, and tests.

@vabor112 vabor112 changed the title Spaces for binary vectors, labeled unweighted graphs and unlabeled unweighted graphs The Hypercube space for binary vectors and labeled unweighted graphs Aug 9, 2024
@vabor112 vabor112 marked this pull request as ready for review August 11, 2024 12:58
Copy link
Collaborator

@stoprightthere stoprightthere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! I have left some comments about the code.

The GeometricKernels space representing the d-dimensional hypercube graph
$C^d = \{0, 1\}^d$, the combinatorial space of binary vectors of length $d$.
The elements of this space are represented by d-dimensional boolean vectors.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a particular reason for using boolean vectors, as opposed to, say, integer vectors?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. To save memory. In the implementation of my dreams, they should be actual bit-arrays. This is much harder than what I did here though, especially if the implementation should be backend-independent.
  2. Interpretation. This is a space of binary vectors. Binary ≈ Boolean.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bool requires as much memory as int, so this argument doesn't quite hold. And everyone knows that binary means zeros and ones :)

@vabor112
Copy link
Member Author

Revised.

Copy link
Collaborator

@stoprightthere stoprightthere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vabor112 vabor112 merged commit 1ef797b into main Aug 15, 2024
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.

3 participants