Closed finn-dodgson closed 2 years ago
Hi Finn,
Sorry about that. It must mean that those plotting routine are coming from one of my other repos. Sorry I will fix it as soon as possible!
Best, Luisa
Hi Luisa,
No worries. If you are able to add them to the repo, it would be greatly appreciated!
Kind regards, Finn
Hi Luisa,
Just wanted to follow-up on this: were you able to find the missing plotting routines?
Best, Finn
Hi Finn,
Apologies for the delay! I have now added all the relevant files so you should not have importing issue anymore. Could you please git pull, try again and let me know if things work smoothly now? Thanks!
Best, Luisa
Hi Luisa,
No worries. It seems to be working now, thanks! I did have to change line 5 of utilss/radius_functions_deep.py to: from utilss import distinct_colours
, line 10 of dlhalos_code/CNN.py to: from tensorflow.python.keras.utils.multi_gpu_utils import multi_gpu_model
, and remove the alpha
argument from line 43 of plots/plots_for_predictions.py. Finally, I wasn't able to get the very last cell of the demo notebook to run (even after setting local_machine = True
in dlhalos_code/loss_functions.py), but that's not a problem.
Thanks, Finn
Hi Finn,
Could you send a quick pull request with the modifications you mention to utilss/radius_functions_deep.py
and dlhalos_code/CNN.py
? Otherwise I can do it and you can git pull again.
Why are you not able to import loss_functions.py? Could you post the error message? If you have tensorflow installed you should be able to import the module just fine. The local_machine = True option should only be relevant if you don't have tensorflow installed on your local machine.
Best, Luisa
Hi Luisa,
I forked the repo and submitted the pull request. I think it worked, but I apologize in advance if I haven't done it correctly-- I am quite new to GitHub.
I am confused why I am getting this error on the last cell. It seems to happen whether local_machine
is True
or False
. I double-checked and I have tensorflow installed.
Thanks for your help, Finn
Thanks for the pull request! I merged it to the main branch.
Could you git pull and see if the likelihood distribution plotting routine now works? It should be fixed now. Sorry for the many issues.
Best, Luisa
Hi Luisa,
No problem. Unfortunately, the likelihood distribution plotting is still not working. It is failing with this error:
InvalidArgumentError Traceback (most recent call last)
Hi,
I am trying to run the demo code and I run into this error: No module named 'predictions_functions'
I have looked through all folders in the repo, but I've been unable to find the file that defines the compare_two_violin_plots and violin_plot functions.
Thanks.