|
1 | 1 | import numpy as np |
2 | 2 | from snmf_class import SNMFOptimizer |
3 | 3 |
|
4 | | -init_comps_file = np.loadtxt("input/X0.txt", dtype=float) |
| 4 | +init_components_file = np.loadtxt("input/X0.txt", dtype=float) |
5 | 5 | source_matrix_file = np.loadtxt("input/MM.txt", dtype=float) |
6 | 6 | init_stretch_file = np.loadtxt("input/A0.txt", dtype=float) |
7 | 7 | init_weights_file = np.loadtxt("input/W0.txt", dtype=float) |
8 | 8 |
|
9 | 9 | my_model = SNMFOptimizer( |
10 | 10 | source_matrix=source_matrix_file, |
11 | 11 | init_weights=init_weights_file, |
12 | | - init_comps=init_comps_file, |
| 12 | + init_components=init_components_file, |
13 | 13 | init_stretch=init_stretch_file, |
14 | 14 | ) |
15 | 15 |
|
16 | 16 | print("Done") |
17 | | -np.savetxt("my_norm_comps.txt", my_model.comps, fmt="%.6g", delimiter=" ") |
| 17 | +np.savetxt("my_norm_components.txt", my_model.components, fmt="%.6g", delimiter=" ") |
18 | 18 | np.savetxt("my_norm_weights.txt", my_model.weights, fmt="%.6g", delimiter=" ") |
19 | 19 | np.savetxt("my_norm_stretch.txt", my_model.stretch, fmt="%.6g", delimiter=" ") |
0 commit comments