Skip to content

Instantly share code, notes, and snippets.

@thomasjpfan
Last active December 16, 2020 17:18
Show Gist options
  • Select an option

  • Save thomasjpfan/da54f874f3d434eb4ae360b5e6fa4c12 to your computer and use it in GitHub Desktop.

Select an option

Save thomasjpfan/da54f874f3d434eb4ae360b5e6fa4c12 to your computer and use it in GitHub Desktop.
scikit-learn PCA with cupy and nep 37
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BekerCai
Copy link
Copy Markdown

Fristly, thank you for your solution. But I got errors below:

  • [/opt/conda/lib/python3.7/contextlib.py in enter(self)
    110 del self.args, self.kwds, self.func
    111 try:
    --> 112 return next(self.gen)
    113 except StopIteration:
    114 raise RuntimeError("generator didn't yield") from None

/opt/conda/lib/python3.7/site-packages/sklearn/_config.py in config_context(**new_config)
143 """
144 old_config = get_config().copy()
--> 145 set_config(**new_config)
146
147 try:

TypeError: set_config() got an unexpected keyword argument 'enable_duck_array'
]

@thomasjpfan
Copy link
Copy Markdown
Author

This feature has not been released. It only works with scikit-learn/scikit-learn#16574

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment