python中关于Np.hstack()错误的ValueError: all the input arrays must have same number of dimensions

来源:互联网 发布:淘宝母婴店名字 编辑:程序博客网 时间:2024/04/30 19:39
    发生这种错误大概率是因为hstack(a,b)中的a和b存在sparse情况,为了解决此类问题,我们可以将np.hstack(a, b)换成np.column_stack(a, b)。
阅读全文
0 0
原创粉丝点击