ModuleNotFoundError: No module named 'numpy.testing.nosetester'

I was using the Decision Tree and this error was raised. The same situation appeared when I used Back Propagation. How can I solve it? (Sorry for my poor English)

import pandas as pd import numpy as np a = np.test() f = open('E:/lgdata.csv') data = pd.read_csv(f,index_col = 'id')  x = data.iloc[:,10:12].as_matrix().astype(int) y = data.iloc[:,9].as_matrix().astype(int)  from sklearn.tree import DecisionTreeClassifier as DTC dtc = DTC(criterion='entropy') dtc.fit(x,y) x=pd.DataFrame(x)   from sklearn.tree import export_graphviz with open('tree.dot','w') as f1:     f1 = export_graphviz(dtc, feature_names = x.columns, out_file = f1)     Traceback (most recent call last):    File "<ipython-input-40-4359c06ae1f0>", line 1, in <module>     runfile('C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py', wdir='C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib')    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile     execfile(filename, namespace)    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile     exec(compile(f.read(), filename, 'exec'), namespace)    File "C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py", line 9, in <module>     from numpy.testing.nosetester import import_nose  ModuleNotFoundError: No module named 'numpy.testing.nosetester' 
Professor Asked on November 9, 2020 in php.
Add Comment
6 Answer(s)

I was using the Decision Tree and this error was raised. The same situation appeared when I used Back Propagation. How can I solve it? (Sorry for my poor English)

import pandas as pd import numpy as np a = np.test() f = open('E:/lgdata.csv') data = pd.read_csv(f,index_col = 'id')  x = data.iloc[:,10:12].as_matrix().astype(int) y = data.iloc[:,9].as_matrix().astype(int)  from sklearn.tree import DecisionTreeClassifier as DTC dtc = DTC(criterion='entropy') dtc.fit(x,y) x=pd.DataFrame(x)   from sklearn.tree import export_graphviz with open('tree.dot','w') as f1:     f1 = export_graphviz(dtc, feature_names = x.columns, out_file = f1)     Traceback (most recent call last):    File "<ipython-input-40-4359c06ae1f0>", line 1, in <module>     runfile('C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py', wdir='C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib')    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile     execfile(filename, namespace)    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile     exec(compile(f.read(), filename, 'exec'), namespace)    File "C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py", line 9, in <module>     from numpy.testing.nosetester import import_nose  ModuleNotFoundError: No module named 'numpy.testing.nosetester' 
Professor Answered on November 9, 2020.
Add Comment

I was using the Decision Tree and this error was raised. The same situation appeared when I used Back Propagation. How can I solve it? (Sorry for my poor English)

import pandas as pd import numpy as np a = np.test() f = open('E:/lgdata.csv') data = pd.read_csv(f,index_col = 'id')  x = data.iloc[:,10:12].as_matrix().astype(int) y = data.iloc[:,9].as_matrix().astype(int)  from sklearn.tree import DecisionTreeClassifier as DTC dtc = DTC(criterion='entropy') dtc.fit(x,y) x=pd.DataFrame(x)   from sklearn.tree import export_graphviz with open('tree.dot','w') as f1:     f1 = export_graphviz(dtc, feature_names = x.columns, out_file = f1)     Traceback (most recent call last):    File "<ipython-input-40-4359c06ae1f0>", line 1, in <module>     runfile('C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py', wdir='C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib')    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile     execfile(filename, namespace)    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile     exec(compile(f.read(), filename, 'exec'), namespace)    File "C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py", line 9, in <module>     from numpy.testing.nosetester import import_nose  ModuleNotFoundError: No module named 'numpy.testing.nosetester' 
Professor Answered on November 9, 2020.
Add Comment

I was using the Decision Tree and this error was raised. The same situation appeared when I used Back Propagation. How can I solve it? (Sorry for my poor English)

import pandas as pd import numpy as np a = np.test() f = open('E:/lgdata.csv') data = pd.read_csv(f,index_col = 'id')  x = data.iloc[:,10:12].as_matrix().astype(int) y = data.iloc[:,9].as_matrix().astype(int)  from sklearn.tree import DecisionTreeClassifier as DTC dtc = DTC(criterion='entropy') dtc.fit(x,y) x=pd.DataFrame(x)   from sklearn.tree import export_graphviz with open('tree.dot','w') as f1:     f1 = export_graphviz(dtc, feature_names = x.columns, out_file = f1)     Traceback (most recent call last):    File "<ipython-input-40-4359c06ae1f0>", line 1, in <module>     runfile('C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py', wdir='C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib')    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile     execfile(filename, namespace)    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile     exec(compile(f.read(), filename, 'exec'), namespace)    File "C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py", line 9, in <module>     from numpy.testing.nosetester import import_nose  ModuleNotFoundError: No module named 'numpy.testing.nosetester' 
Professor Answered on November 9, 2020.
Add Comment

I was using the Decision Tree and this error was raised. The same situation appeared when I used Back Propagation. How can I solve it? (Sorry for my poor English)

import pandas as pd import numpy as np a = np.test() f = open('E:/lgdata.csv') data = pd.read_csv(f,index_col = 'id')  x = data.iloc[:,10:12].as_matrix().astype(int) y = data.iloc[:,9].as_matrix().astype(int)  from sklearn.tree import DecisionTreeClassifier as DTC dtc = DTC(criterion='entropy') dtc.fit(x,y) x=pd.DataFrame(x)   from sklearn.tree import export_graphviz with open('tree.dot','w') as f1:     f1 = export_graphviz(dtc, feature_names = x.columns, out_file = f1)     Traceback (most recent call last):    File "<ipython-input-40-4359c06ae1f0>", line 1, in <module>     runfile('C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py', wdir='C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib')    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile     execfile(filename, namespace)    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile     exec(compile(f.read(), filename, 'exec'), namespace)    File "C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py", line 9, in <module>     from numpy.testing.nosetester import import_nose  ModuleNotFoundError: No module named 'numpy.testing.nosetester' 
Professor Answered on November 9, 2020.
Add Comment

I was using the Decision Tree and this error was raised. The same situation appeared when I used Back Propagation. How can I solve it? (Sorry for my poor English)

import pandas as pd import numpy as np a = np.test() f = open('E:/lgdata.csv') data = pd.read_csv(f,index_col = 'id')  x = data.iloc[:,10:12].as_matrix().astype(int) y = data.iloc[:,9].as_matrix().astype(int)  from sklearn.tree import DecisionTreeClassifier as DTC dtc = DTC(criterion='entropy') dtc.fit(x,y) x=pd.DataFrame(x)   from sklearn.tree import export_graphviz with open('tree.dot','w') as f1:     f1 = export_graphviz(dtc, feature_names = x.columns, out_file = f1)     Traceback (most recent call last):    File "<ipython-input-40-4359c06ae1f0>", line 1, in <module>     runfile('C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py', wdir='C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib')    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile     execfile(filename, namespace)    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile     exec(compile(f.read(), filename, 'exec'), namespace)    File "C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py", line 9, in <module>     from numpy.testing.nosetester import import_nose  ModuleNotFoundError: No module named 'numpy.testing.nosetester' 
Professor Answered on November 9, 2020.
Add Comment

I was using the Decision Tree and this error was raised. The same situation appeared when I used Back Propagation. How can I solve it? (Sorry for my poor English)

import pandas as pd import numpy as np a = np.test() f = open('E:/lgdata.csv') data = pd.read_csv(f,index_col = 'id')  x = data.iloc[:,10:12].as_matrix().astype(int) y = data.iloc[:,9].as_matrix().astype(int)  from sklearn.tree import DecisionTreeClassifier as DTC dtc = DTC(criterion='entropy') dtc.fit(x,y) x=pd.DataFrame(x)   from sklearn.tree import export_graphviz with open('tree.dot','w') as f1:     f1 = export_graphviz(dtc, feature_names = x.columns, out_file = f1)     Traceback (most recent call last):    File "<ipython-input-40-4359c06ae1f0>", line 1, in <module>     runfile('C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py', wdir='C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib')    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile     execfile(filename, namespace)    File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile     exec(compile(f.read(), filename, 'exec'), namespace)    File "C:/ProgramData/Anaconda3/lib/site-packages/scipy/_lib/_numpy_compat.py", line 9, in <module>     from numpy.testing.nosetester import import_nose  ModuleNotFoundError: No module named 'numpy.testing.nosetester' 
Professor Answered on November 9, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.