MCPcopy Create free account

hub / github.com/Graph-and-Geometric-Learning/hyperbolic-transformer / functions

Functions650 in github.com/Graph-and-Geometric-Learning/hyperbolic-transformer

Method__init__
(self, in_channels, hidden_channels, args)
medium/gnns.py:740
Method__init__
based off of ogb NodePropPredDataset https://github.com/snap-stanford/ogb/blob/master/ogb/nodeproppred/dataset.py Gives torch
medium/dataset.py:22
Method__init__
(self, runs, info=None)
medium/logger.py:6
Method__init__
Initializes a TransConvLayer instance. Args: manifold: The manifold to use for the layer. in_channels: The n
medium/hypformer.py:15
Method__init__
(self, args)
medium/hypformer.py:277
Method__init__
Initialize a Lorentz manifold with k, curvature is -1/k. Parameters: k (float): Curvature parameter of the manifold.
medium/manifolds/lorentz.py:11
Method__init__
(self, manifold, in_features, manifold_out=None)
medium/manifolds/hyp_layer.py:12
Method__init__
(self, manifold, manifold_out=None)
medium/manifolds/hyp_layer.py:35
Method__init__
(self, manifold, activation, manifold_out=None)
medium/manifolds/hyp_layer.py:52
Method__init__
(self, manifold, dropout, manifold_out=None)
medium/manifolds/hyp_layer.py:70
Method__init__
(self, manifold, in_features, out_features, bias=True, manifold_out=None)
medium/manifolds/hyp_layer.py:98
Method__init__
(self, model, args)
medium/manifolds/hyp_layer.py:163
Method__init__
(self, manifold, in_channels, out_channels, num_heads, use_weight=True, args=None)
Hypformer/hypformer.py:13
Method__init__
Initializes a HypFormer object. Args: in_channels (int): The number of input channels. hidden_channels (int)
Hypformer/hypformer.py:242
Method__init__
(self)
Hypformer/main.py:24
Method__init__
Initialize a Lorentz manifold with curvature k. Parameters: k (float): Curvature of the manifold. learnable
Hypformer/manifolds/lorentz.py:14
Method__init__
(self, manifold, in_features, manifold_out=None)
Hypformer/manifolds/hyp_layer.py:15
Method__init__
(self, manifold, manifold_out=None)
Hypformer/manifolds/hyp_layer.py:37
Method__init__
(self, manifold, activation, manifold_out=None)
Hypformer/manifolds/hyp_layer.py:52
Method__init__
(self, manifold, dropout, manifold_out=None)
Hypformer/manifolds/hyp_layer.py:68
Method__init__
(self, manifold, in_features, out_features, bias=True, manifold_out=None)
Hypformer/manifolds/hyp_layer.py:94
Method__init__
(self, model, args)
Hypformer/manifolds/hyp_layer.py:155
Method__init__
(self, manifold, in_features, manifold_out=None)
Hypformer/manifolds/layer.py:20
Method__init__
(self, manifold, manifold_out=None)
Hypformer/manifolds/layer.py:53
Method__init__
(self, manifold, activation, manifold_out=None)
Hypformer/manifolds/layer.py:79
Method__init__
(self, manifold, dropout, manifold_out=None)
Hypformer/manifolds/layer.py:106
Method__init__
(self, manifold, in_features, out_features, bias=True, dropout=0.0, manifold_out=None)
Hypformer/manifolds/layer.py:137
Method__init__
(self, model, args)
Hypformer/manifolds/layer.py:221
Method__len__
(self)
large/dataset.py:82
Method__len__
(self)
medium/dataset.py:71
Method__repr__
(self)
large/gnns.py:649
Method__repr__
(self)
large/dataset.py:85
Method__repr__
(self)
medium/gnns.py:661
Method__repr__
(self)
medium/dataset.py:74
Method_check_point_on_manifold
Check if a point lies on the manifold. Parameters: x (torch.Tensor): Point to check. atol (float): Absolute
large/manifolds/lorentz.py:20
Method_check_point_on_manifold
Check if a point lies on the manifold. Parameters: x (torch.Tensor): Point to check. atol (float): Absolute
Hypformer/manifolds/lorentz.py:24
Method_check_vector_on_tangent
Check if a vector lies on the tangent space at a point. Parameters: x (torch.Tensor): Point on the manifold.
large/manifolds/lorentz.py:40
Method_check_vector_on_tangent
Check if a vector lies on the tangent space at a point. Parameters: x (torch.Tensor): Point on the manifold.
Hypformer/manifolds/lorentz.py:44
Functionacosh
Numerically stable arccosh that never returns NaNs. :param x: The input tensor. :return: log(x + sqrt(max(x^2 - 1, eps))
large/manifolds/utils.py:293
Functionacosh
Numerically stable arccosh that never returns NaNs. :param x: The input tensor. :return: log(x + sqrt(max(x^2 - 1, eps))
medium/manifolds/manifold_utils.py:294
Functionacosh
Numerically stable arccosh that never returns NaNs. :param x: The input tensor. :return: log(x + sqrt(max(x^2 - 1, eps))
Hypformer/manifolds/utils.py:293
Functionadj_mul
(adj_i, adj, N)
large/data_utils.py:255
Functionatanh
Numerically stable arctanh that never returns NaNs. :param x: The input tensor. :return: log(x + sqrt(max(x^2 - 1, eps))
large/manifolds/utils.py:261
Functionatanh
Numerically stable arctanh that never returns NaNs. :param x: The input tensor. :return: log(x + sqrt(max(x^2 - 1, eps))
medium/manifolds/manifold_utils.py:262
Functionatanh
Numerically stable arctanh that never returns NaNs. :param x: The input tensor. :return: log(x + sqrt(max(x^2 - 1, eps))
Hypformer/manifolds/utils.py:261
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
large/manifolds/utils.py:231
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
large/manifolds/utils.py:286
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
medium/manifolds/manifold_utils.py:232
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
medium/manifolds/manifold_utils.py:287
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
Hypformer/manifolds/utils.py:231
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
Hypformer/manifolds/utils.py:256
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
Hypformer/manifolds/utils.py:286
Functionbroadcast_shapes
Apply numpy broadcasting rules to shapes.
large/manifolds/utils.py:145
Functionbroadcast_shapes
Apply numpy broadcasting rules to shapes.
medium/manifolds/manifold_utils.py:146
Functionbroadcast_shapes
Apply numpy broadcasting rules to shapes.
Hypformer/manifolds/utils.py:145
Functioncanonical_dims
(dims: List[int], maxdim: int)
large/manifolds/utils.py:134
Functioncanonical_dims
(dims: List[int], maxdim: int)
medium/manifolds/manifold_utils.py:135
Functioncanonical_dims
(dims: List[int], maxdim: int)
Hypformer/manifolds/utils.py:134
Functioncanonical_manifold
Get a canonical manifold. If a manifold is wrapped with Scaled. Some attributes may not be available. This should help if you really need th
large/manifolds/utils.py:187
Functioncanonical_manifold
Get a canonical manifold. If a manifold is wrapped with Scaled. Some attributes may not be available. This should help if you really need th
medium/manifolds/manifold_utils.py:188
Functioncanonical_manifold
Get a canonical manifold. If a manifold is wrapped with Scaled. Some attributes may not be available. This should help if you really need th
Hypformer/manifolds/utils.py:187
Functioncdist
(x: torch.Tensor, y: torch.Tensor, k: torch.Tensor)
large/manifolds/lorentz_math.py:139
Functioncdist
Computes the pairwise geodesic distance between two sets of points x and y.
medium/manifolds/lorentz_math.py:142
Functioncdist
Computes the pairwise geodesic distance between two sets of points x and y.
Hypformer/manifolds/lorentz_math.py:142
Methodcdist
Compute pairwise distances between points in the Lorentz model. Parameters ---------- x : torch.Tensor T
large/manifolds/lorentz.py:89
Methodcdist
Compute pairwise distances between points in the Lorentz model. Parameters ---------- x : torch.Tensor T
medium/manifolds/lorentz.py:50
Methodcdist
Compute the pairwise distance between points in x and y. Parameters: x (torch.Tensor): First set of points.
Hypformer/manifolds/lorentz.py:93
Methodcinner
Compute the Lorentzian inner product. Parameters ---------- x : torch.Tensor First tensor. y : t
large/manifolds/lorentz.py:364
Methodcinner
Compute the cross-inner product of two points. Parameters: x (torch.Tensor): First point. y (torch.Tensor):
Hypformer/manifolds/lorentz.py:344
Functionclamp_abs
(x, eps: float = 1e-15)
large/manifolds/utils.py:87
Functionclamp_abs
(x, eps: float = 1e-15)
medium/manifolds/manifold_utils.py:88
Functionclamp_abs
(x, eps: float = 1e-15)
Hypformer/manifolds/utils.py:87
Functionconvert_to_adj
convert from pyg format edge_index to n by n adj matrix
large/data_utils.py:248
Functioncopy_or_set_
Copy or inplace set from :code:`source` to :code:`dest`. A workaround to respect strides of :code:`dest` when copying :code:`source`. Th
large/manifolds/utils.py:31
Functioncopy_or_set_
Copy or inplace set from :code:`source` to :code:`dest`. A workaround to respect strides of :code:`dest` when copying :code:`source`. Th
medium/manifolds/manifold_utils.py:31
Functioncopy_or_set_
Copy or inplace set from :code:`source` to :code:`dest`. A workaround to respect strides of :code:`dest` when copying :code:`source`. Th
Hypformer/manifolds/utils.py:31
Functioncosh
(x: torch.Tensor)
large/manifolds/utils.py:207
Functioncosh
(x: torch.Tensor)
medium/manifolds/manifold_utils.py:208
Functioncosh
(x: torch.Tensor)
Hypformer/manifolds/utils.py:207
Functioncount_parameters
(model)
large/data_utils.py:300
Functiondist
r""" Compute geodesic distance on the Hyperboloid. .. math:: d_{\mathcal{L}}^{k}(\mathbf{x}, \mathbf{y})=\sqrt{k} \operatorname{arco
large/manifolds/lorentz_math.py:77
Functiondist
r""" Compute geodesic distance on the Hyperboloid. .. math:: d_{\mathcal{L}}^{k}(\mathbf{x}, \mathbf{y})=\sqrt{k} \operatorname{arco
medium/manifolds/lorentz_math.py:79
Functiondist
r""" Compute geodesic distance on the Hyperboloid. .. math:: d_{\mathcal{L}}^{k}(\mathbf{x}, \mathbf{y})=\sqrt{k} \operatorname{arco
Hypformer/manifolds/lorentz_math.py:79
Methoddist
Compute the distance between two points on the manifold. Parameters: x (torch.Tensor): First point. y (torch
large/manifolds/lorentz.py:60
Methoddist
Compute the distance between two points on the manifold. Parameters: x (torch.Tensor): First point. y (torch
medium/manifolds/lorentz.py:21
Methoddist
Compute the distance between two points on the manifold. Parameters: x (torch.Tensor): First point. y (torch
Hypformer/manifolds/lorentz.py:64
Functiondist0
r""" Compute geodesic distance on the Hyperboloid to zero point. .. math:: Parameters ---------- x : tensor point on Hyp
large/manifolds/lorentz_math.py:110
Functiondist0
r""" Compute geodesic distance on the Hyperboloid to zero point. .. math:: Parameters ---------- x : tensor point on Hyp
medium/manifolds/lorentz_math.py:112
Functiondist0
r""" Compute geodesic distance on the Hyperboloid to zero point. .. math:: Parameters ---------- x : tensor point on Hyp
Hypformer/manifolds/lorentz_math.py:112
Methoddist0
Compute the distance from the origin to a point on the manifold. Parameters: x (torch.Tensor): Point on the manifold.
large/manifolds/lorentz.py:75
Methoddist0
Compute the distance from the origin to a point on the manifold. Parameters: x (torch.Tensor): Point on the manifold.
medium/manifolds/lorentz.py:36
Methoddist0
Compute the distance from the origin to a point on the manifold. Parameters: x (torch.Tensor): Point on the manifold.
Hypformer/manifolds/lorentz.py:79
Functiondrop_dims
(tensor: torch.Tensor, dims: List[int])
large/manifolds/utils.py:118
Functiondrop_dims
(tensor: torch.Tensor, dims: List[int])
medium/manifolds/manifold_utils.py:119
Functiondrop_dims
(tensor: torch.Tensor, dims: List[int])
Hypformer/manifolds/utils.py:118
Functionegrad2rgrad
r""" Translate Euclidean gradient to Riemannian gradient on tangent space of :math:`x`. .. math:: \Pi_{\mathbb{R}^{d+1} \rightarrow
large/manifolds/lorentz_math.py:459
Functionegrad2rgrad
r""" Translate Euclidean gradient to Riemannian gradient on tangent space of :math:`x`. .. math:: \Pi_{\mathbb{R}^{d+1} \rightarrow
medium/manifolds/lorentz_math.py:465
Functionegrad2rgrad
r""" Translate Euclidean gradient to Riemannian gradient on tangent space of :math:`x`. .. math:: \Pi_{\mathbb{R}^{d+1} \rightarrow
Hypformer/manifolds/lorentz_math.py:465
Methodegrad2rgrad
Convert Euclidean gradient to Riemannian gradient. Parameters: x (torch.Tensor): Point on the manifold. u (t
large/manifolds/lorentz.py:197
Methodegrad2rgrad
Convert Euclidean gradient to Riemannian gradient. Parameters: x (torch.Tensor): Point on the manifold. u (t
medium/manifolds/lorentz.py:160
← previousnext →301–400 of 650, ranked by callers