Commit 3c54016
refactor: move optimization out of init and into fit (#170)
* style: per sklearn, attributes learned from data end with underscore
* refactor: move optimization out of init and into fit
* fix: use new fit() for test
* style: end fit() with return self
* docs: update docstring to reflect new functionality
* refactor: use rho and eta in fit
* feat: use reset for sequential refinements
* fix: use copies for safety
---------
Co-authored-by: John Halloran <jhalloran@oxy.edu>1 parent de54a43 commit 3c54016
File tree
3 files changed
+118
-89
lines changed- src/diffpy/snmf
- tests
3 files changed
+118
-89
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments