import numpy as np
mean = [0 , 0]
cov = [[1,2],
[2,5]]
"""多元正态分布中生成数据"""
X = rand.multivariate_normal(mean, cov,100)
X.shape
(100, 2)
%matplotlib inline
import matplotlib.pyplot as plt
import seaborn
seaborn.set(
import numpy as np
mean = [0 , 0]
cov = [[1,2],
[2,5]]
"""多元正态分布中生成数据"""
X = rand.multivariate_normal(mean, cov,100)
X.shape
(100, 2)
%matplotlib inline
import matplotlib.pyplot as plt
import seaborn
seaborn.set(