上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 64 下一页
摘要: 例一 import torch import torch.nn as nn a = torch.rand([3, 3]) # a是2维的 b = a[:2] # 对a进行切片操作时,只指明了一维。这时的意思是,只对a的第一维进行切片操作,第二维不变,相当于b=a[:2, :] print('a:\n 阅读全文
posted @ 2022-03-23 19:15 Picassooo 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 本文参考了以下资料: 知乎:python logging 日志模块详解 python 日志输出模块 logging 简书:Python日志库logging总结 csdn: pytorch图像分类框架搭建——利用logging记录训练日志 一. 基本使用 logging 使用非常简单,使用 basic 阅读全文
posted @ 2022-03-23 10:56 Picassooo 阅读(821) 评论(0) 推荐(1) 编辑
摘要: python导入任意目录下的模块 阅读全文
posted @ 2022-03-20 17:33 Picassooo 阅读(31) 评论(0) 推荐(0) 编辑
摘要: ml_collections的介绍 阅读全文
posted @ 2022-03-20 17:07 Picassooo 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 参考: Pytorch之contiguous函数 PyTorch中的contiguous 阅读全文
posted @ 2022-03-19 12:01 Picassooo 阅读(39) 评论(0) 推荐(0) 编辑
摘要: position embedding:This post is all you need(②位置编码与编码解码过程) 阅读全文
posted @ 2022-03-16 09:58 Picassooo 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 摘自:哔哩哔哩 数据结构 【图】 阅读全文
posted @ 2022-03-08 21:31 Picassooo 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 知乎:支持向量机(SVM)——原理篇 简书:SVM算法原理 阅读全文
posted @ 2022-03-04 15:00 Picassooo 阅读(44) 评论(0) 推荐(0) 编辑
摘要: one-vs-all classifier和one-vs-one classifier 阅读全文
posted @ 2022-03-04 11:21 Picassooo 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 在刷LeetCode时,有时候需要在本地调试代码,但是苦于本地没有树的数据类型,所以自己动手用python写了一个二叉树类,并且实现了可视化。 下面的程序仅仅是为了创建二叉树,方便在刷LeetCode有关题目时进行本地调试代码,所以有些功能没有加上去,比如删除节点的功能。程序虽然是二叉树类,也容易扩 阅读全文
posted @ 2022-02-28 10:19 Picassooo 阅读(1316) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 64 下一页