自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(42)
  • 资源 (2)
  • 收藏
  • 关注

原创 三硬币问题建模及Gibbs采样求解(Python实现)

三硬币问题建模及Gibbs采样求解(Python实现)Gibbs采样原理介绍的文章有很多,但很少有Gibbs求解实际问题的例子。这篇博客通过三硬币问题,介绍如何用Gibbs采样求解实际问题。三硬币问题题目(摘自李航《统计学习方法》):假设有3枚硬币,分别记做A,B,C。这些硬币正面出现的概率分别是π,p和q。进行如下掷硬币实验:先掷硬币A,根据其结果选出硬币B或C,正面选B,反面选硬币C;然...

2019-02-24 16:35:46 2832

原创 使用Faster R-CNN训练自己的数据

主要步骤VOC2007格式数据集制作训练集均值文件计算网络选择faster r-cnn源码修改 运行

2017-02-27 19:03:14 2885 8

原创 faster-rcnn(matlab版)在windows平台上的配置

VS2013+cuda8.0+matlab编译faster-rcnn

2017-02-21 19:18:34 6234 11

原创 centos 挂载 onedirve

文章目录获取授权密钥centos挂载onedrive软件安装rclone配置挂载卸载挂载onedrive需要浏览器登录授权,而centos一般作为服务器使用,额米有界面,需要先在windows上使用rclone获取授权密钥,然后在centos上完成挂载。获取授权密钥下载rclone window版本从rclone download下载对应的win版本rclone下载后解压,并从...

2020-02-19 21:31:09 2149 1

原创 从三硬币到主题模型(LDA,Latent Dirichlet Allocation)

目录从三硬币问题到主题模型(LDA)1+K个多面体问题分析与建模Gibbs采样求解从三硬币问题到主题模型(LDA)三硬币问题建模及Gibbs采样求解(Python实现)一文中详细介绍了三硬币问题的建模和使用Gibbs采样求解的方法。如果把三枚硬币换成一个N面体和N个M面体呢?1+K个多面体问题假设1+N个多面体,第一个多面体记为A,有K个面,每个面由1~K的数字标识,每个面朝上的概率p⃗=...

2019-03-13 10:13:51 598

原创 在MovieLens 1M数据集上使用深度学习进行评分预测

在MovieLens 1M数据集上使用深度学习进行评分预测本文中的代码只是部分代码,完整项目代码下载地址:https://github.com/chuqidecha/movie_recommenderMovieLen 1M数据及简介MovieLens 1M数据集包含包含6000个用户在近4000部电影上的100万条评分,也包括电影元数据信息和用户属性信息。下载地址为:http://file...

2018-12-02 23:07:34 11751 18

原创 使用TensorFlow微调AlexNet

使用TensorFlow微调AlexNet项目地址https://github.com/chuqidecha/fineturn-alexnet-with-tensorflow本文中所有用到的数据可以从这里下载https://pan.baidu.com/s/1-Ijn7E87ZUBcwMmsq2CeYg从caffemode中获取预训练权值TensorFlow中没有预训练好的AlexNet...

2018-11-23 23:17:53 1799 31

原创 seaborn学习笔记

环境: python 3.0+ seaborn 0.9.0+seaborn学习笔记-统计关系可视化之relplotseaborn学习笔记-类别数据可视化之catplotseaborn学习笔记-数据集上的分布可视化seaborn学习笔记-数线性关系可视化seaborn学习笔记-结构化多格网绘图seaborn学习笔记-图形样式调整seaborn学习笔记-颜色设置...

2018-08-25 14:51:12 376 3

原创 [leetcode019] Remove Nth Node From End of List 解题报告

[leetcode019] Remove Nth Node From End of List 解题报告Given a linked list, remove the n-th node from the end of list and return its head.Example:Given linked list: 1->2->3->4->5, and n ...

2018-08-25 14:31:25 176

原创 [leetcode030] Substring with Concatenation of All Words解题报告

[leetcode030] Substring with Concatenation of All Words解题报告You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that...

2018-08-25 14:30:54 193

原创 [leetcode132] Palindrome Partitioning II 解题报告

132. Palindrome Partitioning II代码即解题思路github地址 Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.Eaxmple...

2018-08-10 19:37:36 217

原创 [leetcode131] Palindrome Partitioning 解题报告

131. Palindrome Partitioning代码即解题思路github地址 Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.Eaxmple:...

2018-08-10 19:35:07 271

原创 [leetcode72] Edit Distance 解题报告

