在numpy库中,经常会出现“秩为1的一维数组”(come from 吴恩达的深度学习,目前还没有搞清楚numpy中如此设计的意图)。比如: 注意这里的a的shape是[3] ,既不是 [1,3] 也不是 [3,1]。这就说明它既不是行向量也不是列向量,只是一个数组。 但是我们可以用squeeze( ...
分类:
其他好文 时间:
2018-12-22 20:37:50
阅读次数:
14139
Doing Homework Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of ha ...
分类:
其他好文 时间:
2018-12-08 17:05:45
阅读次数:
124
1 [by:妍敏茶馆] 2 [00:00.00] 作曲 : Joachim Gorrebeeck/Aviella Winder 3 [00:11.48]Lately I've been feeling lonely 4 [00:14.47]Wish someone would come and sa ...
分类:
其他好文 时间:
2018-12-02 15:24:46
阅读次数:
97
Problem Description Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will ...
分类:
其他好文 时间:
2018-12-01 13:23:02
阅读次数:
129
https://biginterview.com/blog/2011/09/tell-me-about-yourself.html There are some job interview questions that are guaranteed to come up in most (if no ...
分类:
其他好文 时间:
2018-11-25 14:47:34
阅读次数:
186
Description Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning ...
分类:
其他好文 时间:
2018-11-18 14:59:31
阅读次数:
137
Koko loves to eat bananas. There are N piles of bananas, the i-th pile has piles[i] bananas. The guards have gone and will come back in H hours. Koko ...
分类:
其他好文 时间:
2018-11-10 19:15:15
阅读次数:
209
题目链接:https://leetcode.com/problems/partition-list/description/ Given a linked list and a value x, partition it such that all nodes less than x come be ...
分类:
其他好文 时间:
2018-11-10 15:13:21
阅读次数:
189
Mirko works on a pig farm that consists of M locked pig-houses and Mirko can't unlock any pighouse because he doesn't have the keys. Customers come to ...
分类:
其他好文 时间:
2018-11-09 00:50:12
阅读次数:
179
Til the Cows Come Home | Time Limit: 1000MS | | Memory Limit: 65536K | | Total Submissions: 76501 | | Accepted: 25456 | Description Bessie is out in t ...
分类:
其他好文 时间:
2018-10-31 01:04:13
阅读次数:
130