对二维的bolo数据集分析与可视化
首先导入包:
1 | # 导入包 |
默认设置:
1 | mpl.rcParams['font.sans-serif'] = ['FangSong'] # 指定默认字体 |
进行初始化:
1 | n_samples = 1500 # 生成1500个数据集 |
迭代初始化:
1 | centers = np.zeros([3, 2]) # 生成0矩阵 |
实现预测:
1 | while not (centers_new == centers).all(): |
对二维的bolo数据集分析与可视化
1 | # 导入包 |
1 | mpl.rcParams['font.sans-serif'] = ['FangSong'] # 指定默认字体 |
1 | n_samples = 1500 # 生成1500个数据集 |
1 | centers = np.zeros([3, 2]) # 生成0矩阵 |
1 | while not (centers_new == centers).all(): |