Skip to content

[Draft][SYSTEMDS-3993] Introduce a Parent Class for Sparsity Information - #2641

Draft
ywcb00 wants to merge 6 commits into
apache:mainfrom
ywcb00:feat/recompile/sparsity/optimizer/sparsityinformationcontainer
Draft

ywcb00 wants to merge 6 commits into
apache:mainfrom
ywcb00:feat/recompile/sparsity/optimizer/sparsityinformationcontainer

Conversation

@ywcb00

@ywcb00 ywcb00 commented Nov 24, 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

…of nulls in the estimation

chore(test/functions/rewrite/SparsityOptimizerTest.java): change test to use the MNC estimator
… for information about sparsity which should be a common type for synopsis in sparsity estimation

refactor(main/hops/estim/**): adapt to sparsity information container
…ar sparsity estimates which is also used by basic worst estimator

feat(main/hops/estim/**): modify the custom sparsity types to extend from the sparsity information wrapper and implement common base functionality (nrows, ncols, avgsparsity)
	update all estimators to use the sparsity information type instead of data characteristics and custom types

chore(test/component/estim/**): adapt to above changes
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@              Coverage Diff              @@
##               main    #2641       +/-   ##
=============================================
+ Coverage     72.18%   76.60%    +4.41%     
=============================================
  Files          2105      458     -1647     
  Lines        230158    31204   -198954     
  Branches      38694        0    -38694     
=============================================
- Hits         166139    23903   -142236     
+ Misses        52813     7301    -45512     
+ Partials      11206        0    -11206     
Flag Coverage Δ
java ?
python 76.60% <ø> (+<0.01%) ⬆️

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.

…ity information from the matrix block instead of just getting the cached sparsity information from the mm node
…ethod to obtain the average sparsity for a density map
…non zero to double type before dividing it by the number of cells to obtain the sparsity (to retain the precision)

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