自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(47)
  • 收藏
  • 关注

转载 计算机视觉、机器学习、模式识别、图像处理领域国内外期刊、会议汇总

一、重要国际期刊IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI) (IEEE模式分析与机器智能汇刊) http://ieeexplore.ieee.org/xpl/RecentIssue.jsp?punumber=34IEEE Transactions on ImageProcessing(IP

2017-06-27 11:08:00 1053

转载 GAN的简单应用

GAN学习指南:从原理入门到制作生成Demo,总共分几步? https://www.leiphone.com/news/201701/yZvIqK8VbxoYejLl.html?viewType=weixin

2017-07-07 11:09:47 565

转载 机器学习: batch normalization

参考文章: 1,说明http://blog.csdn.net/elaine_bao/article/details/50890491 2,代码http://blog.csdn.net/elaine_bao/article/details/50923198 3,原文paper:https://arxiv.org/pdf/1502.03167.pdf

2017-07-07 10:49:43 336

原创 C++ 希尔排序

ShellSort.h文件#ifndef SHELLSORT_H#define SHELLSORT_H#include <vector>#include <iostream>using std::vector;using std::cout;using std::endl;template <typename T>class ShellSort{private: unsig

2017-06-30 11:12:43 324

原创 直接插入排序 C++

//直接插入排序#include <iostream>using namespace std;void insertSort(int arr[], int length){ int i,j,key; for(i=0;i<length;i++){ key = arr[i]; for(j=i-1;j>=0;j--){ if(ke

2017-06-28 18:24:49 295

原创 简单选择排序 C++

//简单选择排序#include <iostream>using namespace std;void selectSort(int r[], int n){ int i,min,j,temp; //第i遍扫描 for(i=1;i<n;i++){ min=i; for(j=i+1;j<n;j++) { i

2017-06-28 13:28:01 450

原创 C++ 冒泡排序

#include <iostream>using namespace std;void my_print(int* pData,int count){ for(int i=0;i<count;i++){ cout<<pData[i]<<" "; } cout<<endl;}void BubbleSort(int* pData,int count){

2017-06-27 17:39:23 303

原创 评价指标

机器学习常用的评价指标

2017-06-24 14:53:16 579

原创 最小生成树 prim算法

一、prim算法核心问题:用最小的成本连接图中所有的顶点 参考文献: 1、《大话数据结构》 2、http://blog.csdn.net/yeruby/article/details/38615045#//prim算法#include <iostream>#include <fstream>using namespace std;#define MAX 100#define MAXC

2017-06-22 21:10:46 431

原创 机器学习: 激活函数的认识

