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

Module 'scipy' has no attribute 'where' #29

Open
EOzcariz opened this issue Jul 17, 2024 · 5 comments
Open

Module 'scipy' has no attribute 'where' #29

EOzcariz opened this issue Jul 17, 2024 · 5 comments

Comments

@EOzcariz
Copy link

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

@cyianor
Copy link
Contributor

cyianor commented Aug 27, 2024

Addressed by PR #27 which has been waiting for merging since April.

@ashishpawar517
Copy link

Is there any workaround for this?

@VladimirShitov
Copy link

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:
pip install git+https://github.com/cyianor/mofapy2@master --force-reinstall --no-deps

@cyianor
Copy link
Contributor

cyianor commented Oct 17, 2024

@gtca seems to still push new changes sometimes. Care to comment if the script import issue will be fixed eventually?

@gtca
Copy link
Contributor

gtca commented Oct 17, 2024

Thanks for the ping, @cyianor!

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

5 participants