You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File c:\Users\julia.virtualenvs\project-VjJne3mB\lib\site-packages\OCAT_init_.py:2
1 from .utils import preprocess, apply_dim_reduct, evaluate_clusters, plot_umap, apply_dim_reduct_inference
----> 2 from .sparse_encoding import sparse_encoding_integration, run_cell_inference, run_OCAT, AnchorGraph, tune_hyperparameters
3 from .marker_gene import calculate_marker_gene
4 from .lineage import compute_ptime, compute_lineage, plot_lineage_ptime
File c:\Users\julia.virtualenvs\project-VjJne3mB\lib\site-packages\OCAT\sparse_encoding.py:15
13 import warnings
14 warnings.filterwarnings('ignore')
---> 15 import OCAT.example as example
16 from sklearn import svm
18 ##############################################
19 # In: data_list [(a,n)...(z,n)] -- list of datasets
20 # m -- num of anchors
(...)
23 # Description: The function generates the corresponding anchors for the datasets
24 ##############################################
"AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations"
It seems that np.float simply needs to be changed to float, but I am not certain.
Is there any way to fix this ?
Thanks in advance! :)
The text was updated successfully, but these errors were encountered:
Could you please tell us which version of OCAT you installed? If you could provide a list of the installed package and their versions that would be most helpful.
Hello,
I get this error when I simply run 'import OCAT'
File c:\Users\julia.virtualenvs\project-VjJne3mB\lib\site-packages\OCAT_init_.py:2
1 from .utils import preprocess, apply_dim_reduct, evaluate_clusters, plot_umap, apply_dim_reduct_inference
----> 2 from .sparse_encoding import sparse_encoding_integration, run_cell_inference, run_OCAT, AnchorGraph, tune_hyperparameters
3 from .marker_gene import calculate_marker_gene
4 from .lineage import compute_ptime, compute_lineage, plot_lineage_ptime
File c:\Users\julia.virtualenvs\project-VjJne3mB\lib\site-packages\OCAT\sparse_encoding.py:15
13 import warnings
14 warnings.filterwarnings('ignore')
---> 15 import OCAT.example as example
16 from sklearn import svm
18 ##############################################
19 # In: data_list [(a,n)...(z,n)] -- list of datasets
20 # m -- num of anchors
(...)
23 # Description: The function generates the corresponding anchors for the datasets
24 ##############################################
"AttributeError: module 'numpy' has no attribute 'float'.
np.float
was a deprecated alias for the builtinfloat
. To avoid this error in existing code, usefloat
by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64
here.The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations"
It seems that np.float simply needs to be changed to float, but I am not certain.
Is there any way to fix this ?
Thanks in advance! :)
The text was updated successfully, but these errors were encountered: