python 可视化
来源:互联网 发布:太阳黑子与气候数据 编辑:程序博客网 时间:2024/05/16 14:22
1,绘制散点图:
# k_to_accuracies: A dictionary holding the accuracies for different values of k that we find when running cross-validation with int key and list value.for k in k_choices: accuracies = k_to_accuracies[k] plt.scatter([k] * len(accuracies), accuracies)# plot the trend line with error bars that correspond to standard deviationaccuracies_mean = np.array([np.mean(v) for k,v in sorted(k_to_accuracies.items())])accuracies_std = np.array([np.std(v) for k,v in sorted(k_to_accuracies.items())])plt.errorbar(k_choices, accuracies_mean, yerr=accuracies_std)plt.title('Cross-validation on k')plt.xlabel('k')plt.ylabel('Cross-validation accuracy')plt.show()
阅读全文
0 0
- python 可视化
- python可视化
- python 可视化
- python可视化
- Python可视化编程
- PYTHON数据可视化
- PYTHON数据可视化
- python可视化--matplotlib
- Python数据可视化练习
- Python数据可视化
- Python maplotlib 可视化
- Python可视化入门
- python可视化模块tkinter
- Python数据可视化:饼状图
- Python数据可视化总结
- python 可视化包 Bokeh
- python可视化-matplotlib学习
- python可视化学习笔记
- 场景解析--Pyramid Scene Parsing Network
- CF Vicious Keyboard 构造水题
- 动态规划
- java面试必须get的技能
- Netty源码分析之二【贯穿Netty的大动脉──ChannelPipeline】
- python 可视化
- 蓝桥杯 基础训练 芯片测试
- 平衡二叉树
- 九九乘法表
- Keras
- 友好 RxJava2.x 源码解析(二)线程切换
- 得分排行(c/python)
- STM32:Flash擦除与读写操作(HAL库)
- Bean之间的依赖配置