-
Notifications
You must be signed in to change notification settings - Fork 28
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
Module 'scipy' has no attribute 'where' #29
Comments
Addressed by PR #27 which has been waiting for merging since April. |
Is there any workaround for this? |
I am having a similar issue, which is also addressed in the mentioned PR. Are there any plans to merge it? @ashishpawar517 , the workaround is to install MOFA from the fork that fixes the issue: |
@gtca seems to still push new changes sometimes. Care to comment if the script import issue will be fixed eventually? |
Thanks for the ping, @cyianor! |
Dear all,
I was trying to run a MOFA model in python but I faced the following error during the training:
Module 'scipy' has no attribute 'where'
My data consists of two views with different amount of patients/view
Below is the code:
D = [len(df_blood_RNA_melted) + len(df_biopsy_RNA_melted),len(df_blood_EPICs_melted) + len(df_biopsy_EPICs_melted)]
M = len(D)
K = 5
N = [len(df[df["group"] == "Mild"]),len(df[df["group"] == "Moderate"]),len(df[df["group"] == "Severe"])]
G = len(N)
ent.set_data_df(df, likelihoods = ["gaussian","gaussian"])
ent.set_model_options(
factors = 10,
spikeslab_weights = True,
ard_weights = True,
ard_factors = True
)
ent.set_train_options(
convergence_mode = "fast",
dropR2 = 0.001,
gpu_mode = True,
seed = 123
)
ent.build()
ent.run()
Thanks a lot,
Enrique
The text was updated successfully, but these errors were encountered: