自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 Tensors

TensorsWhat is Tensors?Tensors are a specialized data structure that are very similar to arrays and matrices. In PyTorch, we use tensors to encode the inputs and outputs of a model, as well as the model’s parameters.Tensors are similar to NumPy’s ndarr

2021-10-29 22:29:01 332

原创 K-Nearest-Neighbors

K-Nearest Neighbor1. 基础知识tile这个函数在numpy中函数形式:tile (A, reps)重复A的各个维度,reps是重复的次数from numpy import tileArray = [1,2,3]y = tile(Array,2)输出为:[1 2 3 1 2 3]y = tile(Array,(2,2))这个相当于先得到 [1 2 3 1 2 3],再重复输出为:[[1 2 3 1 2 3][1 2 3 1 2 3]]y

2021-10-29 22:13:50 273

原创 爬虫学习-第一弹-批量下载二次元好图

图片网址:/ | konachan.net - Konachan.com Anime Wallpapersimport requestsimport reimport osheaders = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Edg/92.0.902.67"

2021-08-16 18:55:36 414

原创 爬虫学习-第一弹-批量下载二次元好图

这个暑假刚刚接触爬虫,通过看b站视频学到了用request爬取图片的方法,之后就一直想着爬点自己想看的图片。正巧今天下午无事可做,决定试一试自己写一个。图片的网站:/ | konachan.net - Konachan.com Anime Wallpapersimport requestsimport reimport osheaders = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit

2021-08-16 18:41:39 287

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除