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
Thanks for the report!
The cause of the issue is that fs elements are of type Real, not Float64.
The issue itself is in Distances.jl, not in Clustering.jl; in the first colwise() call, to be precise.
There it incorrectly estimates the numeric type of the distance as Int64, not Float64 or Real:
Julia version:
Version 1.11.1 (2024-10-16)
Package version:
Error:
ERROR: InexactError: Int64(1.5143524864540896e6)
Steps to reproduce:
Same error using
kmeans(reshape(fs, 1, length(fs)), 2)
, but works using inline data passing:The text was updated successfully, but these errors were encountered: