摘要:https://arimo.com/data-science/2016/bayesian-optimization-hyperparameter-tuning/ 贝叶斯优化:使用高斯过程作为代理函数,并且通常优化提升幅度的期望Expected Improvement(新试验相对当前最好观测的提升的期 阅读全文
posted @ 2017-12-17 20:37 Avril 阅读(3412) 评论(0) 推荐(0) 编辑
摘要:Windows上TensorFlow的安装和环境搭建: 1.安装Python 3.5.2 2.通过Pip3安装TensorFlow CPU版 https://www.tensorflow.org/install/install_windows 3.VisualStudio2015 Python Pr 阅读全文
posted @ 2017-04-27 17:36 Avril 阅读(153) 评论(0) 推荐(0) 编辑
摘要:C/C++宏体中出现的#,#@,##: - #的功能是将其后面的宏参数进行字符串化操作(stringfication),就是对它所引用的宏变量通过替换后在其左右各加上一个双引号 -##被称为连接符(concatenator),用来将两个token连接为一个token。注意这里连接的对象是token就 阅读全文
posted @ 2016-12-13 00:11 Avril 阅读(442) 评论(0) 推荐(0) 编辑
摘要:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo... 阅读全文
posted @ 2014-10-16 21:56 Avril 阅读(265) 评论(0) 推荐(0) 编辑
摘要:There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following req... 阅读全文
posted @ 2014-10-16 21:15 Avril 阅读(251) 评论(0) 推荐(0) 编辑
摘要:Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.这题和sort list等题都比较相似,需要先用快慢指针的方法找到链表的中点,然后... 阅读全文
posted @ 2014-10-16 20:52 Avril 阅读(153) 评论(0) 推荐(0) 编辑
摘要:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complet... 阅读全文
posted @ 2014-10-16 20:14 Avril 阅读(205) 评论(0) 推荐(0) 编辑
摘要:Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers.... 阅读全文
posted @ 2014-10-12 16:28 Avril 阅读(137) 评论(0) 推荐(0) 编辑
摘要:Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all ... 阅读全文
posted @ 2014-10-12 15:52 Avril 阅读(86) 评论(0) 推荐(0) 编辑
摘要:Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the... 阅读全文
posted @ 2014-10-12 14:54 Avril 阅读(336) 评论(0) 推荐(0) 编辑