统计变量类型的成对关联测度
pypair的Python项目详细描述
PyPair公司
PyPair是一个统计库,用于计算任意两个变量之间的成对关联。通常,统计变量类型被视为categorical
或{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
方法,其名称表示变量对类型。在
软件著作权
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。在
艺术版权
版权所有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}}
- 项目
标签: