Skip to content

Adaptive lasso#10

Merged
DataboyUsen merged 4 commits intomainfrom
Adaptive-Lasso
Apr 27, 2026
Merged

Adaptive lasso#10
DataboyUsen merged 4 commits intomainfrom
Adaptive-Lasso

Conversation

@DataboyUsen
Copy link
Copy Markdown
Owner

@DataboyUsen DataboyUsen commented Apr 27, 2026

Description

Add support for adaptive lasso in plqERM_ElasticNet by introducing the omega parameter, which provides feature-specific weight coefficients.

  • Adaptive Lasso

    • Variable type change: rho parameter changed from scalar to array
    • Modified C++ codes in rehline.h
    • Modified API documentation of plqERM_ElasticNet
  • Add corresponding CI tests

    • Test adaptive weighting with synthetic data
    • Test parameter validation for omega
  • Add Adaptive ElasticNet example

    • Compare adaptive vs standard 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

Add support for adaptive lasso in plqERM_ElasticNet by introducing the omega parameter, which provides feature-specific weight coefficients. This modifies the regularization to apply weighted penalties, enhancing flexibility for feature selection.

variable type change: rho parameter in ReHLine_solver and rehline_internal changed from scalar to array to accommodate adaptive lasso weights.
- 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
@DataboyUsen DataboyUsen merged commit 065450d into main Apr 27, 2026
17 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.

1 participant