上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 74 下一页
摘要: Python计算程序运行时长可用time模块。 例子: import time start = time.time() for i in range(10000000): pass stop = time.time() running_time = stop - start print('runni 阅读全文
posted @ 2020-08-17 23:08 Picassooo 阅读(332) 评论(0) 推荐(0)
摘要: scikit-learn中的KMeans聚类实现( + MiniBatchKMeans) 阅读全文
posted @ 2020-08-17 22:52 Picassooo 阅读(247) 评论(0) 推荐(0)
摘要: np.append()函数用法 阅读全文
posted @ 2020-08-17 22:01 Picassooo 阅读(1233) 评论(0) 推荐(0)
摘要: 本文摘自前两个截图来自python--之np.delete 阅读全文
posted @ 2020-08-17 21:52 Picassooo 阅读(605) 评论(0) 推荐(0)
摘要: 一. 普通全连接神经网络的计算过程 假设用全连接神经网络做MNIST手写数字分类,节点数如下: 第一层是输入层,784个节点; 第二层是隐层,100个节点; 第三层是输出层,10个节点。 对于这个神经网络,我们在脑海里浮现的可能是类似这样的画面: 但实际上,神经网络的计算过程,本质上是输入向量(矩阵 阅读全文
posted @ 2020-08-14 21:13 Picassooo 阅读(10573) 评论(0) 推荐(3)
摘要: 注:本篇博客介绍的方法有点繁琐,建议采用另外一篇博客中介绍的方法:Pycharm远程连接服务器(或者docker) 第一步:配置deployment 点击 tools --> Deployment --> Configuration 弹出如下对话框,点击左上角的 ‘+’,选择SFTP,,在弹出的小对 阅读全文
posted @ 2020-08-14 11:00 Picassooo 阅读(5919) 评论(0) 推荐(1)
摘要: Pytorch之permute函数 阅读全文
posted @ 2020-08-13 19:48 Picassooo 阅读(473) 评论(0) 推荐(0)
摘要: torch.nn.lstm()接受的数据输入是(序列长度,batchsize,输入维数),使用batch_first=True,可以使lstm接受维度为(batchsize,序列长度,输入维数)的数据输入,同时,lstm的输出数据维度也会变为batchsize放在第一维(可参考这篇博客)。 阅读全文
posted @ 2020-08-13 12:03 Picassooo 阅读(2668) 评论(0) 推荐(0)
摘要: 在用PyTorch保存模型时,常常会遇到UserWarning: Couldn't retrieve source code for container of type Net. It won't be checked for correctness upon loading."type " + o 阅读全文
posted @ 2020-08-12 13:08 Picassooo 阅读(2326) 评论(0) 推荐(0)
摘要: airflights passengers dataset下载地址https://raw.githubusercontent.com/jbrownlee/Datasets/master/airline-passengers.csv 这个dataset包含从1949年到1960年每个月的航空旅客数目, 阅读全文
posted @ 2020-08-12 13:00 Picassooo 阅读(1458) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 74 下一页