You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nmf/nmf.py
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,7 @@ def run_nmf(
205
205
defintegrative_nmf(
206
206
X: List[Union[np.array, torch.tensor]],
207
207
n_components: int,
208
-
init: Optional[str]=None,
208
+
init: str='normal',
209
209
algo: str="halsvar",
210
210
mode: str="online",
211
211
tol: float=1e-4,
@@ -249,8 +249,8 @@ def integrative_nmf(
249
249
The input list of non-negative matrices of shape (n_samples_i, n_features), one per batch. The n_samples_i is number of samples in batch i, and all batches must have the same number of features.
250
250
n_components: ``int``
251
251
Number of components achieved after iNMF.
252
-
init: ``str``, optional, default: ``None``
253
-
Method for initialization on H, W, and V matrices. Available options are: ``norm``, ``uniform``, meaning using random numbers generated from Normal or Uniform distribution.
252
+
init: ``str``, optional, default: ``normal``
253
+
Method for initialization on H, W, and V matrices. Available options are: ``normal`` or ``uniform``, meaning using random numbers generated from Normal or Uniform distribution.
254
254
If ``None``, use ``norm`` for online mode, while ``uniform`` for batch mode, in order to achieve best performance.
255
255
algo: ``str``, optional, default: ``halsvar``
256
256
Choose from ``mu`` (Multiplicative Update), ``halsvar`` (Hierarchical Alternative Least Square variant, mimic bpp for better convergence) and ``bpp`` (alternative non-negative least squares with Block Principal Pivoting method).
@@ -321,9 +321,6 @@ def integrative_nmf(
321
321
ifmodenotin {'batch', 'online'}:
322
322
raiseValueError("Parameter mode must be a valid value from ['batch', 'online']!")
0 commit comments