python
Bagba
Doctor of Philosophy, machine learning on graphs. ~ 与人分享 是 最好的学习方式。
展开
-
vscode远程调试python
vscode远程调试python,三步。原创 2023-02-23 12:14:53 · 2350 阅读 · 2 评论 -
numpy 邻接矩阵转稀疏矩阵 array to scipy csr_matrix
numpy array转scipy csr matrix,互相转换,和转coo矩阵。原创 2022-09-11 16:35:49 · 1971 阅读 · 0 评论 -
python动态添加属性
python如何动态添加,获取属性。原创 2022-09-07 20:00:18 · 499 阅读 · 0 评论 -
scipy sparse matrix multiplication矩阵乘法
scipy sparse matrix multiplication 矩阵乘法原创 2022-09-02 20:32:04 · 1916 阅读 · 0 评论 -
python3和pip源码安装【5步快速搞定】
python3源码安装,5步快速搞定原创 2022-07-02 11:43:18 · 3494 阅读 · 0 评论 -
python展开嵌套list,flatten 嵌套 list
python展开嵌套list,flatten任意深度的嵌套list。原创 2022-07-01 20:42:46 · 1618 阅读 · 0 评论 -
json to argparse, argparse to json
有时候需要将训练的参数保存到文件,方便复现的时候直接加载。可以保存为json文件,这样方便不同的语言加载,和直接用肉眼查看。原创 2022-05-05 11:27:42 · 2150 阅读 · 2 评论 -
matplotlib cmap取值
cmap配色大全原创 2022-03-13 23:48:41 · 2667 阅读 · 0 评论 -
matplotlib color 取值
官方:https://matplotlib.org/2.0.2/users/colormaps.htmlhttps://matplotlib.org/2.0.2/examples/color/colormaps_reference.html原创 2021-06-30 14:45:39 · 594 阅读 · 2 评论 -
matplotlib 柱状图画误差棒
matplotlib如何在柱状图上画误差棒,并且能够调整误差棒颜色大小,增加横线原创 2022-02-27 11:02:52 · 3253 阅读 · 0 评论 -
Matplotlib confusion map显示不全
先说结论:matplotlib 3.1.1 有bug!!!!!!!请更新到3.1.2.。。。。import seaborn as snsfrom sklearn.metrics import confusion_matriximport matplotlib.pyplot as plty_true = [0,0,1,2,1,2,0,2,2,0,1,1]y_pred = [1,0,1,2,1,0,0,2,2,0,1,1]C2= confusion_matrix(y_true, y_pred, la原创 2021-07-13 23:09:13 · 434 阅读 · 0 评论 -
jupyter notebook使用argparse(传入list参数即可)
Jupyter notebook其实是可以使用argparse来传入参数的,只需要传入一个list类型的参数即可。原创 2022-01-04 15:36:57 · 2158 阅读 · 0 评论 -
jupyter notebook使用argparse(传入list参数即可)
jupyter notebook 使用argparse,很简单,传入list类型的参数到parser.parse_args()即可。原创 2022-01-05 13:23:11 · 2391 阅读 · 0 评论 -
matplotlib 子图 画奇数个
matplotlib如何画奇数个子图原创 2021-09-07 15:13:30 · 839 阅读 · 0 评论