Return a dictionary of the model hyperparameters
(self)
| 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""" |
nothing calls this directly
no outgoing calls
no test coverage detected