trekhleb / homemade-machine-learning

🤖 Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained
MIT License
23.12k stars 4.07k forks source link

error LogisticRegression #21

Open fpedrozam opened 5 years ago

fpedrozam commented 5 years ago

error LogisticRegression


ModuleNotFoundError Traceback (most recent call last)

in 5 6 # Import custom logistic regression implementation. ----> 7 from homemade.logistic_regression import LogisticRegression D:\Projetos\Teste Fabio\homemade-machine-learning-master\homemade\logistic_regression\__init__.py in 1 """Logistic Regression Module""" 2 ----> 3 from .logistic_regression import LogisticRegression D:\Projetos\Teste Fabio\homemade-machine-learning-master\homemade\logistic_regression\logistic_regression.py in 2 3 import numpy as np ----> 4 from scipy.optimize import minimize 5 from ..utils.features import prepare_for_training 6 from ..utils.hypothesis import sigmoid D:\aplicativos\Anaconda3\lib\site-packages\scipy\optimize\__init__.py in 385 386 from .optimize import * --> 387 from ._minimize import * 388 from ._root import * 389 from ._root_scalar import * D:\aplicativos\Anaconda3\lib\site-packages\scipy\optimize\_minimize.py in 28 from ._trustregion_krylov import _minimize_trust_krylov 29 from ._trustregion_exact import _minimize_trustregion_exact ---> 30 from ._trustregion_constr import _minimize_trustregion_constr 31 32 # constrained minimization D:\aplicativos\Anaconda3\lib\site-packages\scipy\optimize\_trustregion_constr\__init__.py in 2 3 ----> 4 from .minimize_trustregion_constr import _minimize_trustregion_constr 5 6 __all__ = ['_minimize_trustregion_constr'] D:\aplicativos\Anaconda3\lib\site-packages\scipy\optimize\_trustregion_constr\minimize_trustregion_constr.py in 2 import time 3 import numpy as np ----> 4 from scipy.sparse.linalg import LinearOperator 5 from .._differentiable_functions import VectorFunction 6 from .._constraints import ( D:\aplicativos\Anaconda3\lib\site-packages\scipy\sparse\__init__.py in 228 import warnings as _warnings 229 --> 230 from .base import * 231 from .csr import * 232 from .csc import * D:\aplicativos\Anaconda3\lib\site-packages\scipy\sparse\base.py in 7 8 from scipy._lib.six import xrange ----> 9 from scipy._lib._numpy_compat import broadcast_to 10 from .sputils import (isdense, isscalarlike, isintlike, 11 get_sum_dtype, validateaxis, check_reshape_kwargs, ModuleNotFoundError: No module named 'scipy._lib._numpy_compat'
monicaran commented 5 years ago

i think your installation is not complete. did you install numpy and wheel before spicy?