【问题标题】:What is the meaning of HIGH CORRELATION in pandas profiling?大熊猫分析中的高相关性是什么意思?
【发布时间】:2021-06-06 03:56:15
【问题描述】:

我正在尝试在泰坦尼克号日期集上使用 pandas profiling。 在概述部分下,有一些带有标题“HIGH CORRELATION”的功能

  • 我知道相关性的含义是什么,但标题并没有说明哪个特征与该特征相关?
  • 那么熊猫分析文档中的“HIGH CORRELATION”是什么意思?

【问题讨论】:

    标签: pandas pandas-profiling


    【解决方案1】:

    如果您单击Warnings 选项卡,它将显示这些功能与哪些其他功能相关,如example 所示。在example 中可以看到与实际泰坦尼克号数据相同的内容。

    【讨论】:

      【解决方案2】:

      您还可以设置阈值来确定将什么视为HIGH CORRELATION。例如(使用pandas_profiling的当前最新版本3.1.0),

      profile = ProfileReport(df, 
                              missing_diagrams=None, 
                              interactions=None,
                              correlations={"pearson": {"calculate": True, "threshold": 0.8},
                                            "spearman": {"calculate": False},
                                            "kendall": {"calculate": False},
                                            "phi_k": {"calculate": False},
                                            "cramers": {"calculate": False}},
                              explorative=True)
      profile
      

      【讨论】:

        猜你喜欢
        • 2020-01-31
        • 2014-04-04
        • 1970-01-01
        • 1970-01-01
        • 2013-12-23
        • 2011-07-05
        相关资源
        最近更新 更多