我检查了this链接以了解 c=y_train
中“c”的含义。有一个答案说 y_train 数据将用于指示颜色。我无法理解这种说法。
这个documentation link中有一些信息但很难理解。
最佳答案
正如 matplotlib 文档中所述,您链接的 c 是散点颜色的参数。
c can be a single color format string, or a sequence of color specifications of length N, or a sequence of N numbers to be mapped to colors using the cmap and norm specified via kwargs
结合颜色图,在您的情况下,当 c = y_train(数据的标签或基本事实)时,将根据该类别(虹膜数据集的虹膜花类型)为您的数据点着色。
关于python - 了解 pandas scatter_matrix 参数 'c',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46232260/