Skip to content

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

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

ywcb00 wants to merge 13 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

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.59%. Comparing base (1a358e5) to head (9b4567f).

Additional details and impacted files
@@              Coverage Diff              @@
##               main    #2642       +/-   ##
=============================================
+ Coverage     72.18%   76.59%    +4.41%     
=============================================
  Files          2105      458     -1647     
  Lines        230158    31204   -198954     
  Branches      38694        0    -38694     
=============================================
- Hits         166139    23901   -142238     
+ Misses        52813     7303    -45510     
+ Partials      11206        0    -11206     
Flag Coverage Δ
java ?
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
…formation in type and name

feat(main/hops/estim/SparsityInformation.java): create method to derive the data characteristics from the sparsity information

chore(main/hops/estim/Estimator**.java): obtain the data characteristics from the sparsity information object instead of deriving it seperately
…atrix class from the sparsity information container
…ty information

chore(main/hops/estim/Estimator**.java): adapt to name change of synopsis to sparsity information
…ity information class for scalar sparsity

	use the scalar sparsity information type in the basic average estimator
…of exact estimation to scalar sparsity object instead of data characteristics
… pointer error when the second data characteristics is null for a unary operation
… threshold so that the basic average case 1 test passes
…sity information type in the basic worst estimator

chore(main/hops/estim/Estimator**.java): use the cached sparsity information when available instead of re-estimating
…of main estimation method to sparsity information instead of data characteristics

refactor(main/hops/estim/Estimator**.java): adapt to above changes

fix(main/hops/estim/EstimatorRowWise.java): fix parenthization for expression to calculate the sparsity of the cbind operation

refactor(test/component/estim/**): adapt to return type change of the sparsity estimator

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