Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Fit() function throwing a TypeError #215

Open
NikhilVeeresh opened this issue Apr 21, 2021 · 2 comments
Open

Fit() function throwing a TypeError #215

NikhilVeeresh opened this issue Apr 21, 2021 · 2 comments

Comments

@NikhilVeeresh
Copy link

Package version i am using:

Name: sklearn-contrib-py-earth
Version: 0.1.0

Here's the call trace from where the issue is originating.

File "C:\Users\NikhilVeeresh\anaconda3\envs\KP-2269-Formula\lib\site-packages\sklearn\cluster_kmeans.py", line 1035, in fit
self._check_params(X)
File "C:\Users\NikhilVeeresh\anaconda3\envs\KP-2269-Formula\lib\site-packages\sklearn\cluster_kmeans.py", line 943, in _check_params
self._n_threads = _openmp_effective_n_threads(self._n_threads)
File "sklearn\utils_openmp_helpers.pyx", line 18, in sklearn.utils._openmp_helpers._openmp_effective_n_threads
File "sklearn\utils_openmp_helpers.pyx", line 54, in sklearn.utils._openmp_helpers._openmp_effective_n_threads
TypeError: '<' not supported between instances of 'tuple' and 'int'

@kevin-dietz
Copy link

@NikhilVeeresh this error looks to be related to scikit-learn (specifically with kmeans) and not pyearth.

@NikhilVeeresh
Copy link
Author

@kevin-dietz - I guess i resolved it. I had to pass a non-tuple as the parameters to the function and it worked.

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

No branches or pull requests

2 participants