We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c76186c commit 00061f4Copy full SHA for 00061f4
1 file changed
include/algorithms/public/SKMeans.hpp
@@ -34,7 +34,7 @@ class SKMeans : public KMeans
34
using namespace _impl;
35
assert(!mTrained || (dataset.pointSize() == mDims && mK == k));
36
MatrixXd dataPoints =
37
- asEigen<Matrix>(dataset.getData()).colwise().normalized();
+ asEigen<Matrix>(dataset.getData()).rowwise().normalized();
38
MatrixXd dataPointsT = dataPoints.transpose();
39
if (mTrained) { mAssignments = assignClusters(dataPointsT);}
40
else
0 commit comments