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

The description of a KernelSmoothing fitted distribution can be lost sometimes #2642

Open
mbaudin47 opened this issue May 2, 2024 · 0 comments
Labels
Milestone

Comments

@mbaudin47
Copy link
Collaborator

mbaudin47 commented May 2, 2024

What happened?

In the script below, I create a distribution, configure its description and generate a sample from it. Then I create a kernel smoothing estimator of the distribution. The description of the fitted distribution is "v0" instead of "A", as expected. If I comment out the configuration of the bounding option, then the correct description is obtained.

How to reproduce the issue?

The script:

import openturns as ot
x = ot.Uniform()
x.setDescription(["A"])
data = x.getSample(100)
kde = ot.KernelSmoothing()
kde.setBoundingOption(ot.KernelSmoothing.LOWER)  # Comment this line: succeeds!
kdeDistribution = kde.build(data)
kdeDistribution.getDescription()  # Expected: "A"

produces:

[v0]

Version

1.22

Operating System

unknown

Installation media

unknown

Additional Context

No response

@mbaudin47 mbaudin47 added the bug label May 2, 2024
@jschueller jschueller added this to the 1.23 milestone May 7, 2024
jschueller added a commit to jschueller/openturns that referenced this issue May 10, 2024
jschueller added a commit to jschueller/openturns that referenced this issue May 12, 2024
jschueller added a commit to jschueller/openturns that referenced this issue May 13, 2024
jschueller added a commit to jschueller/openturns that referenced this issue May 13, 2024
jschueller added a commit to jschueller/openturns that referenced this issue May 14, 2024
jschueller added a commit to jschueller/openturns that referenced this issue Jun 3, 2024
jschueller added a commit to jschueller/openturns that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants