python - Numpy数组连接:ValueError:连接轴的所有输入数组维度必须完全匹配
问题描述
如何连接这些 NumPy 数组?
形状为 (3951, 400) 的第一个数组 形状为 (4939, 4) 的第二个数组
我试过np.concatenate((array1, array2), axis=1)
了,我尝试了另一个解决方案,比如这个问题 numpy array concatenate: "ValueError: all the input array must have the same number of dimensions"但我得到了这个错误
ValueError:连接轴的所有输入数组维度必须完全匹配,但沿维度 0,索引 0 处的数组大小为 3951,索引 1 处的数组大小为 4939
解决方案
推荐阅读
- database - 无法在 JavaFX 的 tableView 中正确显示数据
- c - 如何从管道读取到文件中?
- google-data-studio - 使要在图表中显示的变量可自定义
- python - 使用python中的pandas将具有分隔值的txt文件转换为数据框
- google-apps-script - 在工作表单元格中适当地格式化电话号码
- amazon-web-services - AWS ECR 端点 no_proxy 问题
- compiler-errors - 在工作 Arduino UNO 代码的 ESP8266 上编译错误 - 没有匹配的功能
- python - 随着每秒帧数的减少,pygame 窗口停止响应
- c# - 如何在 WPF 中仅将一个对象存储到数组中?
- c++ - 为什么这个指向数组表达式的指针有效