自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 NLP相关论文综述

参考:A. https://blog.csdn.net/huanghaocs/article/details/811609491. An Introduction to Conditional Random Fields本篇论文详细介绍了条件随机场(Conditional Random Fields,CRF)模型,了解CRF模型必读论文,包括有四个部分: 第一部分介绍了CRF模型的基础知识...

2018-11-26 17:00:50 2614

翻译 Neo4j图模型算法

1. 占个坑

2018-11-22 22:27:44 1100 1

原创 关于Backpropagation在DeepLearning的一点思考

#Backpropagation介绍深度学习中,常见的CNN、RNN神经网络中,参数估计通常在经过样本批处理时,使用SGD算法更新权重W和偏置b。SGD会根据样本Loss将误差后向传播,根据chain rule链式法则计算每一层的误差,从而计算总误差关于W、b的导数,从而更新W或者b。#几个定义-神经元:这里考虑误差传播时,通常意义下的隐藏层、输出层、输入层点-神经元输入:u =

2017-08-13 17:56:08 567

原创 angularjs跨域请求

跨域        浏览器的同源策略限制了一个源(origin)中加载文本或脚本与来自其它源(origin)中资源的交互方式。如果两个页面的协议(protocol)、端口(如果指定)、和主机任一不相同,则他们就不是同源的,在他们之间进行请求则认为是跨域。如何解决     跨域的解决方案主要有JSONP、改变domain、CORS等等,因为项目适用于使用CORS,这里只讨论CORS。

2017-07-28 23:50:48 680

原创 Marching squares (triangle)

2*2网格划分为三角网def get_triangle_bit(v1, v2, v3): return v1 << 2 | v2 << 1 | v3def get_triangle_shift(bitval): if bitval == 0 or bitval == 7: return (0,None,None,None,None) if bitval == 1 or bitva

2017-07-12 18:48:04 845

原创 Marching squares

描述Marching squares是计算机图形学中一个用于矩阵网格点数据生成等值面的一个算法。       其主要思想是将每个2*2网格,其中4个顶点网格点根据等值线阈值处理为0,1标量。    1 代表数值大于阈值0 代表数值小于阈值这样处理之后有16中情况,2*2网格点根据左上角顺时针编号。对于对角线这种情形,依据对角线大于两边处理。

2017-07-11 20:47:28 5951

原创 maven常用命令

1.   编译项目并发布到本地仓库mvn clean install2. 项目发布到私服mvn clean deploy2.  将项目依赖项拷贝到目录target/libmvn dependency:copy-dependencies -DoutputDirectory=target/lib3. 将jar包放在本地仓库mvn install:install-file -

2017-06-20 21:27:16 231

原创 ftp 相关

ftpserver      1. apache ftpserver ,参考官网:http://mina.apache.org/ftpserver-project/running_ftpserver_standalone.htmlftpclient     1. apache commons-net,参考官网:http://commons.apache.org/proper/com

2017-05-26 21:43:26 254

原创 netcdf流场展示

海洋数值预报里面,数据格式一般都为nc文件格式,存储的为科学数据,这些数据都是网格化的数据。由于有些网格点是陆地,如果用图片方式去展示流场的化,合理的方式是将这些陆地剔除。由于一些客户端软件可以做到,这里不考虑。这里提供两个软件可供参考。一个是jzy3d , 里面使用ContourPictureGenerator可生成想要的等值面,返回的为BufferedImage,当然流场方向还需自

2017-05-25 22:43:50 2804 3

转载 Java API 对图像的支持

The Java 2D™ API 支持3种成像模型由先前版本的JDK软件提供的生产者/消费者(推)模型。由Java™ 2 SDK版本引入的快速方式模型。与快速方式模型兼容,并且将在即将到来的Java Advanced Imaging API中全面实现的管道(拉)模型。下面的表格列举了这些成像模型的特征之间的对比。

2017-05-25 22:25:51 368

原创 svm

Tricks         1. 对于二分问题,假设存在线性超平面将样本区分          2.在此情况下,合理的可要求在几何间距最大         3.此时问题转化为QP问题,有现成的解法,但还有更高效的,于是乎通过拉格朗日对偶和KKT条件得到对偶问题此处省略一坨证明和推导。          4. 同样对于特征太多的情况,还是很费时间,于

2017-05-22 20:45:19 289

原创 c与java数据传输

