1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #define inf ... ...
分类:
其他好文 时间:
2018-06-15 20:06:15
阅读次数:
156
对于机器学习模型,我们把他们分成基于树的模型和非基于树的模型,因为在处理他们的特征需要不同的方法。 1.数值型特征 如果一个特征的值特别大的话,那么会使得其在非树模型上占有很大的比例,所以我们通常对其做归一化处理。 Outliers:不管是对特征还是标签,异常数据对模型的鲁棒性都会带来较大的打击,所 ...
分类:
其他好文 时间:
2018-06-14 23:15:59
阅读次数:
250
题目: 一个台阶总共有n 级,如果一次可以跳1 级,也可以跳2 级,求总共有多少种跳法。 备注: 这个题目经常出现,包括Microsoft 等比较重视算法的公司都曾先后选用过个这道题作为面试题或者笔试题。 问题分析: 如果只有1 级台阶,那显然只有一种跳法; 如果有2 级台阶,那就有两种跳的方法了: ...
分类:
编程语言 时间:
2018-06-13 20:53:53
阅读次数:
227
单个查询 http://www.wolframalpha.com/input/?source=nav&i=simplify+radical+sqrt(567) notebook https://sandbox.open.wolframcloud.com/app/objects/7d8ef5ec 66 ...
分类:
其他好文 时间:
2018-06-11 13:44:04
阅读次数:
124
1、使用示例 2、树模型参数:【很多参数都是用来限制树过于庞大,即担心其过拟合】 # 1.criterion gini or entropy:用什么作为衡量标准 ( 熵值或者Gini系数 )。 # 2.splitter best or random 前者是在所有特征中找最好的切分点 后者是在部分特征 ...
分类:
其他好文 时间:
2018-06-10 15:07:28
阅读次数:
310
public class Demo{ public static void main(String args[]){ /** *Math.sqrt()//计算平方根 *Math.cbrt()//计算立方根 *Math.pow(a, b)//计算a的b次方 *Math.max( , );//计算最大值 ...
分类:
其他好文 时间:
2018-06-09 15:30:45
阅读次数:
197
四则运算: tf.add(x,y,name) tf.subtract(x,y,name) tf.multiply(x,y,name) tf.divide(x,y,name) tf.square(x,name) # 平方 tf.pow(x,y,name) # x的y次方 tf.sqrt(x,name) ...
分类:
其他好文 时间:
2018-06-07 19:31:42
阅读次数:
218
一、什么叫分离参数法? 还是用例子说比较好些。 (2018宝鸡市二检理科第10题)关于$x$的方程$\sqrt{3}sin2x+cos2x k 1=0$在$[0,\cfrac{\pi}{2}]$内有两个实数根,则$k$的取值范围是()。 A.$(1,2)$ $\hspace{2cm}$ B.$[0, ...
分类:
其他好文 时间:
2018-06-06 22:05:07
阅读次数:
416
题:判断一个整数是否是完全平方数。 完全平方数:开平方后值为整数的数,例如9,16,25等 方法1: n*n = 1+3+5+...+(2n+1),是一个首项为1公差为2的等差数列。 把待判断的数-1 ,-(1+2),-(1+2+2)...直到最后结果能为零就为完全平方数。 方法2: 用Math方法 ...
分类:
其他好文 时间:
2018-06-05 13:30:10
阅读次数:
152
问题描述: Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is ...
分类:
其他好文 时间:
2018-06-02 11:40:40
阅读次数:
130