Skip to content

Conversation

@alyst
Copy link
Member

@alyst alyst commented Mar 20, 2023

affprob() seems to fail in CI tests from time to time.
After looking at the debug info added by this PR, it looks like the failures are related to a numerical error accumulating in availability and response matrices.
It results in a very small negative A[i,i] + R[i,i], which leads to the empty exemplars.
It looks like sklearn addresses that by adding small amount of noise: _affinity_propagation().

@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2023

Codecov Report

Patch coverage: 77.77% and project coverage change: -0.08% ⚠️

Comparison is base (64fd46c) 95.36% compared to head (48dded1) 95.29%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #246      +/-   ##
==========================================
- Coverage   95.36%   95.29%   -0.08%     
==========================================
  Files          18       18              
  Lines        1316     1317       +1     
==========================================
  Hits         1255     1255              
- Misses         61       62       +1     
Files Changed Coverage Δ
src/affprop.jl 98.56% <77.77%> (-0.72%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alyst alyst marked this pull request as draft March 20, 2023 03:24
@alyst alyst changed the title Fix affprop() on Julia Nightly Fix affprop() random CI failures Mar 24, 2023
@alyst alyst added the bug label Mar 26, 2023
@alyst alyst force-pushed the ast/fix_affprop branch from d4c6721 to 48dded1 Compare July 26, 2023 08:39
@alyst alyst marked this pull request as ready for review July 26, 2023 08:50
@alyst alyst added the testing label Jul 26, 2023
@alyst alyst merged commit cdad775 into master Jul 26, 2023
@alyst alyst deleted the ast/fix_affprop branch July 26, 2023 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants