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)
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