上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 73 下一页
摘要: 一. 普通全连接神经网络的计算过程 假设用全连接神经网络做MNIST手写数字分类,节点数如下: 第一层是输入层,784个节点; 第二层是隐层,100个节点; 第三层是输出层,10个节点。 对于这个神经网络,我们在脑海里浮现的可能是类似这样的画面: 但实际上,神经网络的计算过程,本质上是输入向量(矩阵 阅读全文
posted @ 2020-08-14 21:13 Picassooo 阅读(10491) 评论(0) 推荐(3)
摘要: 注:本篇博客介绍的方法有点繁琐,建议采用另外一篇博客中介绍的方法:Pycharm远程连接服务器(或者docker) 第一步:配置deployment 点击 tools --> Deployment --> Configuration 弹出如下对话框,点击左上角的 ‘+’,选择SFTP,,在弹出的小对 阅读全文
posted @ 2020-08-14 11:00 Picassooo 阅读(5869) 评论(0) 推荐(1)
摘要: Pytorch之permute函数 阅读全文
posted @ 2020-08-13 19:48 Picassooo 阅读(471) 评论(0) 推荐(0)
摘要: torch.nn.lstm()接受的数据输入是(序列长度,batchsize,输入维数),使用batch_first=True,可以使lstm接受维度为(batchsize,序列长度,输入维数)的数据输入,同时,lstm的输出数据维度也会变为batchsize放在第一维(可参考这篇博客)。 阅读全文
posted @ 2020-08-13 12:03 Picassooo 阅读(2657) 评论(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 阅读(2320) 评论(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 阅读(1433) 评论(0) 推荐(0)
摘要: 数据归一化 minmax_scale()函数解析 例子: import numpy as np from sklearn.preprocessing import MinMaxScaler a = np.arange(20).reshape(4, 5) ms = MinMaxScaler(featu 阅读全文
posted @ 2020-08-11 13:44 Picassooo 阅读(4453) 评论(0) 推荐(0)
摘要: scikit-learn数据预处理fit_transform()与transform()的区别 阅读全文
posted @ 2020-08-11 13:41 Picassooo 阅读(467) 评论(0) 推荐(0)
摘要: pandas dataframe 提取行和列 阅读全文
posted @ 2020-08-11 12:42 Picassooo 阅读(2147) 评论(0) 推荐(0)
摘要: 参考一: PyTorch中LSTM的输出格式 该文章的核心内容截图如下: 总的结论: 注意:如果在搭建lstm网络时使用了batch_first=True,则lstm网络不仅接受的数据第一维是batch,而且输出的结果中,batch也会在第一维,即 output's shape (batch, se 阅读全文
posted @ 2020-08-10 17:27 Picassooo 阅读(3268) 评论(0) 推荐(2)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 73 下一页