问题描述
我试图将DBSCAN聚类算法拟合到数据集中。数据集的标题如下所示:
Width 60% = Width ? cm
Height 31% = Height ? cm
,示例数据如下:
[Summary Severity category component priority Issues]
这样做时,我遇到了“ ValueError:在scaler.fit_transform时无法将字符串转换为float:”,我使用https://stackoverflow.com/a/53473541/13659094解决了该问题
但是从那以后,我面临着一个新问题:
[aaa_bbb_ccc @ABC 2.0 @August Regression - XYZ - ABCD - We have got the Income Reasonability Rule (V60300) but we are not getting the SSR (Self Service) Page for ABCD in XYZ environment.,2-Major,Application - Code,ABCD,High,We have got the Income Reasonability Rule (V60300) but we are not getting the SSR (Self Service) Page for ABCD in XYZ environment.]
...........
代码如下:
X1 = np.concatenate([transformed,X[:,0:]],axis=1)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py",line 2927,in __getitem__
indexer = self.columns.get_loc(key)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexes\base.py",line 2657,in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx",line 108,in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx",line 110,in pandas._libs.index.IndexEngine.get_loc
TypeError: '(slice(None,None,None),slice(0,None))' is an invalid key
任何人都可以为我提供有关如何解决此问题的解决方案,我可以将DBSCAN算法适合此数据集吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)