CEFCON
CEFCON copied to clipboard
RuntimeError: mat1 and mat2 must have the same dtype
Hi,
I receive following error message after executing: %%time cefcon_results_dict = {} for li, data_li in data.items(): # We suggest setting up multiple repeats to minimize the randomness of the computation. cefcon_GRN_model = cf.NetModel(epochs=350, repeats=3, cuda=CUDA, seed=-1) cefcon_GRN_model.run(data_li)
cefcon_results = cefcon_GRN_model.get_cefcon_results(edge_threshold_avgDegree=8)
cefcon_results_dict[li] = cefcon_results
full error message:
data object:
Could you help me here please?
Best, Tolga
@WPZgithub @TdzBAS same issue. Does it solved?
Hi @Roger-GOAT @TdzBAS @WPZgithub I found that this works for me:
import numpy as np
data_matrix = adata.X
# Convert the data matrix to float
data_matrix_float = data_matrix.astype(np.float32)
adata.X = data_matrix_float