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

Method hyperparameters

numpy_ml/factorization/factors.py:218–225  ·  view source on GitHub ↗

Return a dictionary of the model hyperparameters

(self)

Source from the content-addressed store, hash-verified

216
217 @property
218 def hyperparameters(self):
219 """Return a dictionary of the model hyperparameters"""
220 return {
221 "id": "NMF",
222 "K": self.K,
223 "tol": self.tol,
224 "max_iter": self.max_iter,
225 }
226
227 def _init_factor_matrices(self, X, W, H):
228 """Initialize the factor matrices using vanilla ALS"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected