WillKoehrsen / feature-selector

Feature selector is a tool for dimensionality reduction of machine learning datasets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import error ——module 'numpy.core.numerictypes' has no attribute '_typestr'

chjq201410695 opened this issue · comments

Hi, here is my code

from feature_selector import FeatureSelector

fs = FeatureSelector(data = df_ax_cla.loc[:,1:], labels = df_ax_cla.loc[:,0])
fs.identify_collinear(correlation_threshold=0.8):


#here is error:

AttributeError Traceback (most recent call last)
in
----> 1 from feature_selector import FeatureSelector
2
3 fs = FeatureSelector(data = df_ax_cla, labels = df_ax_cla.columns.values)
4 # correlation
5 fs.identify_collinear(correlation_threshold=0.8)

~\AppData\Roaming\Python\Python36\site-packages\feature_selector_init_.py in
----> 1 from .feature_selector import FeatureSelector

~\AppData\Roaming\Python\Python36\site-packages\feature_selector\feature_selector.py in
11 # visualizations
12 import matplotlib.pyplot as plt
---> 13 import seaborn as sns
14
15 # memory management

~\AppData\Roaming\Python\Python36\site-packages\seaborn_init_.py in
7 from .utils import *
8 from .palettes import *
----> 9 from .regression import *
10 from .categorical import *
11 from .distributions import *

~\AppData\Roaming\Python\Python36\site-packages\seaborn\regression.py in
13
14 try:
---> 15 import statsmodels
16 assert statsmodels
17 _has_statsmodels = True

~\Anaconda3\envs\CHJQ\lib\site-packages\statsmodels_init_.py in
8
9 from warnings import simplefilter
---> 10 from statsmodels.tools.sm_exceptions import (ConvergenceWarning, CacheWriteWarning,
11 IterationLimitWarning, InvalidTestWarning)
12

~\Anaconda3\envs\CHJQ\lib\site-packages\statsmodels\tools_init_.py in
----> 1 from .tools import add_constant, categorical

~\Anaconda3\envs\CHJQ\lib\site-packages\statsmodels\tools\tools.py in
4 from statsmodels.compat.python import reduce, lzip, lmap, asstr2, range, long
5 import numpy as np
----> 6 import numpy.lib.recfunctions as nprf
7 import numpy.linalg as L
8 from scipy.linalg import svdvals

~\Anaconda3\envs\CHJQ\lib\site-packages\numpy\lib\recfunctions.py in
14 from numpy import ndarray, recarray
15 from numpy.ma import MaskedArray
---> 16 from numpy.ma.mrecords import MaskedRecords
17 from numpy.lib._iotools import _is_string_like
18 from numpy.compat import basestring

~\Anaconda3\envs\CHJQ\lib\site-packages\numpy\ma\mrecords.py in
30
31 _byteorderconv = np.core.records._byteorderconv
---> 32 _typestr = ntypes._typestr
33
34 import numpy.ma as ma

the problem from numpy, which is repaired when I update numpy. So I close this Issue.