Skip to content

Reject non-finite tracklet Viterbi costs#4501

Draft
FlorianPfaff wants to merge 5 commits into
mainfrom
agent/reject-nonfinite-tracklet-costs
Draft

Reject non-finite tracklet Viterbi costs#4501
FlorianPfaff wants to merge 5 commits into
mainfrom
agent/reject-nonfinite-tracklet-costs

Conversation

@FlorianPfaff

Copy link
Copy Markdown
Owner

What changed

  • validate TrackletAssociationCandidate.unary_cost as a finite scalar
  • validate custom transition costs in both full and fixed-lag tracklet Viterbi paths
  • add regressions covering NaN, +inf, and -inf

Why

Non-finite unary or transition costs currently enter the dynamic-programming tables. In particular, a NaN unary cost can win Python's tuple-based terminal minimum by position and produce a NaN total cost even when a finite missed-detection alternative exists. The sequence-association solver already enforces the corresponding finite-cost invariant; the tracklet solver should do the same.

Validation

A focused standalone regression is executed while publishing the patch. The normal repository CI will run on the resulting PR branch.

@github-actions

Copy link
Copy Markdown
Contributor

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 26.93s
✅ JSON prettier 7 0 0 0 1.04s
✅ JSON v8r 7 0 0 4.29s
✅ MARKDOWN markdownlint 68 0 0 0 2.01s
✅ MARKDOWN markdown-table-formatter 68 0 0 0 0.74s
✅ PYTHON black 1563 208 0 0 101.62s
✅ PYTHON isort 1563 382 0 0 2.81s
✅ REPOSITORY betterleaks yes no no 2.83s
✅ REPOSITORY checkov yes no no 57.27s
✅ REPOSITORY gitleaks yes no no 15.83s
✅ REPOSITORY git_diff yes no no 0.41s
✅ REPOSITORY secretlint yes no no 69.75s
✅ REPOSITORY syft yes no no 6.56s
✅ REPOSITORY trivy-sbom yes no no 6.38s
✅ REPOSITORY trufflehog yes no no 33.32s
✅ YAML prettier 11 0 0 0 0.8s
✅ YAML v8r 11 0 0 12.46s
✅ YAML yamllint 11 0 0 0.71s

Notices

📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.6.0 --custom-flavor-setup --custom-flavor-linters PYTHON_BLACK,PYTHON_ISORT,COPYPASTE_JSCPD,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_BETTERLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant