Feature Request: Add alternative (quicker) density estimation options for `stat_density`

未关闭
#573 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python

调研方向

从 plotnine/stats/density.py 开始,检查可用的密度方法,然后查看 plotnine/stats/stat_density.py 第 177 行附近选择 KDEUnivariate 的位置。比较现有的方法接口,并确定一个具体的选择机制和更快密度计算的完成标准,同时为 stat_density 添加适当的测试。

由索引模型根据 Issue 内容生成。

描述

Enhancement Feature Performance

I notice that in plotnine/stats/density.py there's support for several methods of calculating density but stat_density is locked into using statsmodels KDEUnivariate https://github.com/has2k1/plotnine/blob/a81b8f92bc39b6835e506e6779a01e4b8c53a627/plotnine/stats/stat_density.py#L177

I would love to be able to select a faster/more efficient method for computing densities so that performance can be more similar to seaborn in this respect.

Please let me know if I can help through a PR

主要语言
Python
星标
4.8k
派生
260
平均合并
2 天 12 小时
30 天内合并 PR
4

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

has2k1/plotnine 的其他 Issue

查看 has2k1/plotnine 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。