Skip to content
Snippets Groups Projects
Commit 8b7abf82 authored by vkarve2's avatar vkarve2
Browse files

Replace cSNMF.py

parent 3377b529
No related branches found
No related tags found
No related merge requests found
......@@ -70,12 +70,14 @@ def impose_L1_constraint(W, H):
return W2, H2
def factorize(data_array, rank, beta = np.nanmean(data_array), threshold = 0.20, max_iter = 400, seed_W = None, seed_H = None, log=logger):
def factorize(data_array, rank, beta = None, threshold = 0.20, max_iter = 400, seed_W = None, seed_H = None, log=logger):
log.info('Rank= %s, Threshold= %s', rank, threshold)
D = np.nan_to_num(data_array)
eta = D.max()
if beta is None:
beta = np.nanmean(data_array)
global NONZEROS
NONZEROS = ~np.isnan(data_array)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment