Pickle has an incompatible dtype
AudreyBaguette opened this issue · 1 comments
AudreyBaguette commented
I am trying to run neoloopfinder on sparse matrices of cancer with few rearrangements. All steps seem to be working fine, until I reach the last step. The neoloop-caller function produces the following error:
ValueError: node array from the pickle has an incompatible dtype:
- expected: {'names': ['left_child', 'right_child', 'feature', 'threshold', 'impurity', 'n_node_samples', 'weighted_n_node_samples', 'missing_go_to_left'], 'formats': ['<i8', '<i8', '<i8', '<f8', '<f8', '<i8', '<f8', 'u1'], 'offsets': [0, 8, 16, 24, 32, 40, 48, 56], 'itemsize': 64}
- got : [('left_child', '<i8'), ('right_child', '<i8'), ('feature', '<i8'), ('threshold', '<f8'), ('impurity', '<f8'), ('n_node_samples', '<i8'), ('weighted_n_node_samples', '<f8')]
I tried using different resolutions, using only one of multiple at the same time, but the error is always the same. Any idea how to fix this?
Neoloop version: 0.4.3.post2
AudreyBaguette commented
Fixed! I was using the wrong versions of joblib and scikit-learn.