随笔分类 -  找工作面试

摘要:前面:好老的东西啊,啊啊啊啊啊啊啊啊啊 来源于统计学习方法: 信息增益: 其中 信息增益率: 基尼指数: 取gini最小的 先剪枝——在构造过程中,当某个节点满足剪枝条件,则直接停止此分支的构造。 后剪枝——先构造完成完整的决策树,再通过某些条件遍历树进行剪枝。 adaboost 阅读全文
posted @ 2017-08-28 11:09 simple_wxl 阅读(1446) 评论(0) 推荐(0) 编辑
摘要:来源于知乎: 1. LibLinear是线性核,LibSVM可以扩展到非线性核(当也能用线性核,但同样在线性核条件下会比LibLinear慢很多)。2. 多分类:LibLinear是one vs all策略,LibSVM是one vs one策略,后者的模型会大很多。3. 模型的文件格式不兼容。<! 阅读全文
posted @ 2017-08-03 12:27 simple_wxl 阅读(682) 评论(0) 推荐(0) 编辑
摘要:python构造函数:__init__(): 如果子类定义了自己的__init__构造方法函数,当子类的实例对象被创建时,子类只会执行自己的__init__方法函数,如果子类未定义自己的构造方法函数,会沿着搜索树找到父类的构造方法函数去执行父类里的构造方法函数。如子类定义了自己的构造方法函数,如果子 阅读全文
posted @ 2017-03-12 15:42 simple_wxl 阅读(1181) 评论(0) 推荐(0) 编辑
摘要:来源:https://www.nowcoder.com/discuss/1937 (还有其它的,不知道,如有发现可联系我修改 整理一下计算机网络部分的面试常考点,参考书籍:《计算机网络》第五版 谢希仁的那本,希望对大家有所帮助 OSI,TCP/IP,五层协议的体系结构,以及各层协议 OSI分层 (7 阅读全文
posted @ 2017-03-06 16:54 simple_wxl 阅读(263) 评论(0) 推荐(0) 编辑
摘要:class Solution { public: /** * @param A an integer array * @return void */ int partion(vector<int>& num,int left,int right) { int poit=num[left]; whil 阅读全文
posted @ 2017-03-02 09:48 simple_wxl 阅读(266) 评论(0) 推荐(0) 编辑
摘要:1、static作用 a)隐藏(对本模块有效,其它文件不可见) b)持久性(保存在静态存储区) c)初始值为0 d)类中所有对象所有,节省空间 2、const作用 a)read only b)节省内存(编译器编译对时候,放到符号表里面,没有分配内存) c)更少对debug,防止被修改 1、指针 in 阅读全文
posted @ 2017-02-15 14:53 simple_wxl 阅读(234) 评论(0) 推荐(0) 编辑
摘要:其中冒泡排序加个标志,所以最好情况下是o(n) 直接选择排序: 排序过程: 1 、首先在所有数据中经过 n-1次比较选出最小的数,把它与第 1个数据交换, 2、然后在其余的数据内选出排序码最小的数,与第 2个数据交换...... 依次类推,直到所有数据排完为止。 在第i 趟排序中选出最小关键字的数据 阅读全文
posted @ 2017-02-14 21:14 simple_wxl 阅读(128766) 评论(1) 推荐(6) 编辑
摘要:cout<<setprecision(6)<<fixed<<ans<<endl; 阅读全文
posted @ 2017-02-04 22:55 simple_wxl 阅读(1446) 评论(0) 推荐(0) 编辑
摘要:// oj3.cpp : Defines the entry point for the console application.// #include "stdafx.h"#include<iostream>#include<opencv2\opencv.hpp>#include<opencv2/ 阅读全文
posted @ 2017-01-12 09:47 simple_wxl 阅读(2241) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/lanxuecc/article/details/53186613 阅读全文
posted @ 2017-01-06 15:32 simple_wxl 阅读(115) 评论(0) 推荐(0) 编辑
摘要:配置参考博客:(目前有问题,百度说官网的是32bit,现在正在尝试64位 http://www.powerxing.com/install-hadoop-cluster/ 阅读全文
posted @ 2016-12-15 10:50 simple_wxl 阅读(143) 评论(0) 推荐(0) 编辑
摘要:可以在子类中通过基类名访问函数 // oj4.cpp : Defines the entry point for the console application.// #include "stdafx.h"#include<iostream>#include<vector>using namespa 阅读全文
posted @ 2016-12-12 22:43 simple_wxl 阅读(180) 评论(0) 推荐(0) 编辑
摘要:pading :SAME,VALID 区别 http://blog.csdn.net/mao_xiao_feng/article/details/53444333 tensorflow实现的各种算法:http://www.cnblogs.com/zhizhan/p/5971423.html 卷积神经 阅读全文
posted @ 2016-12-04 11:00 simple_wxl 阅读(411) 评论(0) 推荐(0) 编辑
摘要:方法一: ArrayList<Integer> mycopy=new ArrayList<Integer>(); mycopy=(ArrayList<Integer>) vec.clone(); 方法二: ArrayList<Integer> mycopy=new ArrayList<Integer 阅读全文
posted @ 2016-11-29 15:48 simple_wxl 阅读(32803) 评论(0) 推荐(1) 编辑
摘要:Queue<TreeNode> que=new LinkedList<>(); 用linkedlist实现队列,offer,poll进出队列,peek对列顶部元素 python中import Queue que=Queue.Queue();//fifo队列,还有其它的2、class Queue.Li 阅读全文
posted @ 2016-11-29 15:47 simple_wxl 阅读(303) 评论(0) 推荐(0) 编辑
摘要:当是数组时候,是引用传递 阅读全文
posted @ 2016-11-29 14:05 simple_wxl 阅读(285) 评论(0) 推荐(0) 编辑
摘要:注意:python对圆括号()前面要加上转移字符\,还有点号也要加上转意字符\ 阅读全文
posted @ 2016-11-26 20:00 simple_wxl 阅读(2282) 评论(0) 推荐(0) 编辑
摘要:重定向标准输出,标准错误到同一个文件 cat foo > foo.txt 2>&1或cat foo &> foo.txt vim常用命令 移动光标: ctrl+f 向上翻页 ctrl+b 向下翻页 数字0 移动到当前行第一个字符 shift +$ 移动到当前行最后一个字符 G 移动到最后一行 gg 阅读全文
posted @ 2016-11-25 10:51 simple_wxl 阅读(367) 评论(0) 推荐(0) 编辑
摘要:python从某个网站上面爬很多图片的url,主要是从百度风云榜上面爬的,男演员,女演员,男歌手,女歌手,总共200张 阅读全文
posted @ 2016-11-24 20:24 simple_wxl 阅读(564) 评论(0) 推荐(0) 编辑
摘要:import java.awt.print.Printable; import java.beans.VetoableChangeListenerProxy; import java.lang.reflect.Array; import java.text.DateFormatSymbols; import java.text.spi.NumberFormatProvider; import j... 阅读全文
posted @ 2016-11-23 16:09 simple_wxl 阅读(304) 评论(0) 推荐(0) 编辑