我正在尝试为一个名为25列的数据框绘制一组直方图"Feature_1","Feature_2",...."Feature_25".当我使用df.hist()它时,按名称对各个直方图进行排序,以便按以下顺序绘制:"Feature_1",""Feature_10","Feature_11"..."Feature_2","Feature_20",...
这不是我需要的.
如何更改排序顺序?传递列参数不会改变任何内容.
我直接使用matplotlib解决了这个问题,但这并不是我每次需要绘制几个直方图时我更喜欢做的事情.
你能帮我找到Mac上的Qt设计器应用吗?我安装了anaconda包,conda报告安装了qt,sip和pyqt.我仍然无法在任何文件夹中找到设计器应用程序.我使用pyqt的python应用程序完美运行.我对mac很新,可能会遗漏一些非常简单的东西.我在搜索文件夹树时搜索了名为designer的内容.我在/Users/XXXX/anaconda/pkgs/pyqt-4.10.4-py27_0/lib/python2.7/site-packages/PyQt4找到了QtDesigner.so(应该是可执行文件?),但它甚至不会说"不能执行二进制文件"anaconda/bin没有它有一个文件夹anaconda/include/QtDesigner但注意到我可以运行/anaconda/pkgs/qt-4.8.5-3/bin - 没有设计师我现在完全糊涂了.
我需要增加多通道图像,并希望使用ImageDataGenerator不幸的是,它只支持1,3和4通道图像,我需要更多.是否可以直接编辑site-packages/Keras/preprocessing/image.py添加必要数量的频道?
if x.shape[self.channel_axis] not in {1, 3, 4, XXX}:
raise ValueError(
'Expected input to be images (as Numpy array) '
'following the dimension ordering convention "' + self.dim_ordering + '" '
'(channels on axis ' + str(self.channel_axis) + '), i.e. expected '
'either 1, 3 or 4 channels on axis ' + str(self.channel_axis) + '. '
'However, it was passed an array with shape ' + str(x.shape) +
' (' + str(x.shape[self.channel_axis]) + ' channels).')
Run Code Online (Sandbox Code Playgroud)
其中XXX - 是我需要的多个频道.这会破坏什么吗?谢谢!