Commit a6271fa
feat: mean-impute NaN cells in vote matrix before dimensional reduction
Column means of observed values replace any NaN entries so DruidJS
never sees missing data. Falls back to 0 for all-NaN columns.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 109b59a commit a6271fa
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
933 | 946 | | |
934 | 947 | | |
935 | 948 | | |
| |||
0 commit comments