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
WARNING: The requested image's platform (linux/386) does not match the detected host platform (linux/amd64) and no specific platform was requested
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "sklearn/neighbors/_binary_tree.pxi", line 1062, in sklearn.neighbors._kd_tree.BinaryTree.__setstate__
self._update_memviews()
File "sklearn/neighbors/_binary_tree.pxi", line 1004, in sklearn.neighbors._kd_tree.BinaryTree._update_memviews
self.idx_array = self.idx_array_arr
ValueError: Buffer dtype mismatch, expected 'ITYPE_t' but got 'long long'
Quite likely solving the issue is rather similar to #21552 and #21539.
The text was updated successfully, but these errors were encountered:
I think it would be good to run your test from #21539 on all estimators to see which one fails. Though I think tree based or neighbors tree based estimators are likely the most frequent issue.
I have this in mind eventually, but focussing getting #21552 first, we'll see how this pans out.
It seems this kind of problems happens when __setstate__, __getstate__ or __cinit__ are implemented in cython. A quick pattern seems to confirm what you are saying:
Reported in #21237 (cross endianness). There is a similar issue for the cross bitness, to reproduce:
Generate a pickle on a 64bit machine:
Open it on a 32bit machine:
Output:
Quite likely solving the issue is rather similar to #21552 and #21539.
The text was updated successfully, but these errors were encountered: