科学网

 找回密码
  注册
consecutive_numbers_in_a list & nested_loop & same_actions
高琳琳 2020-6-9 15:05
1. detect consecutive nums in a list def detect_consecutive_nums(num_list): ''' group consecutive numbers Example: num_list = nums_grouped = , , , ]&# ...
个人分类: Python|1937 次阅读|没有评论
Draw figures with Python
高琳琳 2019-11-30 18:56
2D histgram import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties # %matplotlib inline #Jupyter notebook在线显 ...
个人分类: Python|1695 次阅读|没有评论
[转载]解决Python memory error的问题(四种解决方案)
高琳琳 2019-11-27 21:20
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://blog.csdn.net/weixin_39750084/article/details/81501395 (作者:陈玓玏) 分享一个朋友的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!大家可以看看是否对自己有帮助http://www.capta ...
个人分类: Python|3427 次阅读|没有评论
使用plotly在线显示3D可交互图像
高琳琳 2019-8-29 15:28
安装软件 plotly包、jupyter notebook 使用方法 为了在线显示, 1)在plotly官网进行注册 2)在“setting”页面,点击“Regenerate Key”生成API-Key 3)在代码中增加如下两行代码: import plotly plotly.tools.set_credentials_file(username='your-nam ...
个人分类: Python|5468 次阅读|没有评论
[转载]Pytorch可视化过程之tensorboardX的使用
高琳琳 2019-8-5 15:04
tensorboardX支持 scalar , image , figure , histogram , audio , text , graph , onnx_graph , embedding , pr_curve 和 video 等。 (一)安装 依赖环境: Python &nb ...
个人分类: Python|8651 次阅读|没有评论
[转载]Tmux-常用command lines
高琳琳 2019-7-26 13:42
由于自己的快捷键总是不好使,记录下常用命令,以加固记忆 tmux 的主要元素分为三层: Session(会话): Window(窗口): Pane(面板): 链接:https://juejin.im/post/5a8917336fb9a0633e51ddb9 来源:掘金 Session相关命令: # 创建 tmux ...
个人分类: Python|1775 次阅读|2 个评论
Pycharm Professional远程解释器的配置
高琳琳 2019-7-26 12:38
1. 确保已经安装并enable如下插件: SSH Remote Run, Vagrant, Docker Integration。 操作如下:File - Settings - Plugins - Installed 2. 总共有四种远程解释器配置方式,此处选择使用SSH的配置。其它三种配置见 https://www.jetbrains.com/help/idea/con ...
个人分类: Python|3111 次阅读|没有评论
Python 当前路径与上一路径
高琳琳 2019-7-26 11:56
当前路径: cur_dir= os.getcwd() # This outputs the absolute path cur_dir = os.curdir() # This outputs '.' # In order to get the absolute ...
个人分类: Python|1773 次阅读|没有评论
Python and Pytorch knowledge
高琳琳 2019-7-16 15:58
1. 找到数组中最大值的下标:使用np.argmax() 例如: a=np.arange(6).reshape(2,3)+10 a = array( , &n ...
个人分类: Python|3046 次阅读|没有评论

本页有 1 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-23 15:03

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部