相似模糊关系矩阵怎么计算计算

扫一扫,访问微社区
只需一步,快速开始
请完成以下验证码
请完成以下验证码
查看: 6439|回复: 3|关注: 0
matlab中计算俩个矩阵的相似性有哪些函数
<h1 style="color:# 麦片财富积分
新手, 积分 5, 距离下一级还需 45 积分
请问matlab中计算俩个矩阵的相似性有哪些函数?谢谢~
论坛优秀回答者
帖子最佳答案
关注者: 274
help corrcoef
<h1 style="color:# 麦片财富积分
honglei.chen 发表于
help corrcoef
就是看不懂corr2、corr和corrcoef的区别,cov(X,Y,1)和cov(X,Y)的区别,您能具体的解释一下子吗?谢谢~
<h1 style="color:# 麦片财富积分
corr2是算相关的,cov是算方差的,corrcoef是换算相关矩阵的。
假设N是向量的长度的话,cov是除以(N-1)的,corr2是除以N的。从统计学角度上说,除以(N-1)是无偏估计,而除以N是有偏估计。corrcoef是换算相关矩阵的,也就是说可以输入M个向量,会生成MXM的矩阵。
站长推荐 /3
MATLAB中文论坛是全球最大的 MATLAB & Simulink 中文社区。用户免费注册会员后,即可下载代码,讨论问题,请教资深用户及结识书籍作者。立即注册加入我们吧!
MATLAB官方社交平台
MATLAB中文论坛微社区相似矩阵计算_百度知道
相似矩阵计算
相似矩阵计算划线部分怎么计算的?...
相似矩阵计算划线部分怎么计算的?
&#xe6b9;答题抽奖
首次认真答题后
即可获得3次抽奖机会,100%中奖。
来自科学教育类芝麻团
采纳数:23206
获赞数:79243
参与团队:
画线的这个是对角行列式,其值为主对角线上元素的乘积,也就是r个-1与n-r个-2的乘积。
为你推荐:
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。如何构造相似度矩阵? - 我爱公开课
如何构造相似度矩阵?
聚类任务面临的首要任务就是相似度矩阵的计算,如词聚类、文档聚类等,类似的问题在许多应用任务中都会遇到,如推荐系统。这里可以将问题拆分成如下关键子任务:
如何定义相似度函数?
如何高效计算相似度矩阵,尤其面对海量数据处理任务?
如何基于高维矩阵做运算?
大家有什么较好的解决方案呢?
2012年 5月 12日
(2,370 基本)
2012年 5月 12日
1. constructing sparse matrix approximately.
2. Nystr?m approximation
2012年 5月 12日
今天和同事聊天了解到开源工具,已经提供了all-pairs-similarity的计算功能,有兴趣的同学可以去阅读源码,简介如下(:
The goal is to compute all pairwise similarities between the rows of a
sparse matrix A.
The computation should be executed in a way that only rows that have at
least one non-zero value in the same dimension (column) are compared. We
need this to avoid a quadratic number of pairwise comparisons.
Furthermore we should be able to 'embed' arbitrary similarity measures
and we should always be able to use a combiner in all MapReduce steps.
The computation is executed using three MapReduce passes:
In the first step, the rows of A are preprocessed via
VectorSimilarityMeasure.normalize() (they could e.g. be binarized or
scaled to unit-length), a single number for each row of A is computed
via VectorSimilarityMeasure.norm() (e.g. L1 norm) and A' is formed.
The second steps operates on the rows of A' (the columns of A). The
mapper sums up all pairwise cooccurrences using
VectorSimilarityMeasure.aggregate() (as vectors, thereby using the so
called 'stripes' pattern). The reducers sums up all cooccurrence vectors
for one row and uses the similarity measure and the precomputed numbers
from step one to compute all similarities via
VectorSimilarityMeasure.similarity().
The third step ensures that only the top k similar rows per row are kept.
It's hard to see from the code but actually the job performs the matrix
multiplication AA' via outer products with a modified (similarity
measure specific) dot product.
2012年 6月 29日
(2,370 基本)
Powered by
本站架设在
上, 采用创作共用版权协议, 要求署名、非商业用途和保持一致. 转载本站内容必须也遵循“署名-非商业用途-保持一致”的创作共用协议.如何计算两个等维度矩阵的相似度_百度知道
如何计算两个等维度矩阵的相似度
擅长:暂未定制
如果矩阵小的话,可以转为1维向量,然后计算向量间的夹角θ。
为你推荐:
其他类似问题
您可能关注的内容
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。}

我要回帖

更多关于 矩阵的计算方法总结 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信