02 2020 档案

摘要:1.ord函数 >>> ord('a') 97 >>> chr(97) 'a' 就是上面这个样子,返回ASCII值,有值就输出对应的字符。 2.GPU不是用来计算的吗?为什么还可以存储数据呢? https://www.cnblogs.com/hellobb/p/11023873.html 是可以存储 阅读全文
posted @ 2020-02-24 17:43 lypbendlf 阅读(758) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/grandyang/p/4137302.html https://www.cnblogs.com/hiddenfox/p/3408931.html 讲的非常地好,双指针中的快慢指针。 阅读全文
posted @ 2020-02-23 16:39 lypbendlf 阅读(117) 评论(0) 推荐(0) 编辑
摘要:2020-2-22———————————— 2.为什么softmax要取log? https://blog.csdn.net/LEILEI18A/article/details/101284481 https://blog.csdn.net/tongjinrui/article/details/79 阅读全文
posted @ 2020-02-21 23:13 lypbendlf 阅读(375) 评论(0) 推荐(0) 编辑
摘要:1.在VAE生成模型中,它包括推断和生成过程,那么如果通过一个训练集训练好了整个模型,是否可以将生成模型单独使用?也就是z随机生成,隐空间随机,那么生成的数据是可用的吗?生成的数据是有意义的吗? 最简单的办法就是使用mnist生成数据,看生成的是否有规律了。 这个是下列代码生成的结果: z是通过随机 阅读全文
posted @ 2020-02-20 00:21 lypbendlf 阅读(250) 评论(0) 推荐(0) 编辑
摘要:1.pytorch中给出的例子 https://github.com/pytorch/examples/blob/master/vae/main.py 实现过程非常简单: class VAE(nn.Module): def __init__(self): super(VAE, self).__ini 阅读全文
posted @ 2020-02-10 08:44 lypbendlf 阅读(1019) 评论(0) 推荐(0) 编辑
摘要:1.训练过程的四个内容 从上面可以看到一个典型的训练过程:处理数据+前向模型+后向传播优化+打印结果 2. .item()作用 import torch a=torch.tensor([0]) print(a.item()) 输出: 0 只针对单个的数 import torch a=torch.te 阅读全文
posted @ 2020-02-09 18:09 lypbendlf 阅读(200) 评论(0) 推荐(0) 编辑
摘要:1.一个例子 http://sep.stanford.edu/public/docs/sep99/jest_intro_Fig/paper_html/node2.html 2.知乎问答 https://www.zhihu.com/question/48279880 阅读全文
posted @ 2020-02-09 14:23 lypbendlf 阅读(128) 评论(0) 推荐(0) 编辑
摘要:转自:https://towardsdatascience.com/gamma-distribution-intuition-derivation-and-examples-55f407423840 #似乎还从来没有认真地学习过gamma分布。 1. 从这个图中似乎可以认为,gamma分布中的sha 阅读全文
posted @ 2020-02-09 00:10 lypbendlf 阅读(706) 评论(0) 推荐(0) 编辑
摘要:1.问题分析 https://leetcode.com/articles/subsets/ 三个问题的解空间如上(看到这种问题真是脑瓜子嗡嗡的,好难) 其中子集问题,为2^n,因为每一个元素可能出现也可能不出现(原来是这样。) 一般的解决方法包括:递归、回溯、以及二进制操作(基于二进制位掩码和对应位 阅读全文
posted @ 2020-02-08 23:40 lypbendlf 阅读(247) 评论(0) 推荐(0) 编辑
摘要:1.pytorch入门学习 https://pytorch.org/tutorials/beginner/blitz/tensor_tutorial.html#sphx-glr-beginner-blitz-tensor-tutorial-py 这个官方教程还挺好的。可以作为一个手册来查找。 包括创 阅读全文
posted @ 2020-02-04 20:57 lypbendlf 阅读(142) 评论(0) 推荐(0) 编辑
摘要:转自:https://blog.csdn.net/Stupid_human/article/details/99414013 1.上下文相同的词,词义很大可能也相同。 比如这个例子中,单词可能意思是beer,和beer相似。 2.怎么做文本分类? 两篇文章的向量相似,那么两篇文章也相似。 3.htt 阅读全文
posted @ 2020-02-01 23:44 lypbendlf 阅读(309) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.bioconductor.org/packages/release/bioc/vignettes/splatter/inst/doc/splatter.html 1.quickstart library(splatter) library(scater)# 创建模拟数据 阅读全文
posted @ 2020-02-01 22:35 lypbendlf 阅读(1308) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示