`ColumnKernelizer` failed with sklearn 1.5
yuerout opened this issue · 0 comments
yuerout commented
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[20], [line 1](vscode-notebook-cell:?execution_count=20&line=1)
----> [1](vscode-notebook-cell:?execution_count=20&line=1) pipeline.fit(X_train, Y_train[:, mask])
[3](vscode-notebook-cell:?execution_count=20&line=3) scores_mask = pipeline.score(X_test, Y_test[:, mask])
[4](vscode-notebook-cell:?execution_count=20&line=4) scores_mask = backend.to_numpy(scores_mask)
File ~/anaconda3/envs/book5/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py:565, in ColumnTransformer._get_remainder_cols(self, indices)
[563](https://vscode-remote+ssh-002dremote-002bwodediannao.vscode-resource.vscode-cdn.net/home/jlg/yuerou/voxel-book/tutorials/notebooks/shortclips/~/anaconda3/envs/book5/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py:563) def _get_remainder_cols(self, indices):
[564](https://vscode-remote+ssh-002dremote-002bwodediannao.vscode-resource.vscode-cdn.net/home/jlg/yuerou/voxel-book/tutorials/notebooks/shortclips/~/anaconda3/envs/book5/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py:564) dtype = self._get_remainder_cols_dtype()
--> [565](https://vscode-remote+ssh-002dremote-002bwodediannao.vscode-resource.vscode-cdn.net/home/jlg/yuerou/voxel-book/tutorials/notebooks/shortclips/~/anaconda3/envs/book5/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py:565) if self.force_int_remainder_cols and dtype != "int":
[566](https://vscode-remote+ssh-002dremote-002bwodediannao.vscode-resource.vscode-cdn.net/home/jlg/yuerou/voxel-book/tutorials/notebooks/shortclips/~/anaconda3/envs/book5/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py:566) return _RemainderColsList(indices, future_dtype=dtype)
[567](https://vscode-remote+ssh-002dremote-002bwodediannao.vscode-resource.vscode-cdn.net/home/jlg/yuerou/voxel-book/tutorials/notebooks/shortclips/~/anaconda3/envs/book5/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py:567) if dtype == "str":
AttributeError: 'ColumnKernelizer' object has no attribute 'force_int_remainder_cols'