Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColumnKernelizer failed with sklearn 1.5 #59

Closed
yuerout opened this issue Jun 12, 2024 · 0 comments · Fixed by #61
Closed

ColumnKernelizer failed with sklearn 1.5 #59

yuerout opened this issue Jun 12, 2024 · 0 comments · Fixed by #61

Comments

@yuerout
Copy link
Contributor

yuerout commented Jun 12, 2024

---------------------------------------------------------------------------
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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant