-
Notifications
You must be signed in to change notification settings - Fork 26
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
getting error from "aorta_data_analysis.ipynb" #5
Comments
change works for me. |
Hey there, I made the change. But I get "0.0" for the accuracy score. Seems like the predictions just return the first letter:
Any suggestions? EDIT: You just need to remove the [0][0] at the append for pred |
Hi, it seems that it is a problem related to the neighbor searching. I suggest installing this package directly from github rather than pypl: |
Dear jingcheng-du,
I am trying to run "aorta_data_analysis.ipynb" on google colab. However, I am getting error when I run cell [18]. Here is the error I got as following:
TypeError Traceback (most recent call last)
in <cell line: 24>()
29 else:
30 idx, sim = get_similar_vectors(test_emebd[k][np.newaxis, ...], ref_cell_embeddings)
---> 31 pred = mode(y_train[idx], axis=0)
32 neighbors_list_gpt_v1.append(y_train[idx])
33 gt_list.append(gt)
1 frames
/usr/local/lib/python3.10/dist-packages/scipy/stats/_stats_py.py in mode(a, axis, nan_policy, keepdims)
509 "array was deprecated in SciPy 1.9.0 and removed in SciPy "
510 "1.11.0. Please consider
np.unique
.")--> 511 raise TypeError(message)
512
513 if a.size == 0:
TypeError: Argument
a
is not recognized as numeric. Support for input that cannot be coerced to a numeric array was deprecated in SciPy 1.9.0 and removed in SciPy 1.11.0. Please considernp.unique
.PS: I only modify "N_TRUNC_GENE = 1000" into "N_TRUNC_GENE = 20" (try to reducing embedding process??)
Could you please help me with that?
Thank you so much!
Best Regards,
Ben
The text was updated successfully, but these errors were encountered: