EleutherAI / concept-erasure

Erasing concepts from neural representations with provable guarantees
MIT License
208 stars 15 forks source link

Fix shrinkage when covariance matrix is zero #3

Closed norabelrose closed 1 year ago

norabelrose commented 1 year ago

Adds machine epsilon before division inside optimal_linear_shrinkage