摘要: 一、梯度检测: 对于函数而言通常有两种计算梯度的方式: 1.数值梯度 (numberical gradient) 2.解析梯度 (analytic gradient ) 数值梯度计算通常为: 更为常见的是: h是一个很小的数,在实际当中通常为1e-5 假设数值梯度为ƒ’a 解析梯度为ƒ’n ,则数值 阅读全文
posted @ 2016-06-02 12:45 路萧 阅读(2300) 评论(0) 推荐(0) 编辑
摘要: 对于CNN输入的数据,常见的有三种处理方式: 1.Mean subtraction. 将数据的每一维特征都减去平均值。在numpy 中 X -= np.mean(X, axis = 0) 2.Normalization 归一化数据,使数据在相同尺度。 在numpy 中 X /= np.std(X, 阅读全文
posted @ 2016-05-27 13:52 路萧 阅读(14192) 评论(0) 推荐(0) 编辑
摘要: 继承自QObject 的Qt类都具有支持信号和槽的能力,并且在子类的实现代码中直接使用connect()函数pwdLineEdit->setEchoMode(QLineEdit::Password);QLineEdit::Normal 默认显示方式,显示用户实际输入的内容QLineEdit::Password 用*号代替输入内容QLineEdit::NoEcho 不显示输入任何内容QLineEdit::PasswordEchoOnEdit 仅仅用户在行编辑框里编辑文本时才显示用户输入的字符,完成后以*号代替输入的内容QGridLayout::addWidget(Line,0,0,1,1) 阅读全文
posted @ 2014-01-03 12:45 路萧 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1050. String Subtraction (20)时间限制10 ms内存限制32000 kB代码长度限制16000 B判题程序StandardGiven two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to calculate S1 - S2 for any given strings. However, it might not be that simpl 阅读全文
posted @ 2013-10-01 15:55 路萧 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 1020. Tree Traversals (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the corresponding binar 阅读全文
posted @ 2013-09-21 19:53 路萧 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1013. Battle Over Cities (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueIt is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we need to repair a 阅读全文
posted @ 2013-09-21 12:38 路萧 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1012. The Best Rank (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algrbra), and E - English. At the mean 阅读全文
posted @ 2013-09-19 14:58 路萧 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1009. Product of Polynomials (25) 时间限制 400 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue 时间限制 400 ms 时间限制 400 ms 内存限制 32000 kB 内存限制 32000 阅读全文
posted @ 2013-09-19 14:22 路萧 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1003. Emergency (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAs an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the length of each road bet 阅读全文
posted @ 2013-09-15 19:39 路萧 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 1038. Recover the Smallest Number (30)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can recover many numbers such like 32-321-3214-0229-87 or 阅读全文
posted @ 2013-09-13 16:33 路萧 阅读(199) 评论(0) 推荐(0) 编辑