![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ML
文章平均质量分 95
Professor_HR
这个作者很懒,什么都没留下…
展开
-
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 · 373 阅读 · 0 评论 -
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 · 289 阅读 · 0 评论