forked fromdipanjanS/text-analytics-with-python
- Notifications
You must be signed in to change notification settings - Fork0
Commite0b091e
Martijn van Beers
Do the dot-product on the sparse matrix
When you have a large corpus, first making the matrix dense takes a lot ofmemory. Doing the dot product first and then expanding the result ismore memory-efficient and still gives the same result1 parent3a95063 commite0b091e
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments
Comments
(0)