- 博客(240)
- 资源 (9)
- 收藏
- 关注
原创 多视图聚类(multi-view clustering)简介
由于自我表示学习算法在创建图(graph construction)与谱嵌入(spectral embedding)过程中有着O(n^3)甚至更高的复杂度,其难于在大尺度的数据上进行应用。即不同的视图对应着不同的基本矩阵,导致产生的子空间存在着内部不一致性。此时,人们就引入了矩阵分解的方法,将输入分解为基本矩阵和低秩的系数矩阵,同时与子空间方法进行融合。其次,k个被选中的锚点被多个视图共有可以保证融合的子空间的一致性,形成多个视图间的信息互补。首先,如果我们需要k个锚点,算法的时间复杂度就由O(n。
2023-08-24 09:12:43
4408
原创 Python3 分割二进制文件为小文件
Python作为脚本语言可以十分方便地编辑文件包括二进制文件。本文介绍了一种将大的二进制文件分割为多个小文件的案例代码。#Python3 分割二进制文件为小文件。
2023-08-23 15:54:23
505
原创 解决mybatis 报错java.lang.UnsupportedOperationException
那么此时, 而不是 。主要是mapper.xml里中的select语句对应的 resultType应该为对应的实体类.比如,从java对象的角度来看,返回对象应为List 类型。
2022-10-15 01:13:53
657
原创 [flask]基础知识
Flask 基础知识基本框架结构from flask import Flaskfrom sqlalchemy import create_enginefrom sqlalchemy.orm import sessionmakerfrom database_setup import Base, Restaurant, MenuItemapp = Flask(__name__)engine = create_engine('sqlite:///restaurantmenu.db')Base.
2022-05-01 23:04:48
293
原创 [leetcode] Maximum Split of Positive Even Integers
Maximum Split of Positive Even IntegersYou are given an integerfinalSum. Split it into a sum of amaximumnumber ofuniquepositive even integers.For example, givenfinalSum = 12, the following splits arevalid(unique positive even integers sum...
2022-05-01 08:18:28
435
原创 web server using HTTPServer
build a web serverprotocolsTCP (transimission control protocol): 服务端将信息分成packages,通过网络与客户端进行传播。当一个包丢失后,服务端可以重新发送。UDP: User Datagram Protocol更适用于传输流媒体的信息(audio & video)DNS: domain name service. 用户输入www.baidu.com后,dns帮助转化网址为对应的ip地址。httpget 和 post
2022-04-30 23:58:27
1236
原创 echarts 图表上数值显示
lineCharts.setOption({ tooltip: { trigger: "axis", formatter: function(data) { var res = []; data.forEach(element => { element.value = (element.value * 1.0).toFixed(2); .
2021-12-14 14:00:26
2047
原创 echarts 曲线重复颜色的解决办法
echarts 曲线重复颜色的解决办法echarts 曲线重复颜色的解决办法echarts 曲线重复颜色的解决办法generateColor() { let color = ""; let r = Math.floor(Math.random() * 256); let g = Math.floor(Math.random() * 256); let b = Math.floor(Math.random() * 256); color = `r
2021-11-18 13:19:50
2270
原创 C 语言实现的哈夫曼编码huffman coding
C 语言实现的哈夫曼编码huffman coding项目地址项目地址https://github.com/ludlows/chuffman编码操作需要给个文本作为输入,输出 密码本 和 二进制编码解码操作需要密码本和二进制编码, 输出 解码后的文本。...
2019-04-23 07:47:08
1135
原创 chain matrix product
# given matrix A1, A2, ..., An# the sizes of them are m0*m1, m1*m2, ..., m(n-1) * mn# in general, a matrix with size m*n multipling a matrix with size of n*p will need mnp operations.# let cost(i,
2017-10-21 21:49:16
701
原创 sequence alignment
# this problem is also called 'edit distance'# consider sequence X = (x1,x2,..,xm) and Y=(y1,y2, ..., yn);# an alignment is a subset A belongs to {1,...,m} * {1, .., n}# for any (i,j) and (i',j'
2017-10-20 06:01:48
1722
原创 [c] windows下编译boost 1.55.0
首先下载boost源码:https://dl.bintray.com/boostorg/release/将压缩文件解压, 解压后文件夹路径为Acd A/boost_1_55_0mkdir build.setupcd tools\buildboostrap.bat mingwb2 install --prefix="A\build.setup\"将"A\build.set
2017-10-14 09:16:34
720
原创 [matlab]install Image Acquisition Toolbox Adaptors 利用matlab获取摄像头图像
1. Enter command: imaqhwinfoif you don't have the adaptors, the following sentence will be printed:No Image Acquisition adaptors found. Image acquisition adaptors may be available as downloada
2017-10-04 02:39:35
5491
原创 [leetcode][25]Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.k is a positive integer and is less than or equal to the length of the linked list. If the number of
2017-09-25 00:12:35
343
原创 [java]Tetranacci
This is a tetranacci algorithm in JAVA version.It compares two algorithms.import java.io.PrintWriter;public class Assignment1 { long tetranacci1(int index){ // index start f
2017-09-23 04:10:15
463
转载 双一流高校名单
附件1 “双一流”建设高校名单(按学校代码排序) 一、一流大学建设高校42所1. A类36所北京大学、中国人民大学、清华大学、北京航空航天大学、北京理工大学、中国农业大学、北京师范大学、中央民族大学、南开大学、天津大学、大连理工大学、吉林大学、哈尔滨工业大学、复旦大学、同济大学、上海交通大学、华东师范大学、南京大学、东南大学、浙江大学、中国科学技术大学、厦门大学、山东大
2017-09-21 12:37:23
2348
原创 [cv] optical flow
Given optical flow, we can detect moving objects, detect how far the objects are, and detect independent moving objects.To overcome this problem, there are two solutions provided.
2017-08-15 19:23:21
560
原创 [cv] Image Convolution and Edge Detection (2nd)
Non-max supression:Edge Linking
2017-08-02 17:16:26
741
原创 [cv] Fourier Transform, Image Convolution, Edge Detection
1. Fourier Transformconvolution neutral networks is a hot spot in machine learning technique.But is that convolution the same as the following convolution?let us start with 1D signal.
2017-07-13 00:03:44
995
原创 wrapping a C library with cython
an example to show how to wrap c code for python with cython
2017-07-09 12:51:56
495
原创 tensorflow 中对数组元素的操作
上个月没咋写文章。这个月开始,多进行进行总结分享。tensorflow中对tensor对象进行像numpy数组一样便捷的操作是不可能的, 至少对1.2以及之前的版本而言。从issue上看到,有不少人希望tensorflow能及早实现这些操作,但近期来看是不太可能了。但是,这样的操作的确可以实现。下面我来向大家介绍几种常用的操作,以及其在tensorflow中
2017-07-06 19:53:22
21847
1
原创 win7 配置 matlab Mex 环境
1.首先安装.Net framework 4.0下载链接为 https://www.microsoft.com/en-us/download/confirmation.aspx?id=178512.安装windows SDK下载链接为: http://download.youkuaiyun.com/detail/u013805817/98733733. 测试是否成功>> m
2017-06-18 02:17:27
959
原创 visual studio 2017 配置 opencv 3.2 开发环境
1. 安装opencv 3.2链接地址:https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.2.0/opencv-3.2.0-vc14.exe/download下载后双击进行解压。2. 配置visual studio 2017文件->新建->项目在源文件处右键选择, 添加, 新建项,
2017-06-07 12:33:47
7363
原创 [robot] review forward kinematics
DH parametersfind common normal of Zi Z_{i} and Zi+1 Z_{i+1} .place new XX axis Xi+1 X_{i+1} along this common normal.d d is the depth from the origin of ZiZ_{i} to the common normal along the Z
2017-05-19 20:08:47
1937
原创 [cv] convolution in frequency domain
convolution in frequency domainconvolution in spatial domain == multiplication in frequency domain.FFT Fast Fourier Transformsmoothing and blurlow and high pass filter properties of Fourier TransformFo
2017-05-17 21:12:43
953
原创 [robot]Forward-Kinematics
Forward Kinematicsdegree of freedomuniversal join 万向节grubler’s criterionF=λ(n−j−1)+∑i=1jfi F = \lambda (n-j-1) + \sum _{i=1}^{j} f_{i} where, FF is number of DOF, nn is number of lin
2017-05-15 14:25:54
2489
原创 [robot] review rotation
fundamental rotationrotation around a fixed framerotation around an intermediate framerepresentation of rotationsbasic rotations axis-angle notation quaternions Compute Axis-angle based on Rotation Ma
2017-05-13 15:13:50
929
原创 [robot]Quaternions and Rigid Transformations
四元数定义单位四元数 这一性质十分有用。 由于多次的旋转矩阵间相乘会导致误差累积,相乘次数越多误差越大。 如果利用单位四元数表示旋转矩阵,相乘后得到另一个单位四元数,这时对这个四元数进行renormalize就可以提高精度。群共轭先进性这一表示形式在机器人学,计算机视觉有着广泛应用。旋转表示方式的总结rigid-transformation inverting rigid transfo
2017-05-12 15:28:50
1075
原创 [cv]generalized hough transform
general houghspecific hough transform is usually used in images with a specific shape (line, circle). examplealgorithm
2017-05-10 01:44:25
1986
原创 [cv]hough transform ----circle
hough transform for circlesif the radius is not fixed, hough of circle in image will be a 3D space. but if the gradient of a circle is given, the search space is decreased heavily. tips pros and c
2017-05-10 01:15:16
938
A simple adaptive first-order differential microphone.pd
2018-04-08
email data for naive bayes filter
2017-01-15
Ian Goodfellow introduction to GANs ( Generative Adversarial Networks)
2016-12-09
HangMan 猜单词 一个简易的吊死鬼游戏 python版
2016-03-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人