问题描述
我正在研究this tutorial。我想对3d数据集进行标准化,而不是对其进行平均。我尝试使用:
scaler = preprocessing.StandardScaler().fit(x_train)
scaler.transform(x_train)
scaler.transform(x_val)
scaler.transform(x_test)
scaler.fit(y_train)
scaler.transform(y_train)
scaler.transform(y_val)
scaler.transform(y_test)
但是得到了:
ValueError:找到的数组为暗3。StandardScaler预期为
我了解我可以使用以下方式对图像进行矢量化处理
:samples,nx,ny = x_train.shape
x_train = x_train.reshape(samples,nx*ny)
但是,我想使用mfcc'图像'作为CNN的输入,而不是向量。标准化此数据集的最佳方法是什么?有我不熟悉的软件包或预处理工具吗?还有另一种快速方法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)