自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 Python log设置(输出时间以及脚本位置)

# mylog.pyimport loggingimport osimport sysdef init_logging(log_file, stdout=False): formatter = logging.Formatter('%(asctime)s [%(levelname)s] %(module)s: %(message)s', datefmt='%m/%d/%Y %H:%M:%S') print('Ma.

2021-11-17 14:31:44 1260

原创 Vscode Python 函数变量跳转

1、在扩展中安装编译器python2、Ctrl + 鼠标左键3、跳转回之前的位置:Alt + ->

2021-10-23 17:00:03 4264

原创 Linux 占用内存过大,程序被kill--解决方案

查看被杀死的进程号:运行dmesg命令查看内存占用最多进程PID:top (然后按下M,注意大写) 为了保护重要进程不被oom-killer掉,运行:echo -17 > /proc/<pid>/oom_adj, -17表示禁用OOM

2021-10-12 10:47:16 3876

原创 Matplot--2维、3维心形图

#coding=utf-8import matplotlib.pyplot as pltfrom matplotlib import animationimport numpy as npimport math from mpl_toolkits.mplot3d import Axes3Dfrom matplotlib import cmfrom matplotlib.ticke...

2021-10-12 09:56:58 243

原创 Spring boot

1、idea create new project:https://www.cnblogs.com/legoo/p/7646920.html

2021-10-12 09:56:19 44

原创 pytorch 不同层设置不同学习率,并冻结某些参数

1、不同层不同学习率2、冻结某些参数for n,p in model.named_parameters(): if 'bert' in n:p.requires_grad=False同时在filter函数中添加:non_embedding_param = list(filter( lambda x:id(x) not in embedding_param_ids and id(x) not in bert_embedding_param_...

2021-10-07 18:37:08 303

原创 import tensorflow error

import tensorflowTraceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ruilingqiu/anaconda3/envs/SCIIE/lib/python2.7/site-packages/tensorflow/__init__.py", line 24, in <module> from tensorflow.python.

2021-09-25 20:00:11 242

原创 Tensorflow:Could not load dynamic library

2021-09-25 15:48:13.609104: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudart.so.10.0'; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/loc

2021-09-25 17:01:29 263

原创 xftp(Xshell)无法定位程序输入点

实测是因为安装时没有创建单独的文件夹...直接安装在了D盘下

2021-09-16 10:41:43 4501 1

原创 Spacy 安装教程(安装不成功可能是版本不匹配)

spaCy2.2.4is compatible withen_core_web_sm2.2.5and2.2.0安装spacy pip3 install spacy==2.2.4 安装en_core_web: 参考https://www.cnblogs.com/xiaolan-Lin/p/13286885.html 验证:https://www.jianshu.com/p/e6b3565e159d

2021-04-07 09:34:07 1295

原创 jupyter notebook 启动过程

由于电脑上装了anaconda2和anaconda3首先使用activate py3激活python3然后输入 jupyter noterbook

2020-06-02 22:42:19 792

原创 word 排版

使每一章都从新的一页开始需要插入分百节符来实现。具体操作:把鼠度标光标放在上一章文字的最后面,然后知点击Ctrl+Enter,后一章就跳到新的一页了。

2020-05-09 09:07:17 47

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除