Loading

摘要: conda在使用create新建环境和install安装时报错“Solving environment: failed” 报错截图 解决方案 1、在cmd中输入 %HOMEPATH% 目录打开,找到 .condarc 文件并打开(记事本打开) 2、将channels中的镜像链接 https:// 改 阅读全文
posted @ 2021-12-17 16:32 _yhwu 阅读(1909) 评论(0) 推荐(0) 编辑
摘要: 参考文献引用风格之 Vancouver style 需要在引用出使用阿拉伯数字(1,2,3...)标注参考文献序号。 示例: Deep Learning [1]. Reference [1] LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learn 阅读全文
posted @ 2021-12-04 22:38 _yhwu 阅读(1334) 评论(0) 推荐(0) 编辑
摘要: latex使用 \begin{equation} 编辑公式时,会自动为公式进行编号 如果需要取消自动编号,只需要在公式后加上 \nonumber 命令即可 例子 \begin{equation} \begin{aligned} a = b + c \nonumber \end{aligned} \e 阅读全文
posted @ 2021-11-23 10:13 _yhwu 阅读(14069) 评论(1) 推荐(0) 编辑
摘要: LaTex换行会默认缩进,如果想不缩进只需要在不需要缩进的内容前面加上 \noindent 命令 ababababababababababab \noindent 不缩进不缩进 阅读全文
posted @ 2021-11-23 10:07 _yhwu 阅读(4004) 评论(0) 推荐(0) 编辑
摘要: LaTex中表格排版——表格描述位置调整 LaTex模板大多默认将表格描述置于表格下方,可通过修改 \caption 的位置调整。 1. 位于表格下方(默认) \begin{table}[h] \begin{tabular}{l|c|c|c|c|c} ... \end{tabular} % 表尾 \ 阅读全文
posted @ 2021-11-23 09:57 _yhwu 阅读(9355) 评论(0) 推荐(0) 编辑
摘要: \documentclass{article} \usepackage{CJKutf8} \begin{document} \begin{CJK}{UTF8}{gbsn} 中文样例,UTF-8编码,字体:gbsn。 \end{CJK} \end{document} 阅读全文
posted @ 2021-11-18 14:12 _yhwu 阅读(2103) 评论(0) 推荐(0) 编辑
摘要: 问题 git push -u origin master 执行后报错 fatal: Could not read from remote repository. 解决方案 1. git执行 git remote add origin git@github.com:username/xxx.git 2 阅读全文
posted @ 2021-11-18 11:09 _yhwu 阅读(688) 评论(0) 推荐(0) 编辑
摘要: Dropout layers class torch.nn.Dropout(p=0.5, inplace=False) 随机将输入张量中部分元素设置为0。对于每次前向调用,被置0的元素都是随机的。 参数: p - 将元素置0的概率。默认值:0.5 in-place - 若设置为True,会在原地执行 阅读全文
posted @ 2021-11-16 16:49 _yhwu 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 在import numpy的时候编译器提示这个问题。 问题的原因是numpy版本>1.18,而scipy的版本<=0.19 解决方案: 卸载当前版本scipy(0.19),安装更高版本scipy,如 pip install scipy==1.7.0 阅读全文
posted @ 2021-10-27 10:08 _yhwu 阅读(1826) 评论(0) 推荐(0) 编辑
摘要: 1. 读取txt文本 1.1 read() 一次性读全部内容 一次性读取文本中全部的内容,以字符串的形式返回结果 with open("text.txt", "r") as f: # 打开文件 data = f.read() # 读取文件 print(data) 1.2 readline() 读取第 阅读全文
posted @ 2021-09-18 20:03 _yhwu 阅读(1304) 评论(0) 推荐(0) 编辑