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

Error while setting metric to Euclidean #31

Open
sidkoch opened this issue Dec 13, 2022 · 2 comments
Open

Error while setting metric to Euclidean #31

sidkoch opened this issue Dec 13, 2022 · 2 comments

Comments

@sidkoch
Copy link

sidkoch commented Dec 13, 2022

When i try this :

feature_select = NCFS(metric='euclidean') feature_select.fit(X, y)

I get an error (internally when it calls accelerated.fit())

SystemError: CPUDispatcher(<function fit at 0x7fcff95909d0>) returned a result with an error set

@sidkoch
Copy link
Author

sidkoch commented Dec 13, 2022

Is there a functionality to externally set parallel to False ?

@dakota-hawkins
Copy link
Collaborator

Weird! I'll try and check it out when I get the chance. It works with metric="manhattan"?

You can change the number of threads provided to it, which should essentially turn it off.

Info on limiting threads: https://numba.pydata.org/numba-doc/latest/user/threading-layer.html#setting-the-number-of-threads

In general, I would recommend not turning parallel off, as I can't guarantee how long it would take to converge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants