ML
文章平均质量分 95
Professor_HR
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Tensors
Tensors What 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 · 451 阅读 · 0 评论 -
K-Nearest-Neighbors
K-Nearest Neighbor 1. 基础知识 tile 这个函数在numpy中 函数形式:tile (A, reps) 重复A的各个维度,reps是重复的次数 from numpy import tile Array = [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 · 391 阅读 · 0 评论
分享