class_docstr: Class for the n-dimensional hyperboloid space.
  
  Class for the n-dimensional hyperboloid space as embedded in (n+1)-dimensional
  Minkowski space as the set of points with squared norm equal to -1. For other
  representations of hyperbolic spaces see the `Hyperbolic` class.
  
  Parameters
  ----------
  dim : int
      Dimension of the hyperbolic space.
class_docstr_tok: ["Class","for","the","n-dimensional","hyperboloid","space",".","Class","for","the","n-dimensional","hyperboloid","space","as","embedded","in","(","n+1",")","-dimensional","Minkowski","space","as","the","set","of","points","with","squared","norm","equal","to","-1",".","For","other","representations","of","hyperbolic","spaces","see","the","`","Hyperbolic","`","class",".","Parameters","--","--","--","--","--","dim",":","int","Dimension","of","the","hyperbolic","space","."]
docstr: Regularize a point to the canonical representation.
  
  Regularize a point to the canonical representation chosen
  for the hyperbolic space, to avoid numerical issues.
  
  Parameters
  ----------
  point : array-like, shape=[..., dim + 1]
      Point.
  
  Returns
  -------
  projected_point : array-like, shape=[..., dim + 1]
      Point in hyperbolic space in canonical representation
      in extrinsic coordinates.
docstr_tok: ["Regularize","a","point","to","the","canonical","representation",".","Regularize","a","point","to","the","canonical","representation","chosen","for","the","hyperbolic","space",",","to","avoid","numerical","issues",".","Parameters","--","--","--","--","--","point",":","array-like",",","shape=","[","...",",","dim","+","1","]","Point",".","Returns","--","--","--","-","projected_point",":","array-like",",","shape=","[","...",",","dim","+","1","]","Point","in","hyperbolic","space","in","canonical","representation","in","extrinsic","coordinates","."]
code: def regularize(self, point):
      """Regularize a point to the canonical representation.
  
      Regularize a point to the canonical representation chosen
      for the hyperbolic space, to avoid numerical issues.
  
      Parameters
      ----------
      point : array-like, shape=[..., dim + 1]
          Point.
  
      Returns
      -------
      projected_point : array-like, shape=[..., dim + 1]
          Point in hyperbolic space in canonical representation
          in extrinsic coordinates.
      """
      sq_norm = self.embedding_space.metric.squared_norm(point)
      if not gs.all(sq_norm):
          raise ValueError(
              "Cannot project a vector of norm 0. in the "
              "Minkowski space to the hyperboloid"
          )
      real_norm = gs.sqrt(gs.abs(sq_norm))
      return gs.einsum("...i,...->...i", point, 1.0 / real_norm)
  
imports: import math
  import geomstats.algebra_utils
  import geomstats.backend
  from geomstats.geometry._hyperbolic import HyperbolicMetric, _Hyperbolic
  from geomstats.geometry.base import LevelSet
  from geomstats.geometry.minkowski import Minkowski
  from geomstats.vectorization import repeat_out
label_desc: Use image node_id 7 for calling the Hyperboloid obj's underlying member method code with example usage: obj.regularize(point) and returns: gs