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

[MINOR][TESTS] Increase tolerance to 0.2 for NaiveBayesSuite #31266

Closed
wants to merge 1 commit into from

Conversation

Loquats
Copy link
Contributor

@Loquats Loquats commented Jan 20, 2021

What changes were proposed in this pull request?

This test fails flakily. I found it failing in 1 out of 80 runs.

  Expected -0.35667494393873245 and -0.41914521201224453 to be within 0.15 using relative tolerance.

Increasing relative tolerance to 0.2 should improve flakiness.

0.2 * 0.35667494393873245 = 0.071 > 0.062 = |-0.35667494393873245 - (-0.41914521201224453)|

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

@github-actions github-actions bot added the MLLIB label Jan 20, 2021
@dongjoon-hyun
Copy link
Member

Thank you for the investigation and making a PR, @Loquats .

cc @WeichenXu123 and @srowen

@srowen
Copy link
Member

srowen commented Jan 20, 2021

Jenkins test this please

@dongjoon-hyun dongjoon-hyun changed the title Increase tolerance to 0.2 for NaiveBayesSuite [MINOR][TESTS] Increase tolerance to 0.2 for NaiveBayesSuite Jan 21, 2021
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM, too. I also observed this failure in GitHub Action. Thank you, @Loquats and @srowen .

GitHub Action passed. Merged to master/3.1.

dongjoon-hyun pushed a commit that referenced this pull request Jan 21, 2021
### What changes were proposed in this pull request?
This test fails flakily. I found it failing in 1 out of 80 runs.
```
  Expected -0.35667494393873245 and -0.41914521201224453 to be within 0.15 using relative tolerance.
```
Increasing relative tolerance to 0.2 should improve flakiness.
```
0.2 * 0.35667494393873245 = 0.071 > 0.062 = |-0.35667494393873245 - (-0.41914521201224453)|
```

### Why are the changes needed?

### Does this PR introduce _any_ user-facing change?

### How was this patch tested?

Closes #31266 from Loquats/NaiveBayesSuite-reltol.

Authored-by: Andy Zhang <yue.zhang@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit c8c70d5)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@dongjoon-hyun
Copy link
Member

Thank you, @WeichenXu123 , too.

@WeichenXu123
Copy link
Contributor

@dongjoon-hyun I think this need to backport to branch 3.1/3.0

@dongjoon-hyun
Copy link
Member

Okay. I'll backport it to 3.0, too.

dongjoon-hyun pushed a commit that referenced this pull request Jan 21, 2021
### What changes were proposed in this pull request?
This test fails flakily. I found it failing in 1 out of 80 runs.
```
  Expected -0.35667494393873245 and -0.41914521201224453 to be within 0.15 using relative tolerance.
```
Increasing relative tolerance to 0.2 should improve flakiness.
```
0.2 * 0.35667494393873245 = 0.071 > 0.062 = |-0.35667494393873245 - (-0.41914521201224453)|
```

### Why are the changes needed?

### Does this PR introduce _any_ user-facing change?

### How was this patch tested?

Closes #31266 from Loquats/NaiveBayesSuite-reltol.

Authored-by: Andy Zhang <yue.zhang@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit c8c70d5)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit dad201e)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@SparkQA
Copy link

SparkQA commented Jan 21, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38880/

@SparkQA
Copy link

SparkQA commented Jan 21, 2021

Test build #134294 has finished for PR 31266 at commit 18b050b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jan 21, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38880/

skestle pushed a commit to skestle/spark that referenced this pull request Feb 3, 2021
### What changes were proposed in this pull request?
This test fails flakily. I found it failing in 1 out of 80 runs.
```
  Expected -0.35667494393873245 and -0.41914521201224453 to be within 0.15 using relative tolerance.
```
Increasing relative tolerance to 0.2 should improve flakiness.
```
0.2 * 0.35667494393873245 = 0.071 > 0.062 = |-0.35667494393873245 - (-0.41914521201224453)|
```

### Why are the changes needed?

### Does this PR introduce _any_ user-facing change?

### How was this patch tested?

Closes apache#31266 from Loquats/NaiveBayesSuite-reltol.

Authored-by: Andy Zhang <yue.zhang@databricks.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants