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 in Logistic regression method #4

Open
shakyaanice opened this issue Mar 21, 2022 · 1 comment
Open

Error in Logistic regression method #4

shakyaanice opened this issue Mar 21, 2022 · 1 comment

Comments

@shakyaanice
Copy link

Dear Sir,

I prepared the sample data you provided and ran logistic regression method but it showed this error.

Traceback (most recent call last):
  File "C:\LSAT-master\LSAT-master\Logistic_Regression.py", line 14, in <module>
    from sklearn.linear_model import LogisticRegression
  File "C:\Python27\ArcGIS10.8\lib\site-packages\sklearn\__init__.py", line 64, in <module>
    from .base import clone
  File "C:\Python27\ArcGIS10.8\lib\site-packages\sklearn\base.py", line 13, in <module>
    from .utils.fixes import signature
  File "C:\Python27\ArcGIS10.8\lib\site-packages\sklearn\utils\__init__.py", line 12, in <module>
    from .murmurhash import murmurhash3_32
  File "__init__.pxd", line 164, in init sklearn.utils.murmurhash
ValueError: numpy.dtype has the wrong size, try recompiling. Expected 52, got 56

Failed to execute (LOGr).
Failed at Mon Mar 21 21:31:00 2022 (Elapsed Time: 0.12 seconds)


@apolat2018
Copy link
Owner

Please check the version of Scikit-learn. Python 2.7 supports the versions of Scikit-learn 0.20 and earlier. In this study, the version of 0.20.2 was installed.

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