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