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
on my Computer the following code throws an error, on other computers it works fine, probably due to some floating point inaccuracies:
using MultivariateStats
using RDatasets
data =convert(Matrix{Float64},dataset("datasets", "iris")[:,1:4])'
m =mean(data,2)
sd =std(data,2)
data2 = Float64[ (data[i,j] - m[i]) / sd[i] for i in1:size(data,1), j in1:size(data,2) ]
dataPCA =fit(PCA,data2,pratio =1.0)
ERROR: ArgumentError: principal variance cannot exceed total variance.
The text was updated successfully, but these errors were encountered:
on my Computer the following code throws an error, on other computers it works fine, probably due to some floating point inaccuracies:
ERROR: ArgumentError: principal variance cannot exceed total variance.
The text was updated successfully, but these errors were encountered: