小编use*_*905的帖子

使用 Seaborn 绘制 numpy 数组

我正在使用 python 2.7。我知道这将是非常基本的,但是我真的很困惑,我想更好地了解 seaborn。

我有两个 numpy 数组Xy我想使用 Seaborn 来绘制它们。

这是我的Xnumpy 数组:

[[ 1.82716998 -1.75449225]
 [ 0.09258069  0.16245259]
 [ 1.09240926  0.08617436]]
Run Code Online (Sandbox Code Playgroud)

这是ynumpy 数组:

[ 1. -1.  1. ]
Run Code Online (Sandbox Code Playgroud)

考虑到y数组中的类标签,如何成功绘制我的数据点?

谢谢,

python numpy machine-learning matplotlib seaborn

9
推荐指数
1
解决办法
2万
查看次数

标签 统计

machine-learning ×1

matplotlib ×1

numpy ×1

python ×1

seaborn ×1