Skip to content

Fix COBRA expression type check and alpha docs#387

Merged
katehoffshutta merged 5 commits into
netZoo:develfrom
marouenbg:fix/cobra-doc-and-expression
Jun 12, 2026
Merged

Fix COBRA expression type check and alpha docs#387
katehoffshutta merged 5 commits into
netZoo:develfrom
marouenbg:fix/cobra-doc-and-expression

Conversation

@marouenbg

Copy link
Copy Markdown
Contributor

Summary

  • fix the expression input type check in cobra to validate expression instead of X
  • clarify that alpha defaults to 0.1
  • note that alpha can be tuned with cross-validation

Validation

  • source .venv/bin/activate && python -m pytest tests/test_cobra.py -v --tb=short

marouenbg and others added 5 commits April 21, 2026 14:09
The previous nnls/nnlasso implementation regressed diag(d) on X, which
solves a different problem than MLE. Using n*(G^T Q)^2 as the target
makes nnls/nnlasso proper non-negativity-constrained versions of the
MLE estimator (ensuring a PSD psi). Also simplify MLE to its closed form.
Removed redundant comment about nnls/nnlasso formulation.
@marouenbg

Copy link
Copy Markdown
Contributor Author

Ola @katehoffshutta , would you mind merging this into devel please? Thanks

@katehoffshutta katehoffshutta merged commit e807ff6 into netZoo:devel Jun 12, 2026
8 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