说明当需要java调用c代码时,如果不想用jni技术,可考虑将数据存储为文本格式。但考虑到c处理字符串过于繁琐,比如就没有类似的split函数方法。同时你需要处理的东西统统都是数值类型的时候,不妨将数据都转化为二进制的格式。或许更进一步转化为json格式.代码这里是定义了一个数据结构,用于处理数据//c代码struct LonglyRiceInput{ doubl

2017-05-12 20:47:26 861

原创 MCM(平均曲率演化)

import matplotlib.pyplot as pltimport numpy as npfrom PIL import Imagedef np_from_img(fname): img = Image.open(fname) print img.format, img.size, img.mode img = img = img.convert('I') #pri

2017-05-09 00:02:13 1116

原创 convolve and fft

mark1. 时域卷积等同于频域乘积2. gauss blur卷积等同于热传导方程偏微分方程演化过程import numpy as npdef fft_convolve(a,b): n = len(a)+len(b)-1 N = 2**(int(np.log2(n))+1) A = np.fft.fft(a, N) B = np.fft.fft(

2017-05-04 21:08:18 1026

原创 python pde adi(抛物型差分(二维—ADI格式))

#coding:utf-8from mpl_toolkits.mplot3d import axes3dimport matplotlib.pyplot as pltimport numpy as npimport timedef createMatrix( m, n): A = np.zeros( (n + 2,m + 2)) Up = np.ones( (m+2,1)) * 1

2017-05-02 23:30:58 3149

原创 hmm(二)

参数估计根据观察到的序列集来找到一个最有可能的 HMM代码#coding:utf-8class Hmm: def __init__(self, description=None): self.description = description @property def hidden_states(self): return self._hidde

2017-04-18 19:51:03 560

原创 ML_4_Classification

4    Classification    4.1    QDA and LDA    4.2    Logistic regression    4.3    Bayesian Logistic regression

2017-04-17 21:58:11 291 1

原创 hmm

介绍代码#coding:utf-8class Hmm: def __init__(self, description=None): self.description = description @property def hidden_states(self): return self._hidden_states @hidden_states.sett

2017-04-16 22:43:14 399

原创 ML_3_Linear_regression

Linear regression3.1    Introduction3.2    Robust linear regression3.3    Shrinkage Methods3.3.1    Ridge Regression3.3.2    Lasso Regression(Sparse)3.3.3    Orthogonal Mat

2017-04-12 22:01:51 223

原创 ML_2_Bayesian_Perspective

Bayesian Perspective2.1    Introduction2.2    Simple Example2.3    The beta-binomial model2.4    The Dirichlet-multinomial model2.5    Naive Bayes classifiers2.6    Hierarchical

2017-04-12 21:46:03 241

原创 ML_1_Probability

Probability1.1 probability theory1.2 common distributions1.2.1 discrete distributions1.2.2 continuous distributions

2017-04-12 21:25:21 189

原创 ML_abstract

主要是最近所看文章摘取,细节不再累赘1    Probability    3    1.1    probability theory    3    1.2    common distributions    5    1.2.1    discrete distributions    6    1.2.2    continuous distributions  

2017-04-12 21:02:50 237

原创 id3 decision tree

#coding:utf-8from math import logfrom collections import Counterimport copyimport collections#原始数据data='''sunny hot high false N sunny hot

2017-04-10 18:36:41 283

原创 JSoup 用于Html分析

1. Jsoup概念    jsoup 是一款Java 的HTML解析器,可直接解析某个URL地址、HTML文本内容。它提供了一套非常省力的API,可通过DOM,CSS以及类似于jQuery的操作方法来取出和操作数据。2.应用场景  适用于数据抓取解析工作,尤其是类似于Jquery选择器可以快速定位要获取的数据片段。3.例子   如下,实现一个解析一周天气的数据,数

2017-03-23 22:36:18 333

原创 抛物型差分(二维-1)

// ImpMx.mfunction ImpMx = getImpMx()clear;clc; M = 4;N = 3;Up = zeros(1,M);Down = Up;Lf = zeros(1,N);Rt = Lf;rx = 0.1;ry = 0.3;r = rx + ry;ImpMatrix = diag( ones(1, M * N)) * ( 1 + 2 * r

2017-03-10 20:06:29 1520

转载 Oracle中的SID与SERVICE_NAME连接的区别

原文链接格式一: Oracle JDBC Thin using a ServiceName: jdbc:oracle:thin:@//:/ Example: jdbc:oracle:thin:@//192.168.2.1:1521/XE 注意这里的格式,@后面有//, 以及端口号后的/,不是:(经测试:会报错)。这是与使用SID的主要区别。 这种格式是Oracle 推荐的格

2017-03-07 15:38:06 2616

原创 三维展现一种实现

1.前言         用过matlab,scilab,octave,python的人,对三维曲面都有一定的了解,里面有一套针对曲面绘制的函数方法,诸如mesh、surface、contour以及网格插值函数interp、griddata等等。现在普遍的java web开发都有或多或少的图形展示界面,前端方面展示的一般都是基于图表形式的控件,有echart 、highchart等,但这些

2017-02-23 21:55:22 1906

转载 概率分布

举个例子,一个表示抛硬币结果的随机变量可以表示成 X = {1 如果正面朝上,     2 如果反面朝上}         随机变量是一个变量,它取值于一组可能的值(离散或连续的),并服从某种随机性。随机变量的每个可能取值的都与一个概率相关联。随机变量的所有可能取值和与之相关联的概率就被称为概率分布(probability distrib

2016-12-23 22:39:47 410

原创 DeepLearning概论

最近看了下很火的深度学习,通俗一点,传统的机器学习过程是:抽取特征-->分类或者预测。                          整个特征提取是人为 的,特征提取器需要精细构造倘若要获取较高的精确度。         深度学习的流程就是:抽取特征-->分类或者预测--->抽取特征-->分类或者预测---->抽取特征-->分类或者预测 .........看你分几层了。     

2016-10-14 17:27:47 225

原创 两点之间方向

public static double calculateDirection(double x, double y) { if (x == 0) { if (y > 0) { return Math.PI / 2; } return Math.PI * 3 / 2; } if (x > 0 && y >= 0) { return Math.atan

2016-04-28 17:59:26 859

原创 Simulated Annealing

CITY_SIZE = 52;CITIES = [565,575,25,185,345,750,945,685,845,655,880,660,25,230,525,1000,580,1175,650,1130,1605,620,1220,580 , 1465,200 , 1530,5 , 845,680 , 725,370 , 145,665 ,415,635 , 510,875 , 56

2016-02-25 22:54:53 469

原创 tabu_search

Tabu Search is a Global Optimization algorithm and a Metaheuristic or Meta-strategy for controlling an embedded heuristic technique. Tabu Search is a parent for a large family of derivative approaches

2016-02-25 17:44:42 731

转载 UML常用图的几种关系的总结

//////http://blog.csdn.net/suxinpingtao51/article/details/8011335在UML的类图中,常见的有以下几种关系: 泛化(Generalization),  实现(Realization), 关联(Association), 聚合(Aggregation), 组合(Composition), 依赖(Dependency)

2016-02-24 11:15:37 376

原创 project euler 121

Disc game prize fundA bag contains one red disc and one blue disc. In a game of chance a player takes a disc at random and its colour is noted. After each turn the disc is returned to the bag, an

2016-01-05 21:29:38 442

原创 project euler 120

Square remaindersLet r be the remainder when (a?1)n + (a+1)n is divided by a2.For example, if a = 7 and n = 3, then r = 42: 63 + 83 = 728 ≡ 42 mod 49. And as n varies, so too will r, but f

2016-01-05 21:28:56 274

原创 project euler 119

Digit power sumThe number 512 is interesting because it is equal to the sum of its digits raised to some power: 5 + 1 + 2 = 8, and 83 = 512. Another example of a number with this property is 614

2016-01-05 21:28:01 399

原创 project euler 118

Pandigital prime setsUsing all of the digits 1 through 9 and concatenating them freely to form decimal integers, different sets can be formed. Interestingly with the set {2,5,47,89,631}, all of th

2016-01-05 21:27:08 817

原创 project euler 117

Red, green, and blue tilesUsing a combination of black square tiles and oblong tiles chosen from: red tiles measuring two units, green tiles measuring three units, and blue tiles measuring four un

2016-01-05 21:26:03 260

原创 project euler 113

Non-bouncy numbersWorking from left-to-right if no digit is exceeded by the digit to its left it is called an increasing number; for example, 134468.Similarly if no digit is exceeded by the di

2016-01-01 00:05:08 703

原创 project euler 112

Bouncy numbersWorking from left-to-right if no digit is exceeded by the digit to its left it is called an increasing number; for example, 134468.Similarly if no digit is exceeded by the digit

2016-01-01 00:03:05 1085

空空如也

空空如也

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

TA关注的人

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