Skip to content

Adaptive lasso (#10)#47

Merged
statmlben merged 1 commit intosoftmin:mainfrom
DataboyUsen:main
Apr 28, 2026
Merged

Adaptive lasso (#10)#47
statmlben merged 1 commit intosoftmin:mainfrom
DataboyUsen:main

Conversation

@DataboyUsen
Copy link
Copy Markdown
Contributor

Description

  • feat(adaptive-lasso): add omega parameter for adaptive lasso weights

    • Change rho from scalar scalar to array
    • Add omega parameter in plqERM_ElasticNet to apply adaptive lasso
  • perf(core): optimize adaptive LASSO conditional logic in C++ layer

    • Reduce redundant computations when omega is not provided
  • feat(validation): add parameter validation for omega

    • Validate length matches number of features
    • Ensure all omega values are positive
    • Add informative error messages
  • test(ci): add Adaptive ElasticNet CI tests

    • Test adaptive weighting with synthetic data
  • docs(examples): add Adaptive ElasticNet example

    • Compare adaptive vs standard ElasticNet
    • Changed formula in API of plqERM_ElasticNet

Related Issue

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring
  • Other:

Checklist

  • I have tested my changes locally
  • Tests pass: pytest tests/ -v
  • Code follows the style guidelines (PEP 8)
  • Documentation has been updated (if applicable)
  • Commits are properly formatted

Additional Notes

- feat(adaptive-lasso): add omega parameter for adaptive lasso weights
  * Change `rho` from scalar scalar to array
  * Add `omega` parameter in `plqERM_ElasticNet` to apply adaptive lasso

- perf(core): optimize adaptive LASSO conditional logic in C++ layer
  * Reduce redundant computations when omega is not provided

- feat(validation): add parameter validation for omega
  * Validate length matches number of features
  * Ensure all omega values are positive
  * Add informative error messages

- test(ci): add Adaptive ElasticNet CI tests
  * Test adaptive weighting with synthetic data

- docs(examples): add Adaptive ElasticNet example
  * Compare adaptive vs standard ElasticNet
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@statmlben statmlben merged commit 377a8f9 into softmin:main Apr 28, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants