Issue when running run_cgs_models_mallet() prior to scenic+ #122
laurajohanne
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Thank you for the nice comments. The error is thrown because you did not provide an argument name for the second argument (which is n_topics, see pycisTopic/src/pycisTopic/lda_models.py Line 734 in e5d5f19 Can you try again with the following code: models=run_cgs_models_mallet(
mallet_path = path_to_mallet_binary,
cistopic_obj = cistopic_obj,
n_topics=[2,5,10,15,20,25,30,35,40,45,50],
n_cpu=55,
n_iter=500,
random_state=1,
alpha=50,
alpha_by_topic=True,
eta=0.1,
eta_by_topic=False,
tmp_path= tmpDir, #Use SCRATCH if many models or big data set
save_path = None)All the best, Seppe |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
First I once again have to emphasize would a much needed and organized packages you have made! And enjoy working with it.
I have been running the scenic+ pipeline on a non-multiome mouse liver datasets.
I have succesfully used both the previous pipeline and afterwards the snake make pipeline (and was really happy for the optimized and much faster pipeline!) with no issues.
I then wanted to proceed on new datasets but I am having some issues when running run_cgs_models_mallet().
Code;
models=run_cgs_models_mallet(path_to_mallet_binary,
cistopic_obj,
n_topics=[2,5,10,15,20,25,30,35,40,45,50],
n_cpu=55,
n_iter=500,
random_state=1,
alpha=50,
alpha_by_topic=True,
eta=0.1,
eta_by_topic=False,
tmp_path= tmpDir, #Use SCRATCH if many models or big data set
save_path = None)
The error;
TypeError: run_cgs_models_mallet() got multiple values for argument 'n_topics'
Version of pycisTopic:
'2.0a0'
When looking at the source code n_topics:
n_topics: list of int
A list containing the number of topics to use in each model.
Which mine is; n_topics=[2,5,10,15,20,25,30,35,40,45,50].
So I am not sure how to proceed. Hope you can help.
Thanks in advance!
Best regards,
Laura
Beta Was this translation helpful? Give feedback.
All reactions