一、必要性激活函数的主要作用是提供网络的非线性建模能力。如果没有激活函数,那么该网络仅能够表达线性映射,此时即便有再多的隐藏层,其整个网络跟单层神经网络也是等价的。因此也可以认为,只有加入了激活函数之后,深度神经网络才具备了分层的非线性映射学习能力。二、种类sigmoid函数 特别注意sigmoid函数的导数求法: σ′(x)=σ(x)∗(1−σ(x))\sigma^{'}(x)=\sig

2017-06-16 20:55:20 785

原创 机器学习:python Virtual environment 流程

具体描述来自 斯坦福大学cs213n课程cd assignment1sudo pip install virtualenv # This may already be installedvirtualenv -p python3 .env # Create a virtual environment (python3)# Note: you can also use "v

2017-06-13 15:00:42 694

原创 计算机视觉资料

斯坦福大学 cs231n课件以及作业http://vision.stanford.edu/teaching/cs231n/syllabus.html

2017-06-11 21:42:10 297

原创 机器学习:从二项logistic distribution 到 softmax loss function

一、binomial logistic distribution xx是输入的特征向量值,ww是权值,w∗xw*x是向量的内积,Y∈{0,1}Y \in \{0,1\}是输出,利用上式求出两个概率值,将xx划分为值大的那一类。对数几率(log odds) 一个事件的几率(odds)是指该事件发生的概率pp 与不发生的概率(1−p1-p)比值,即p1−p\frac{p}{1-p}。那么对数几率为

2017-06-10 21:20:28 591

原创 一元线性回归,多元线性回归,MATLAB

一元线性回归clear;clc;%一元线性回归x=[143,145,146,147,149,150,153,154,155,156,157,158,159,160,162,164];y=[88,85,88,91,92,93,93,95,96,98,97,96,98,99,100,102];X=[ones(length(y),1),x'];Y=y';%b 参数%bint 参数对于的置信区

2017-06-09 20:43:44 4471

原创 机器学习知识总结:代价函数与经验风险、结构风险最小化

一、代价函数代价函数(cost function)用来度量预测错误,损失函数越小模型越好,常见的有4种:0-1损失函数: 平方损失函数: 绝对损失函数: 对数损失函数: 二、经验风险最小化与结构风险最小化经验风险最小化(empirical risk minimization,EMR) 当样本容量很大的时候,经验风险最小化的策略认为,经验风险最小的模型是最优的模型: 当样本容量很小的时候,

2017-06-04 20:56:11 794

原创 Leetcode:Roman to Integer

/* * Given a roman numeral, convert it to an integer. * Input is guaranteed to be within the range from 1 to 3999. */#include <iostream>using namespace std;class Solution { public: int roma

2017-06-03 15:15:47 255

翻译 电脑数据存放

1、ROM芯片它是BIOS(基本输入输出系统),固化于计算机内主板上,保存着计算机最重要的基本输入输出的程序、开机后自检程序和系统自启动程序,它可从CMOS中读写系统设置的具体信息。 其主要功能是为计算机提供最底层的、最直接的硬件设置和控制,平时靠纽扣电池供电维持CMOS数据记忆,没电或损坏时恢复到出厂设置;2、内存条(RAM)是CPU可通过总线寻址,并进行读写操作的电脑部件,写入的数据将在断电后彻

2017-05-27 20:59:26 1443

原创 leetcode:Maximum Subarray

#include <iostream>#include <algorithm>#include <vector>using namespace std;class Solution{public: int maxSubArray(vector<int>& nums){ //int n = nums.size(); if(nums.empty()||!n

2017-05-23 00:21:55 417

原创 Leetcode:Climbing Stairs

#include <iostream>#include <vector>using namespace std;class Solution1{public: int climbStairs(int n){ if(n<=2) { return n; } else {

2017-05-22 22:31:47 286

原创 leetcode: Search Insert Position

//https://leetcode.com/problems/search-insert-position/#/description#include <iostream>#include <vector>using namespace std;class Solution {public: int searchInsert(vector<int>& nums, int targ

2017-05-18 23:22:22 272

原创 leetcode:Populating Next Right Pointers in Each Node

#include<iostream>#include<vector>#include<stack>using namespace std;// Test Unit//// 1// / \// 2 3// /\ /\// 4 5 6 7// /\ /\ /\ /\// 8 9A BC

2017-05-16 22:59:22 257

原创 leetcode:Binary Tree Level Order Traversal 二叉树层序遍历

/** *这是典型的宽度优先算法,利用队列来实现 * **/#include <iostream>#include <vector>#include <queue>using namespace std;struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x)

2017-05-16 22:58:33 214

原创 leetcode:Binary Tree Preorder Traversal 先序遍历

/** * Given a binary tree, return the preorder traversal of its nodes' values. * Note: Recursive solution is trivial, could you do it iteratively?*//// Test Unit/* * 1 * / \ *

2017-05-15 23:58:58 268

原创 LeetCode: Binary Tree Inorder Traversal

/** * Given a binary tree, return the inorder traversal of its nodes' values. * For example: * Given binary tree [1,null,2,3], * return [1,3,2]*//// Test Unit/// {1,2,3,#,#,4,#,#,5}/* *

2017-05-13 13:53:17 255

原创 LeetCode: Linked List Cycle

/** *Given a linked list, determine if it has a cycle in it. *Follow up: *Can you solve it without using extra space?*///Unit Test//// |1|-|-->|2|-|-->|3|||// /|\ |// |

2017-05-12 12:04:55 223

原创 LeetCode:Unique Binary Search Trees(二叉查找树)

一、BST特点若任意节点的左子树不空,则左子树上所有结点的值均小于或等于它的根结点的值;任意节点的右子树不空,则右子树上所有结点的值均大于它的根结点的值;任意节点的左、右子树也分别为二叉查找树。二、题目Given n, how many structurally unique BST’s (binary search trees) that store values 1…n? For ex

2017-05-11 16:07:29 293

原创 卡特兰数

一,定义卡塔兰数是组合数学中一个常在各种计数问题中出现的数列。以比利时的数学家欧仁·查理·卡塔兰 (1814–1894)命名。 卡塔兰数的一般项公式为: 其中: 前几项为 (OEIS中的数列A000108): 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786, 208012, 742900, 2674440, 9694845, 3

2017-05-11 14:31:59 307

原创 leetcode Best_Time_to Buy and Sell_Stock_II

/** * 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 complete as many transactions as you like *(

2017-05-10 23:12:30 235

原创 leetcode Reverse Integer

/** * Reverse digits of an integer. * Example1: x = 123, return 321 * Example2: x = -123, return -321 * click to show spoilers. * Note: * The input is assumed to be a 32-bit signed integer. *Your f

2017-05-10 23:05:15 271

原创 Linux 使用C++11 的命令

$ g++ -std=c++11 -o test test.cpp

2017-05-10 23:04:00 430

原创 leetcode: sametree

#include <iostream>using namespace std;// Test Unit// Create a tree for test// 1// / \// 2 3// / \ \// 4 5 6// / \// 7 8//

2017-05-09 23:53:22 247

原创 leetcode: Maximum Depth of Binary Tree

#include <iostream>using namespace std;// Test Unit// Create a tree for test// 1// / \// 2 3// / \ \// 4 5 6// / \// 7 8// /

2017-05-09 23:52:29 184

原创 leetcode 002 Add_Two_Numbers

/*** You are given two non-empty linked lists representing two non-negative integers. * The digits are stored in reverse order and each of their nodes contain a single digit. * Add the two numbers a

2017-05-08 23:46:19 257

转载 DRAM 内存原理

一、RAM介绍ROM(Read Only Memory)只读存储器。断电后信息不丢失,如计算机启动用的BIOS芯片。存取速度很低,(较RAM而言)且不能改写。由于不能改写信息,不能升级,现已很少使用。RAM(Ramdom Access Memory)易挥发性随机存取存储器,高速存取,读写时间相等,且与地址无关,如计算机内存等。 RAM分为SRAM(静态随机存储器)和DRAM(动态随机存储器)两大

2017-04-30 13:44:30 2646

原创 Linux Vim 的实用操作

vim的实用操作按Esc进入命令模式,按i进入插入模式一,删除多行进入命令模式,按小写的v选择要编辑的内容,按dd删除内容二,复制多行进入命令模式,按小写的v选择要编辑的内容,先按yy进行复制,然后按p进行粘贴三,看行号:set nu四,在文件中再建一个文件:sp example.cpp两个文件之间切换:ctrl+w+上箭头(下箭头)保存所有并推出::wqa

2017-04-06 22:01:38 382

原创 Linux 常用命令总结(一)

一,下载软件下载软件前,先更新库:sudo apt-get update 然后再下载各种软件,比如下载Vim:sudo apt-get install vim二,小工具查看当前路径:$ pwd查看文件目录:$ ls查看文件目录以及创建时间:$ ls -l查看隐藏文件:$ ls -l -a 图片中,rwx表示可读可写可执行。查看指定的文件是否存在,加入管道“|”以及小工具grep:$ ls /et

2017-04-06 21:34:58 266

原创 ubuntu 14.04 opencv 3 编译第一个程序

新建一个工程文件夹,并在网上下载一张lena.jpg到该文件夹:mkdir opencv_testcd opencv_testvim test.cppcopy如下代码:#include<opencv2/opencv.hpp>using namespace cv; //包含cv命名空间int main(){ Mat srImage; //声明Mat变量 srIm

2017-04-02 17:14:19 316

原创 Python爬虫之简书

这篇爬虫和糗事百科是一样的方法,要注意的有两点: 1,正则表达式要更具网页的实时信息进行查看,打开F12查看源代码即可,并不难。 2,当时在检查的时候直接print content出现了符号码,改成for循环之后得出了正确的结果。# -*- coding:utf-8 -*-import urllibimport urllib2import re# 简书爬虫类class JianShu:

2017-03-18 16:29:37 927

原创 Linux scp 远程上传下载文件和文件夹

单个文件1、从服务器下载文件 将服务器上路径为/home/xiaoming/的myfile.txt文件下载到本地/home/xiaoming/路径下。scp xiaoming@10.20.0.xxx:/home/xiaoming/myfile.txt /home/xiaoming/2 上传文件到服务器scp /home/xiaoming/myfile.txt xiaoming@10.20.0.

2017-03-18 11:57:50 500

原创 Python 爬虫 糗事百科 (改)

出问题主要是正则表达式的修改# -*- coding:utf-8 -*-import urllibimport urllib2import reimport threadimport time#糗事百科爬虫类class QSBK: #初始化方法,定义一些变量 def __init__(self): self.pageIndex=1 self.user_age

2017-03-16 19:42:11 230

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除