Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected output th.stats.std #140

Open
Yejashi opened this issue Mar 1, 2024 · 0 comments
Open

Unexpected output th.stats.std #140

Yejashi opened this issue Mar 1, 2024 · 0 comments
Labels
area-stats Issues and PRs related to Thicket's stats subpackage priority-normal Normal priority issues and PRs type-bug Identifies bugs in issues and identifies bug fixes in PRs

Comments

@Yejashi
Copy link
Collaborator

Yejashi commented Mar 1, 2024

There is an issue with the th.stats.std function where single profiled thicket results in Nan's value due to pandas use of sample standard deviation instead of population standard deviation.

A way to get around this issue is to use lambda x: np.std(x) in the aggregate function of th.stats.std.

i.e df = thicket.dataframe[columns].reset_index().groupby("node").agg(lambda x: np.std(x))

@Yejashi Yejashi added type-bug Identifies bugs in issues and identifies bug fixes in PRs priority-normal Normal priority issues and PRs labels Mar 1, 2024
@ilumsden ilumsden added the area-stats Issues and PRs related to Thicket's stats subpackage label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-stats Issues and PRs related to Thicket's stats subpackage priority-normal Normal priority issues and PRs type-bug Identifies bugs in issues and identifies bug fixes in PRs
Projects
None yet
Development

No branches or pull requests

2 participants