MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / hyperparameters

Method hyperparameters

numpy_ml/factorization/factors.py:69–77  ·  view source on GitHub ↗

Return a dictionary of the model hyperparameters

(self)

Source from the content-addressed store, hash-verified

67
68 @property
69 def hyperparameters(self):
70 """Return a dictionary of the model hyperparameters"""
71 return {
72 "id": "ALSFactor",
73 "K": self.K,
74 "tol": self.tol,
75 "alpha": self.alpha,
76 "max_iter": self.max_iter,
77 }
78
79 def _init_factor_matrices(self, X, W=None, H=None):
80 """Randomly initialize the factor matrices"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected