You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the same time, it would be good to check what the performance difference will be if you want to change this implementation for symmetric. Also, what will happen to the number of memory allocations and total memory used.
functioncos_similarity(tfm::AbstractMatrix)
cs = tfm * tfm'
d =sqrt.(diag(cs))
# prevent division by zero (only occurs for empty documents)
d[findall(iszero, d)] .=1
cs ./ (d * d')
end
No description provided.
The text was updated successfully, but these errors were encountered: