简体   繁体   English

绘制矩阵的更好方法,其中每个值是2个参数的函数

[英]Better way to plot a matrix where each value is function of 2 parameters

Suggestions to visualize plots 2 variable function. 建议将图表可视化2个变量函数。

I have Accuracy values as a function of hidden layers and regularization parameters. 我具有作为隐藏层和正则化参数的函数的Accuracy值。

Data is anxp matrix. 数据是anxp矩阵。 Rows are different values hidden layers. 行是不同值的隐藏层。 Columns are different values for reg param. 列是reg参数的不同值。

 0.95 0.91 0.86 0.85 .. 0.9
 0.95 0.96 0.85 0.81 .. 0.7
 ..........................
 ..........................
 0.95 0.96 0.85 0.81 .. 0.7

It would be great to have some direction how to visualize/plot this data so that it tells which combination of hidden layer and reg param is best. 最好能对如何可视化/绘制此数据有一些指导,以便它告诉隐藏层和reg参数哪种组合是最好的。

How about good ol' imagesc ? 如何好醇” imagesc

A = [ 0.95 0.91 0.86 0.85 0.9
      0.95 0.96 0.85 0.81 0.7
      0.95 0.96 0.85 0.81 0.7 ];
imagesc(A)
colorbar
axis image

From the image you can easily read the entry/entries with maximum value. 从图像中,您可以轻松读取最大值的条目。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM