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

[BATCH] fix warning in model library and clarify use of batch facets for beta distribution #296

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

chapuisk
Copy link
Contributor

No description provided.

@chapuisk chapuisk added the About Batch This issue concerns batch experiments label Aug 26, 2024
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: FAILED

Change in average Code Health of affected files: -0.15 (8.87 -> 8.72)

  • Declining Code Health: 1 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅
  • Affected Hotspots: 1 files(s) 🔥

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: FAILED

Change in average Code Health of affected files: -0.16 (8.87 -> 8.71)

  • Declining Code Health: 1 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅
  • Affected Hotspots: 1 files(s) 🔥

View detailed results in CodeScene

@@ -20,6 +20,7 @@
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

Choose a reason for hiding this comment

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

ℹ Getting worse: Overall Code Complexity
The mean cyclomatic complexity increases from 4.71 to 5.00, threshold = 4

@lesquoyb
Copy link
Contributor

Could you provide an example model for the fix you did on factorial ?
I'd like to test it and play a bit with it but I'm not sure what was the issue

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: FAILED

Change in average Code Health of affected files: -0.16 (8.91 -> 8.74)

  • Declining Code Health: 1 findings(s) 🚩
  • Improving Code Health: 1 findings(s) ✅
  • Affected Hotspots: 1 files(s) 🔥

View detailed results in CodeScene

.filter(p -> p.getMinValue(scope) != null && p.getMaxValue(scope) != null).map(p -> p).toList();

parameters = parameters == null ? params : parameters;
parameters = parameters == null ? getParams(currentExperiment) : parameters;

Choose a reason for hiding this comment

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

✅ Getting better: Complex Method
explore decreases in cyclomatic complexity from 12 to 11, threshold = 9

@@ -91,11 +91,11 @@
optional = true,
doc = @doc ("The number of sample required.")),
@facet (
name = Exploration.SAMPLE_FACTORIAL,
name = BetaExploration.BOOTSTRAP,

Choose a reason for hiding this comment

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

❌ New issue: Overall Code Complexity
This module has a mean cyclomatic complexity of 4.43 across 7 functions. The mean complexity threshold is 4

Suppress

@lesquoyb lesquoyb merged commit ae76d31 into 2024-06 Sep 23, 2024
5 of 6 checks passed
@lesquoyb lesquoyb deleted the clean-batch-xp branch September 23, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
About Batch This issue concerns batch experiments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants