摘要: 管理员权限中的git bash 访问网络驱动器 由于需求,需要在网络驱动器中运行shell脚本且需要管理员权限。 system: windows 10 network drive: 原本映射盘符为y, 其实际映射地址为局域网ip 首先,找到git bash.exe,右键属性-兼容性勾选管理员权限;此 阅读全文
posted @ 2022-05-05 17:11 Harry666 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 本文基于SO的帖子:Link: https://stackoverflow.com/questions/61848825/why-is-input-length-needed-in-layers-embedding-in-keras-tensorflow 在翻文档的时候,发现了input_lengt 阅读全文
posted @ 2021-04-11 14:50 Harry666 阅读(1496) 评论(0) 推荐(1) 编辑
摘要: from_logits是一个布尔量,当from_logits=True的时候,该层会将output做normalize(softmax) 因此,一个直观的理解就是layerA with activation + softmax + loss(from_logits=False)与layerA + l 阅读全文
posted @ 2021-04-08 22:13 Harry666 阅读(1195) 评论(0) 推荐(0) 编辑
摘要: [CS224N] Note2 Word2vec $P(w_{t+j}|w_t;\theta)\(其中\)\theta$是词向量参数,是一个客观存在的东西 对于Likelihood,已知概率分布求参数即词向量。 那么问题就变成$\max_\theta Likelihood \Rightarrow \m 阅读全文
posted @ 2021-02-04 02:02 Harry666 阅读(52) 评论(0) 推荐(0) 编辑
摘要: [CS224N] Note1 word2vec 在word2vec中,假设有一个语句A{w1,w2,w3,w4,...,wn},一个有序集合,对于每一个元素(也就是单词),都有两种向量表示:outside vector & center vector。 设向量长度为x,那么这些单词构成矩阵outsi 阅读全文
posted @ 2021-02-01 01:45 Harry666 阅读(32) 评论(0) 推荐(0) 编辑
摘要: sed批量处理 sed是Linux下的一个流编辑器,使用sed可以对于文本中进行统一的批量处理。同时通过Linux里的pipeline可以巧妙的将文件名作为stdout输入给sed作处理。 代码 find . -maxdepth 1 -name '*.pdf' | while read filena 阅读全文
posted @ 2021-01-28 15:39 Harry666 阅读(162) 评论(0) 推荐(0) 编辑
摘要: jupyter notebook报错: zsh: command not found; bad interpreter; Error executing Jupyter command 'notebook' 问题描述 系统 macOS Catalina 10.15.7 (我认为大部分linux版本是 阅读全文
posted @ 2020-12-20 16:06 Harry666 阅读(2336) 评论(0) 推荐(0) 编辑
摘要: [DeepLearning] 为什么需要随机梯度下降 Why SGD instead of GD Why (English Version) Here is the update formulation of GD, and it's easy to see that the update woul 阅读全文
posted @ 2020-12-18 17:07 Harry666 阅读(85) 评论(0) 推荐(0) 编辑
摘要: [Python] __call__ class sample(): def __call__(self,arg_call): print("__call__ is executed, the arg is %s") a=sample() a("test") __call__ is executed, 阅读全文
posted @ 2020-12-13 16:31 Harry666 阅读(54) 评论(0) 推荐(0) 编辑
摘要: [python]if __name__ =='__main__' __name__ 是当前模块名,当模块被直接运行时模块名为 __main__ 。这句话的意思就是,当模块被直接运行时,以下代码块将被运行,当模块是被导入时,代码块不被运行。 阅读全文
posted @ 2020-12-08 21:39 Harry666 阅读(98) 评论(0) 推荐(0) 编辑