Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In your example, the weights need to add up to 100 to work correctly, right? The issue with the code in the article is that the weights did not add up to 1.


Right, I'm using a percentage. The article's bug reminded me of this directly!




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: