UniformManifoldGeometry#
- class t3toolbox.uniform_manifold.UniformManifoldGeometry#
The Riemannian geometry of the uniform fixed-rank Tucker tensor train manifold (uniform mirror of
ManifoldGeometry).A stateless bundle of the chart-level choices that distinguish the manifold from the over-parametrized corewise geometry – the orthonormal frame (
frame()), the gauge projectionPi(project()), and the manifold retraction (retract()) – plus the ambient projection and transport. Tangents live inT_xMwith an orthonormal, gauged frame; the metric is Hilbert-Schmidt. All methods are per-element-mask-aware (varying ranks across the frame stackCare supported) and carry the per-element safe-mode preconditions (orthogonal frame, gauged variations;.all()over the stack). Use the module singletonUNIFORM_MANIFOLD. The corewise counterpart isUniformCorewiseGeometry.Examples
>>> import numpy as np >>> import t3toolbox.tucker_tensor_train as t3 >>> import t3toolbox.uniform_tucker_tensor_train as ut3 >>> import t3toolbox.uniform_manifold as ut3m >>> np.random.seed(0) >>> x = ut3.UniformTuckerTensorTrain.from_t3(t3.TuckerTensorTrain.randn((10, 11, 12), (3, 4, 3), (1, 2, 2, 1))) >>> frame = ut3m.UNIFORM_MANIFOLD.frame(x) # orthonormal frame at x >>> print(bool(frame.is_orthogonal().all())) True >>> v = ut3m.UNIFORM_MANIFOLD.randn(frame) # a standard Gaussian on T_xM (gauged) >>> print(bool(v.is_gauged().all())) True >>> y = ut3m.UNIFORM_MANIFOLD.retract(ut3m.UT3Tangent.zeros(frame)) # retract the zero tangent == the base point >>> print(bool(np.allclose(y.to_dense(), x.to_dense()))) True
Methods#
|
The orthonormal frame at |
|
Random tangent at |
|
A gauged random tangent at a random orthogonal base point (random direction, random frame). |
|
A gauged random tangent at |
|
The gauge projection |
Gauge |
|
|
The Hilbert-Schmidt inner product of two tangents -- the Riemannian metric on the manifold. |
|
The Hilbert-Schmidt norm of a tangent. Safe mode checks the frame orthogonal + variations |
|
Retract the step |
|
Project an ambient gradient onto |
|
Projective vector transport of |