统计变量类型的成对关联测度

pypair的Python项目详细描述


pypair logo

PyPair公司

PyPair是一个统计库,用于计算任意两个变量之间的成对关联。通常,统计变量类型被视为categorical或{}。分类变量对其值没有继承顺序,而连续变量有继承顺序。此API为分类和/或连续变量的任何组合实现了over 130 association measures。在

下面是一个简短而甜蜜的片段,用于对严格存储二进制数据的数据帧使用API。在

frompypair.associationimportbinary_binaryjaccard=lambdaa,b:binary_binary(a,b,measure='jaccard')tanimoto=lambdaa,b:binary_binary(a,b,measure='tanimoto_i')df=get_a_pandas_binary_dataframe()jaccard_corr=df.corr(method=jaccard)tanimoto_corr=df.corr(method=tanimoto)print(jaccard_corr)print('-'*15)print(tanimoto_corr)

开始PyPair的另一种方法是使用convenience方法,其名称表示变量对类型。在

^{pr2}$

软件著作权

Copyright 2020 One-Off Coder

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

图书版权

版权所有2020一次性编码器

这部作品由One-Off Coder授权给Creative Commons Attribution 4.0 International License。在

Creative Commons Attribution 4.0 International License

艺术版权

版权所有2020 Daytchia Vang

引文

@misc{oneoffcoder_pypair_2020,
title={PyPair, A Statistical API for Bivariate Association Measures},
url={https://github.com/oneoffcoder/py-pair},
author={Jee Vang},
year={2020},
month={Nov}}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何使用spring注释将一个POJO对象注入另一个POJO?   javasocket读取超时异常。增加读取时间   java在创建数组列表实例的类时遇到问题,不断出现相同的错误   JavaJSF<p:dataTable>与Ajaxmethod的问题   java JPA存储库提高findAll()性能   mvc中未为html视图调用java Spring控制器   java如何获取用户对象| Spring Boot |控制器的HTML表单数据|   在eclipse链接jpa中迁移到java 8时间后,derby数据库中出现错误   java 安卓 sqlite接口可以在安卓外部使用吗   当我使用CTRL-ALT+L时,java Android studio正在重新格式化我的评论   java使用Spring呈现Url在jsp中加载div   dispose()Selenium中的java错误   java“找不到符号[method name]”,尽管方法已声明   java在文件中查找一行并将其删除   JeroMQ从Java客户端向Python服务器发送消息   java如何在鼠标悬停时在Tapestry 5.3.6调色板组件中显示选项文本的工具提示(标题)?   java从Google搜索页面获取所有搜索结果   文件请有人解释我这个JAVA代码的输出不要运行这个代码它会窃取密码