-
Notifications
You must be signed in to change notification settings - Fork 4
New reduction rule: BinaryMatrixFactorization to BicliqueCover #140
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #140 +/- ##
==========================================
+ Coverage 93.26% 93.84% +0.58%
==========================================
Files 38 39 +1
Lines 1588 1642 +54
==========================================
+ Hits 1481 1541 +60
+ Misses 107 101 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/rules/BMF_BicliqueCover.jl
Outdated
Base.:(==)(a::ReductionBMFToBicliqueCover, b::ReductionBMFToBicliqueCover) = a.bicliquecover == b.bicliquecover && a.k == b.k | ||
target_problem(res::ReductionBMFToBicliqueCover) = res.bicliquecover | ||
|
||
function reduceto(::Type{BicliqueCover}, bmf::BinaryMatrixFactorization) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function reduceto(::Type{BicliqueCover}, bmf::BinaryMatrixFactorization) | |
function reduceto(::Type{<:BicliqueCover}, bmf::BinaryMatrixFactorization) |
src/rules/BMF_BicliqueCover.jl
Outdated
return (B,C) | ||
end | ||
|
||
function extract_multiple_solutions(res::ReductionBMFToBicliqueCover{Int64}, solution_set::Vector{Vector{Vector{Int64}}}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not need this?
src/rules/BMF_BicliqueCover.jl
Outdated
end | ||
end | ||
end | ||
return (B,C) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should return a vector, and convert it back with read_solution
. e.g.
function read_solution(factoring::Factoring,solution::AbstractVector) #return a tuple of 2 numbers result |
Co-authored-by: Jinguo Liu <[email protected]>
Problems:
findbest
method could not be applied toBicliqueCover
yet due to the specific configuration shape ofBicliqueCover
. Therefore, theextract_solution
function and the reduction correctness are not yet tested.