• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python core.fast_pdist函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中msmbuilder.metrics.core.fast_pdist函数的典型用法代码示例。如果您正苦于以下问题:Python fast_pdist函数的具体用法?Python fast_pdist怎么用?Python fast_pdist使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了fast_pdist函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_mahalanobis_1

 def test_mahalanobis_1(self):
     reference = pdist(self.Xd, metric='mahalanobis')
     testing = fast_pdist(self.Xd, metric='mahalanobis')
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例2: test_chebychev

 def test_chebychev(self):
     reference = pdist(self.Xd, metric='chebychev')
     testing = fast_pdist(self.Xd, metric='chebychev')
     npt.assert_array_equal(reference, testing)
开发者ID:jimsnyderjr,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例3: test_jaccard_2

 def test_jaccard_2(self):
     reference = pdist(self.Xb, metric='jaccard')
     testing = fast_pdist(self.Xb, metric='jaccard')
     npt.assert_array_equal(reference, testing)
开发者ID:jimsnyderjr,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例4: test_minkowski

 def test_minkowski(self):
     p = np.random.randint(10)
     reference = pdist(self.Xd, metric='minkowski', p=p)
     testing = fast_pdist(self.Xd, metric='minkowski', p=p)
     npt.assert_array_equal(reference, testing)
开发者ID:jimsnyderjr,项目名称:msmbuilder,代码行数:5,代码来源:test_metrics.py


示例5: test_correlation

 def test_correlation(self):
     reference = pdist(self.Xd, metric='correlation')
     testing = fast_pdist(self.Xd, metric='correlation')
     npt.assert_array_equal(reference, testing)
开发者ID:jimsnyderjr,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例6: test_sokalsneath

 def test_sokalsneath(self):
     reference = pdist(self.Xb, metric='sokalsneath')
     testing = fast_pdist(self.Xb, metric='sokalsneath')
     npt.assert_array_equal(reference, testing)
开发者ID:jimsnyderjr,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例7: test_mahalanobis_1

 def test_mahalanobis_1(self):
     reference = pdist(self.Xd, metric='mahalanobis')
     testing = fast_pdist(self.Xd, metric='mahalanobis')
     npt.assert_array_equal(reference, testing)
开发者ID:jimsnyderjr,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例8: test_sqeuclidean

 def test_sqeuclidean(self):
     reference = pdist(self.Xd, metric='sqeuclidean')
     testing = fast_pdist(self.Xd, metric='sqeuclidean')
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例9: test_chebychev

 def test_chebychev(self):
     reference = pdist(self.Xd, metric='chebychev')
     testing = fast_pdist(self.Xd, metric='chebychev')
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例10: test_cityblock

 def test_cityblock(self):
     reference = pdist(self.Xd, metric='cityblock')
     testing = fast_pdist(self.Xd, metric='cityblock')
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例11: test_correlation

 def test_correlation(self):
     reference = pdist(self.Xd, metric='correlation')
     testing = fast_pdist(self.Xd, metric='correlation')
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例12: test_cosine

 def test_cosine(self):
     reference = pdist(self.Xd, metric='cosine')
     testing = fast_pdist(self.Xd, metric='cosine')
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例13: test_minkowski

 def test_minkowski(self):
     p = np.random.randint(10)
     reference = pdist(self.Xd, metric='minkowski', p=p)
     testing = fast_pdist(self.Xd, metric='minkowski', p=p)
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:5,代码来源:test_metrics.py


示例14: test_mahalanobis_2

 def test_mahalanobis_2(self):
     VI = np.random.randn(self.Xd.shape[0], self.Xd.shape[0])
     reference = pdist(self.Xd, metric='mahalanobis', VI=VI)
     testing = fast_pdist(self.Xd, metric='mahalanobis', VI=VI)
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:5,代码来源:test_metrics.py


示例15: test_rogerstanimoto

 def test_rogerstanimoto(self):
     reference = pdist(self.Xb, metric='rogerstanimoto')
     testing = fast_pdist(self.Xb, metric='rogerstanimoto')
     npt.assert_array_equal(reference, testing)
开发者ID:jimsnyderjr,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例16: test_hamming_2

 def test_hamming_2(self):
     reference = pdist(self.Xb, metric='hamming')
     testing = fast_pdist(self.Xb, metric='hamming')
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例17: test_russellrao

 def test_russellrao(self):
     reference = pdist(self.Xb, metric='russellrao')
     testing = fast_pdist(self.Xb, metric='russellrao')
     npt.assert_array_equal(reference, testing)
开发者ID:jimsnyderjr,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例18: test_jaccard_2

 def test_jaccard_2(self):
     reference = pdist(self.Xb, metric='jaccard')
     testing = fast_pdist(self.Xb, metric='jaccard')
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py


示例19: test_seuclidean_2

 def test_seuclidean_2(self):
     V = np.random.randn(self.Xd.shape[1])
     reference = pdist(self.Xd, metric='seuclidean', V=V)
     testing = fast_pdist(self.Xd, metric='seuclidean', V=V)
     npt.assert_array_equal(reference, testing)
开发者ID:jimsnyderjr,项目名称:msmbuilder,代码行数:5,代码来源:test_metrics.py


示例20: test_canberra

 def test_canberra(self):
     reference = pdist(self.Xd, metric='canberra')
     testing = fast_pdist(self.Xd, metric='canberra')
     eq(reference, testing)
开发者ID:dvanatta,项目名称:msmbuilder,代码行数:4,代码来源:test_metrics.py



注:本文中的msmbuilder.metrics.core.fast_pdist函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python msm.ContinuousTimeMSM类代码示例发布时间:2022-05-27
下一篇:
Python dataset.dataset函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap