bioFAM / mofapy2

Multi-omics factor analysis v2
https://biofam.github.io/MOFA2/
GNU Lesser General Public License v3.0
34 stars 28 forks source link

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

Open EOzcariz opened 1 month ago

EOzcariz commented 1 month ago

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 commented 1 week ago

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