Open KforKuma opened 2 years ago
@KforKuma,
I read that this error was provoked by warnings thrown by numba compilation and a solution was to add:
import warnings
warnings.filterwarnings('ignore')
in the code. However, the ti method is called through docker containers (in my case), I don't know where I can put that chunk of code since dyno create a new container from the docker image every time the same method is called. Has someone an idea (apart from modifying the method image, which is not straightforward) to solve that issue?
I would like to try a method simple and fast like PAGA_tree, but this error reoccured multiple times.
/usr/local/lib/python3.7/site-packages/umap/rp_tree.py:450: NumbaWarning: Compilation is falling back to object mode WITH looplifting enabled because Function "make_euclidean_tree" failed type inference due to: Cannot unify RandomProjectionTreeNode(array(int64, 1d, C), bool, none, none, none, none) and RandomProjectionTreeNode(none, bool, array(float32, 1d, C), float64, RandomProjectionTreeNode(array(int64, 1d, C), bool, none, none, none, none), RandomProjectionTreeNode(array(int64, 1d, C), bool, none, none, none, none)) for '$14.16', defined at /usr/local/lib/python3.7/site-packages/umap/rp_tree.py (457)
File "../../usr/local/lib/python3.7/site-packages/umap/rp_tree.py", line 457: def make_euclidean_tree(data, indices, rng_state, leaf_size=30):