sgdml.solvers package¶
sgdml.solvers.analytic module¶
sgdml.solvers.iterative module¶
-
class
sgdml.solvers.iterative.
Iterative
(gdml_train, desc, max_memory, max_processes, use_torch, callback=None)[source]¶ Bases:
object
-
_cho_factor_stable
(M, pre_reg=False, eps_mag_max=1)[source]¶ Performs a Cholesky decompostion of a matrix, but regularizes as needed until its positive definite.
- Parameters
M (
numpy.ndarray
) – Matrix to factorize.pre_reg (boolean, optional) – Regularize M right away (machine precision), before trying to factorize it (default: False).
- Returns
numpy.ndarray
– Matrix whose upper or lower triangle contains the Cholesky factor of a. Other parts of the matrix contain random data.boolean – Flag indicating whether the factor is in the lower or upper triangle
-