Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac issue #5

Closed
emkober opened this issue Sep 29, 2021 · 5 comments
Closed

Mac issue #5

emkober opened this issue Sep 29, 2021 · 5 comments

Comments

@emkober
Copy link

emkober commented Sep 29, 2021

I've installed this on both a Mac laptop and desktop and it runs the swim problem just fine with mpirun using 4 processors. I then try to run my own problems with the command line

mpirun -n 4 python /Users/edward/pyDNMFk/main.py --p_r=4 --p_c=1 --process='pyDNMFk' --fpath='data/' --ftype='csv' --fname='HMX' --init='nnsvd' --itr=5000 --norm='kl' --method='mu' --results_path='results/34' --perturbations=100 --noise_var=0.015 --start_k=3 --end_k=4 --step_k=1 --sill_thr=.9 --sampling='uniform' --prune=true > log34.out &

And I get

/Users/edward/pyDNMFk/pyDNMFk/pyDNMF.py:238: RuntimeWarning: invalid value encountered in true_divide
col_err = np.sqrt(col_err_num / col_err_deno)

4 times (or for each number of processors I requested). Output files are full of data, but the selection plot is messed up. Anything obvious?

@MaksimEkin
Copy link
Member

Hi, can you try a larger k range. Maybe like this: mpirun -n 4 python /Users/edward/pyDNMFk/main.py --p_r=4 --p_c=1 --process='pyDNMFk' --fpath='data/' --ftype='csv' --fname='HMX' --init='nnsvd' --itr=5000 --norm='kl' --method='mu' --results_path='results/34' --perturbations=100 --noise_var=0.015 --start_k=3 --end_k=10 --step_k=1 --sill_thr=.9 --sampling='uniform' --prune=true > log34.out &

@emkober
Copy link
Author

emkober commented Sep 29, 2021 via email

@emkober
Copy link
Author

emkober commented Sep 29, 2021

small_HMX.csv
Here's a smallish (280x1000) data file as an example of what I'm trying to run if that helps.

@emkober
Copy link
Author

emkober commented Sep 29, 2021

Well, going to a bigger k limit does generate rational looking selection plots. Though I still get those runtime warnings about invalid error in true_divide which is irritating, but not catastrophic? Will close for now.

@emkober emkober closed this as completed Sep 29, 2021
@MaksimEkin
Copy link
Member

Hi @emkober, I am glad it is working now. I tried the sample data you shared with the following settings:

  • mpirun -n 4 python main.py --p_r=4 --p_c=1 --process='pyDNMFk' --fpath='data/' --ftype='csv' --fname='small_HMX' --init='nnsvd' --itr=2000 --norm='kl' --method='mu' --results_path='results/' --perturbations=50 --noise_var=0.015 --start_k=2 --end_k=22 --step_k=2 --sill_thr=.9 --sampling='uniform' --prune='true'

I did get same warning in the end, but the results seems okay with the high k-range. In this plot k-optimal seems to be either 6 or 14:

ss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants