- 博客(98)
- 资源 (10)
- 收藏
- 关注
原创 基于深度学习的目标检测技术演进:R-CNN、Fast R-CNN、Faster R-CNN
object detection我的理解,就是在给定的图片中精确找到物体所在位置,并标注出物体的类别。object detection要解决的问题就是物体在哪里,是什么这整个流程的问题。然而,这个问题可不是那么容易解决的,物体的尺寸变化范围很大,摆放物体的角度,姿态不定,而且可以出现在...
2018-04-15 18:50:42
323
原创 Practical Lessons from Predicting Clicks on Ads at Facebook
Abstract这篇论文介绍 GBDT+LR 模型表现比单个模型好3%,另外本文探讨了一系列影响最终预测表现的因素。毫无疑问其中最重要的是 拥有正确的特征(捕捉用户和广告历史信息)+Model(GBDT+LR)的贡献程度最大 数据实时性,学习速率,数据采样等其他因素影响较小。INTRODUCTION介绍了先前的一些相关paper。包括Google,Yahoo,MS的关于CTR Model方面的pa
2018-04-14 20:27:14
389
原创 深度剖析贝叶斯分类器
条件概率和全概率全概率公式客观概率 与主观概率贝叶斯分析先验概率后验概率极大似然估计朴素贝叶斯分类器思路与方法朴素贝叶斯的原理贝叶斯极大似然参数估计贝叶斯估计贝叶斯应用条件概率和全概率条件概率描述的是事件A在另一事件B已发生的条件下的概率,记作P(A|B):P(A|B)=P(A,B)P(B)P(A|B)=P(A,B)P(B)P(A|B) =...
2018-04-11 21:29:14
603
原创 基于深度学习的目标检测与识别
FAIR的目标检测研究平台,实现Mask R-CNN,RetinaNet等流行算法。Detectron是Facebook AI Research的软件系统,实现了最先进的目标检测算法,包括Mask R-CNN。 它是用Python编写的,由Caffe2深度学习框架支持。在FAIR,Detectron已经启动了许多研究项目,包括:用于物体检测的特征金字塔网络,掩模R-CNN,检测和识别人 -
2018-01-30 15:35:45
4055
转载 RCNN方法汇总及改进
Faster R-CNN 从2015年底至今已经有接近两年了,但依旧还是Object Detection领域的主流框架之一,虽然推出了后续 R-FCN,Mask R-CNN 等改进框架,但基本结构变化不大。同时不乏有SSD,YOLO等骨骼清奇的新作,但精度上依然以Faster R-CNN为最好。对于一般的通用检测问题(例如行人检测,车辆检测,文字检测),只需在ImageNet pre-train
2018-01-29 10:30:02
1276
1
原创 支持向量机(SVM)
SVM定义是在特征空间上的间隔最大的线性分类器,间隔最大使它区别于感知机; 有的人认为支持向量机是最好的现成分类器,SVM能够对训练集以外的数据点做出很好的决策。先介绍几个概念: 一、数据的可分性: (1)当数据线性可分时,可以学习一个线性可分向量机 (2)当数据不线性可分,可以利用核函数学习一个非线性分类器 二、函数间隔 和几何间隔: A,B,C三个点均在正类一侧,A距离超平面较远,若
2017-10-06 19:53:58
620
原创 Numpy基础操作
NumPy’s main object is the homogeneous multidimensional array. It is a table of elements (usually numbers), all of the same type, indexed by a tuple of positive integers. In NumPy dimensions are called
2017-09-30 23:18:11
584
原创 575. Distribute Candies
一、问题:Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of the corresponding kind. You need to distribute t
2017-08-12 20:04:56
300
原创 500. Keyboard Row
一、题目:Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below.二、解题class Solution { /* 从第一个单词开始找,先找出该单词首字母在
2017-08-12 19:03:00
267
原创 STL容器 set、 multiset、map、multimap
Set和Multiset 会根据特定的排序准则,自动将元素排序。两者不同之处是multiset允许元素重复而set不允许。set、 multiset的能力set和multiset通常以平衡二叉树完成,自动排序的优点在于令二叉树查找元素时拥有对数的性能。 另外自动排序造成set、multiset有个重要的限制:不能改变元素值。set、 multiset的操作函数c.count(val);//返回元素
2017-08-12 11:08:48
372
转载 C++ STL 之 unordered_set 介绍
简介 C++ 11中出现了两种新的关联容器:unordered_set和unordered_map,其内部实现与set和map大有不同,set和map内部实现是基于RB-Tree,而unordered_set和unordered_map内部实现是基于哈希表(hashtable),由于unordered_set和unordered_map内部实现的公共接口大致相同,所以本文以unor
2017-08-11 17:14:17
23270
原创 并发服务器的实现
一、服务器端:tcpserv01.c/************************************************************************* > File Name: tcpserv01.c > Author: zsj > Mail: 15623582731.com > Created Time: 2017年08月07日
2017-08-08 11:18:44
522
原创 并发服务器实现原理
一、监听套接字与连接套接字的区别:并发服务器中主服务器通过派生一个子进程来处理每个新的连接。如果一个子进程继续使用服务器众所周知的端口来服务一个长时间的请求。首先服务器IP地址为 12.106.32.254和192.168.42.1.服务器在它端口上执行被动打开。这是个监听套接字对,服务器在本地接口的21端口等待连接请求。、IP地址为206.168.112.219的主机启动第一个客户,它对服务器执行
2017-08-07 19:29:04
1089
原创 121. Best Time to Buy and Sell Stock
一、问题:Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock),
2017-08-07 15:02:06
291
原创 448、Find All Numbers Disappeared in an Array
一、问题: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after calling your
2017-08-07 09:27:18
236
原创 561. Array Partition I
一、问题: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as
2017-08-06 19:12:13
228
原创 27. Remove Element
一、问题:Given an array and a value, remove all instances of that value in place and return the new length.Do not allocate extra space for another array, you must do this in place with constant memory.The
2017-08-06 19:03:13
212
原创 基本套接字函数
一、socket函数为了执行网络I/O,一个进程必须做的第一件事就是调用socket函数,指定期望的通信协议类型。int socket(int family,int type,int protocol);//成功则返回正数,出错返回-1sockfd=socket(AF_INET,SOCK_STREAM,0)参数faminly :AF_INET(IPV4协议),AF_INET6(IPV6协议)typ
2017-08-06 17:11:28
445
原创 Socket套接字API简介
一、套接字地址结构:struct in_addr {in_addr_t s_addr; //32位IP地址,网络字节排序。};struct sockaddr_in{ unint8_t sin_len //结构长度 无符号的八位整数 sa_faminly_t sin_family;//协议族 AF_INET ,是一个无符号字段表示套接字结构中的地址族。 in_p
2017-08-06 15:31:54
589
原创 简单的时间服务器程序
一、客户程序:/************************************************************************* > File Name: timecli.c > Author:zsj > Mail: 15623582731@163.com > Created Time: 2017年08月06日 星期日 09时25分
2017-08-06 13:59:20
362
原创 485. Max Consecutive Ones
一、题目:Given a binary array, find the maximum number of consecutive 1s in this array.Example 1:Input: [1,1,0,1,1,1]Output: 3Explanation: The first two digits or the last three digits are consecutive 1s
2017-08-06 08:54:00
210
原创 566. Reshape the Matrix
一、题目:n MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data.You're given a matrix represented by a two-dime
2017-08-05 19:46:16
273
原创 从0开始学习 GitHub 系列之【了解Git】
一. Git 具体命令第一步,我们先新建一个文件夹,在文件夹里新建一个文件作为git仓库mkdir test (创建文件夹test)cd test (切换到test目录)touch a.md (新建a.md文件)第二步,初始化test作为git仓库git init第三步,将a.md文件添加到仓库。git add第四步,将等待提交的文件提交。git commit -m “first commit”第五
2017-08-05 11:54:55
290
原创 从0开始学习 GitHub 系列之【初识 GitHub】
1. 写在前面我一直认为 GitHub 是程序员必备技能,程序员应该没有不知道 GitHub 的才对,没想到这两天留言里给我留言最多的就是想让我写关于 GitHub 的教程,说看了不少资料还是一头雾水,我转念一想,我当初接触 GitHub 也大概工作了一年多才开始学习使用,我读者里很多是初学者,而且还有很多是在校大学生,所以不会用 GitHub 也就不奇怪了,所以我觉得写一写关于 GitHub 的教
2017-08-04 20:37:58
312
原创 18. 4Sum
一、问题Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.Note: The solution se
2017-08-03 13:30:42
200
原创 17. Letter Combinations of a Phone Number
一、题目:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input:Digit string "
2017-08-02 20:53:41
277
原创 分治策略之最大子数组问题
问题描述:问题:一个整数数组中的元素有正有负,在该数组中找出一个连续子数组,要求该连续子数组中各元素的和最大,这个连续子数组便被称作最大连续子数组。比如数组{2,4,-7,5,2,-1,2,-4,3}的最大连续子数组为{5,2,-1,2},最大连续子数组的和为5+2-1+2=8。解问题:一、暴力解法:#include<iostream>using namespace std;class solut
2017-08-02 15:22:31
351
原创 TCP,UDP
TCP协议:(1)TCP提供客户与服务器之间的连接。TCP客户首先与某个给定服务器建立一个连接。再跨过该连接与服务器交换数据。然后终止这个连接。(2)TCP提供了一种可靠性。当TCP向另一端发送数据时,它要求对端返回一个确认。如果没有收到确认,TCP就自动重传数据并等待更长时间。(3)TCP提供流量控制。TCP总是告知对端在任何时刻它一次能从对端接收多少字节的数据。这称为通告窗口。在任何时刻,该窗口
2017-07-31 14:14:30
298
原创 测试用网络及主机
(1)netstat -ni给出接口及其名字统计信息。zsj@zsj-virtual-machine:~/unp/unpv13e/tcpcliserv$ netstat -niKernel Interface tableIface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flgeth0
2017-07-31 11:37:47
444
原创 UNP源码使用及编译
本文针对《网络编程 卷1》unp.h 头文件及其编译问题进行记录,本书源码下载地址 http://www.unpbook.com首先进行编译,在目录 unpv13e下依次执行以下步骤: ./configure cd lib make cd ../libfree make cd ../libroute make //这一
2017-07-27 19:53:12
3083
原创 unix-进程组,会话
进程组概念:(1)每个进程除了有一个进程ID之外,还属于一个进程组。(2)进程组是一个或多个进程的集合。(3)每个进程组有一个唯一的进程组ID,它是一个正整数,并存放在pid_t数据类型中。使用getpgrp返回进程组ID。(4)每个进程组都有个组长ID。其进程组ID等于其进程ID。(5)组长进程可以创建一个进程组,创建该组的进程,然后终止。(6)从进程组创建开始到其中最后一个进程离开为止的时间区间
2017-07-27 11:13:35
311
原创 15. 3Sum
问题:Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: The solution set must not contain dup
2017-07-26 11:22:43
229
1
原创 redis-入门篇
看《Unix环境编程》想睡觉,怒扔之!为什么不找个成熟的服务器看看,点燃激情的火花。<1> 在 Ubuntu 系统安装 Redi 可以使用以下命令:$sudo apt-get update$sudo apt-get install redis-server启动 Redis$ redis-server查看 redis 是否启动?$ redis-cli以上命令将打开以下终端:redis 127.0.0.
2017-07-25 15:43:04
249
原创 14. Longest Common Prefix
题目Write a function to find the longest common prefix string amongst an array of strings. 分析:本题是求N个字符串的公共最长前缀,两两比较即可确定。class Solution {public: /** * * @return: The longest common prefix
2017-07-21 15:24:29
203
原创 13. Roman to Integer
题目:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.分析:此题将罗马数字转换成数字,上题已经分析了罗马数字的规律了 左边数字较小减去,右边数字相加。解题:class Solution { public:int romanToInt(
2017-07-21 11:32:33
210
原创 12. Integer to Roman
题目:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.分析:罗马数字的规律: 相同的数字连写、所表示的数等于这些数字相加得到的数、如:Ⅲ=3; 小的数字在大的数字的右边、所表示的数等于这些数字相加得到的数、 如:Ⅷ=8、Ⅻ=12; 小
2017-07-21 10:23:05
210
原创 11. Container With Most Water
题目: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 endpoints of line i is at (i, ai) and (i, 0). Find tw
2017-07-20 17:39:17
188
原创 Unix环境编程之 进程控制
进程终止:vfork函数vfork用于创建一个新进程,而新进程的目的是exec一个新程序,vfork与fork一样都创建子进程,但是并不将父进程的地址空间完全复制到子进程中去,因为子进程会立即调用exec,于是也就不会存访该地址空间。 相反,它在调用exec之前,它在父进程空间运行。另一个区别是:vfork保证子进程先运行,在它调用exec或exit之后,父进程才可能被调度运行。#include<
2017-07-20 13:56:18
197
原创 Unix环境编程之 进程环境
(1)当执行程序时,main函数是的如何调用的main函数原型是int main(int argc,char *argv[]);argc是命令行参数,argv是指向参数的各个指针的数组。#include"apue.h"int main(){int i;for(i=0;i<argc;i++){ printf("argv[%d]:%s\n",i,argv[i]); exit(0
2017-07-19 23:52:39
257
原创 10. Regular Expression Matching
题目:mplement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire input strin
2017-07-19 17:03:22
195
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人