72. Edit DistanceGiven two words word1 and word2, find the minimum number of operations required to convert word1 to word2.You have the following 3 operations permitted on a word:Insert a chara...

2018-08-05 15:26:34 257

原创 [leetcode115]Distinct Subsequences解题报告

115. Distinct Subsequences代码即解题思路github地址 Given a string S and a string T, count the number of distinct subsequences of S which equals T. A subsequence of a string is a new string which is form...

2018-08-04 14:35:59 306

原创 Logistic回归(python实战)

# Logistic回归(python实战)标签(空格分隔): 机器学习—[Logistic 回归(理论篇)](https://blog.csdn.net/ChuQiDeCha/article/details/80671928)介绍了Logistic回归的原理及其公式推导,本篇主要通过Python实现Logistic回归。## Logistic回归带L2正则的目标函数...

2018-06-25 21:10:34 945

原创 Logistic回归(理论篇)

Logistic回归Logistic回归是一种经典的统计学分类方法,被广泛应用于生产环境中。本文主要介绍Logistic回归模型的原理以及参数估计、公式推导方法。Sigmoid函数(Logistic函数)Sigmoid函数的数学形式是: f(x)=11+e−xf(x)=11+e−xf(x)=\frac{1}{1+e^{-x}}其函数图像如下: 其图形是一个S型曲线,关于(...

2018-06-12 22:08:59 606

原创 线性回归(scikit-learn 实战)

skit-learn 线性回归实战线性回归API引入包import csvimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.model_selection import train_test_splitfrom sklearn.linear_model import...

2018-06-07 09:40:33 1045

原创 线性回归(python实战)

线性回归(python实战)标签(空格分隔): 机器学习线性回归目标函数线性回归(理论篇)中推导了线性回归的目标函数为: J(θ)=∑N(θx−y)2J(θ)=∑N(θx−y)2 J(\theta) = \sum^N(\theta x - y )^2梯度下降法求解参数梯度下降法迭代公式为: θ:=θ−α∑N(∑m(xiθi−yi)xi)θ:=θ−α∑N(∑m(x...

2018-06-06 22:36:48 928

原创 最大熵模型(三)

最大熵模型-极大似然估计最大熵模型(一)讲诉了最大熵原理以及最大熵模型定义,最大熵模型(二)讲诉了最大熵模型的学习及其公式推导,本篇讲诉最大熵模型的极大似然估计。最大熵模型Pw(y|x)=1Zwexp(∑i=1nwifi(x,y)))Pw(y|x)=1Zwexp(∑i=1nwifi(x,y)))P_{w}(y|x) =\frac{1}{Z_{w}}exp(\sum_{i=1}^{n}w...

2018-05-29 09:19:39 301

原创 最大熵模型(二)

最大熵模型 - 最大熵模型的学习对于给定的训练数据集T={(x1,y1),(x2,y2),⋅⋅⋅,(xN,yN)}T={(x1,y1),(x2,y2),⋅⋅⋅,(xN,yN)}T=\{(x_{1},y_{1}),(x_{2},y_{2}),\cdot\cdot\cdot,(x_{N},y_{N})\}以及特征函数fi(x,y)fi(x,y){f_{i}(x,y)},最大熵模型的学习等价于约束最...

2018-05-27 16:45:18 263

原创 最大熵模型(一)

最大熵模型(一)基本概率熵熵是表示随机变量的不确定性的度量。熵越大,随机变量的不确定性越大。假设离散变量XXX的概率分布式P(X)P(X)P(X),熵的定义为: H(p)=−∑i=1NpilogpiH(p)=−∑i=1NpilogpiH(p)=-\sum_{i=1}^{N}p_{i}logp_{i} 因∑i=1Npi=1∑i=1Npi=1\sum_{i=1}^{N} p_{i} =...

2018-05-27 14:51:30 494

原创 线性回归(理论篇)

线性回归(理论篇)线性模型线性模型(Linear Model)是机器学习中应用最广泛的模型,指通过样本特征的线性组合来进行预测的模型。给定一个n维样本x=[x1,x2,⋅⋅⋅,xn]Tx=[x1,x2,···,xn]T\textbf{x} =[x_{1},x_{2},···,x_{n}]^{T},其线性组合函数为: hθ(x)=θ1x1+θ2x2+⋅⋅⋅+θnxn+b=(θ;b)T(x;...

2018-05-23 22:42:40 389

原创 mysql5.7.18在win10下的安装

mysql5.7.18在win10下的安装和密码设置

2017-07-06 21:10:24 3522

原创 caffe在windows平台上的编译

接触caffe已经一年有余,一直在Ubuntu下使用。但Ubuntu对N卡驱动支持性不太好。安装Ubuntu系统时最好不要联网,系统安装好之后也y一定不能更新。否则容易出现无限登陆,导致无法进入系统。最近电脑自动更新,导致无法启动。Google各种解决方案都没用,无奈只能尝试windows下安装,好在现在windows下的安装教程比刚接触caffe那会儿多很多,编译起来也容易了许多。在此,推荐一个c

2017-02-21 17:10:27 1865

原创 Linux多线程同步之条件变量

Linux多线程同步之条件变量1. 简介条件变量是多线程的一种同步机制。多线程之间如果存在某种条件,当条件满足时其他线程才能够运行,此时可以使用条件变量。当条件不满足时,线程在该条件上阻塞,直到某个线程改变条件变量,并唤醒在该条件变量上阻塞的一个或多个线程。2. 相关函数2.1 初始化与释放使用条件变量之前,必须先对其进行初始化。由pthread_cond_t数据类型表示的条件变量有两种初始化方式:

2017-01-04 21:02:12 671

原创 [C++]重载二维数组下标 [ ][ ]实现二维矩阵

[C++]重载二维数组下标 [ ][ ]实现二维矩阵1. 背景实际项目中,经常需要用到动态分配二维数据。因此经常需要手写循环,来分配和初始化数组。如://首先分配一个指针数组int** array = new int*[m];//然后给指针数组中的指针分配内存for (int i=0;i<m;i++){ for (int j=0;j<n;j++) { arra

2016-08-22 17:21:04 4170

原创 QGIS在windows下的编译

1 工具OSGeo4W、Cmake 、GNU bison 与 GNU flex 2 配置开发环境2.1 VS2010安装……2.2 Qt与插件安装Qt版本4.8.5,插件版本1.1.11。 下载地址: http://download.qt.io/official_releases/vsaddin/2.3 OSGeo4W安装及所需库下载编译32位的QGIS时,下载安装32位的OSGeo4W;编译64

2016-06-16 17:06:26 2509 1

原创 [leetcode121] Best Time to Buy and Sell Stock解题报告

Best Time to Buy and Sell Stock

2016-05-24 19:53:13 458

原创 [leetcode300] Longest Increasing Subsequence 解题报告

Longest Increasing SubsequenceProblem

2016-05-18 16:55:01 347

原创 [leetcode 142]Linked List Cycle II解题报告

Linked List Cycle II

2016-05-17 19:44:46 481

原创 [leetcode 141] Linked List Cycle 解题报告

Linked List CycleProblem

2016-05-17 17:35:31 383

原创 [leetcode 063]Unique Paths II 解题报告

63. Unique Paths II

2016-05-02 11:11:27 366

原创 [leetcode 062]Unique Paths 解题报告

62. Unique PathsProblem

2016-05-02 10:26:27 488

原创 [leetcode 171] Excel Sheet Column Number 解题报告

171. Excel Sheet Column NumberProblem

2016-04-27 19:00:24 558

原创 如何判断一个正整数是否是4的幂?

4的幂具有的性质

2016-04-26 22:48:07 2536

原创 [leetcode 154] Find Minimum in Rotated Sorted Array II 解题报告

Find Minimum in Rotated Sorted Array II

2016-04-25 17:14:07 381

原创 [leetcode 025] Reverse Nodes in k-Group 解题报告

Reverse Nodes in k-Group Problem Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.

2016-04-23 21:12:39 325

原创 [leetcode024] Swap Nodes in Pairs 解题报告

Swap Nodes in PairsProblem Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3.

2016-04-23 20:54:25 312

原创 [leetcode 153] Find Minimum in Rotated Sorted Array 解题报告

Find Minimum in Rotated Sorted ArrayProblem

2016-04-19 19:50:48 414

原创 计算某个日期起N天后的日期(C语言递归实现)

假设起始日期是当月1日 1. N小于当月天数,则年份月份 不变,天数直接加上N,程序结束。 2. 若N大于等于当月天数,且当前月份为12月,年份加1,月份重置为1,否则,年份不变,月份加1。 3. 以更新后的日期和剩余的天数为输入,重复步骤1,2.

2016-04-18 22:02:35 6812

OpenCV_1.0

OpenCV_1.0 很早的版本,适合VC6.0

2013-02-25

[程序员实用算法].Andrew.Binstock.等著.扫描版

[程序员实用算法].Andrew.Binstock.等著.扫描版 包括很多数据结构算法及其数据压缩等算法

2013-02-25

空空如也

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

TA关注的人

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