Skip to content

[WIP][SYSTEMDS-3993] Introduce the Sparsity Information Container - #2642

Open
ywcb00 wants to merge 4 commits into
apache:mainfrom
ywcb00:feat/recompile/sparsity/optimizer/sparsityinformationcontainer2
Open

ywcb00 wants to merge 4 commits into
apache:mainfrom
ywcb00:feat/recompile/sparsity/optimizer/sparsityinformationcontainer2

Conversation

@ywcb00

@ywcb00 ywcb00 commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Hi,
this PR introduces a common class for sparsity information. For now, the term sparsity information refers to known sparsity and sparsity estimates, but can be extended to bounds, certainty, etc. in the future. Also compatibility among different types of sparsity estimates can be implemented based on the sparsity information type.
This common parent class is intended to unify the core usage of sparsity estimates and improve the differentiation between known sparsity and estimated sparsity.
All the best,
David

…formation container for sparsity estimates

refactor(main/hops/estim/EstimatorMatrixHistogram.java): extend the matrix histogram class from the sparsity information container
@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.54264% with 76 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.18%. Comparing base (1a358e5) to head (83c478c).

Files with missing lines Patch % Lines
.../org/apache/sysds/hops/estim/EstimatorRowWise.java 70.83% 21 Missing and 7 partials ⚠️
...che/sysds/hops/estim/EstimatorMatrixHistogram.java 66.66% 27 Missing ⚠️
...g/apache/sysds/hops/estim/EstimatorDensityMap.java 60.46% 17 Missing ⚠️
...g/apache/sysds/hops/estim/SparsityInformation.java 80.00% 3 Missing ⚠️
...apache/sysds/hops/estim/EstimatorLayeredGraph.java 95.65% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2642   +/-   ##
=========================================
  Coverage     72.18%   72.18%           
- Complexity    51211    51232   +21     
=========================================
  Files          2105     2106    +1     
  Lines        230158   230212   +54     
  Branches      38694    38700    +6     
=========================================
+ Hits         166139   166186   +47     
- Misses        52813    52828   +15     
+ Partials      11206    11198    -8     
Flag Coverage Δ
java 71.49% <70.54%> (+<0.01%) ⬆️
python 76.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…y map class from the sparsity information container
…red graph class from the sparsity information container

chore(main/hops/estim/SparsityInformation.java): rename the method getNonZeros to getNnz because it returns the NUMBER of non zero entries
@ywcb00
ywcb00 force-pushed the feat/recompile/sparsity/optimizer/sparsityinformationcontainer2 branch from 9183c62 to 1ec3dae Compare November 26, 2026 14:36
…e sparsity class to wrape the rowwise sparsity vector inside the sparsity information container

This branch has not been deployed

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

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant