This repository was archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
BalancedKMeans stuck #684
Copy link
Copy link
Closed
Description
Hello I have the following data and the learning is stuck...
Any Ideas?
Am I using it wrong?
var balancedKMeans = new Accord.MachineLearning.BalancedKMeans(3);
balancedKMeans.MaxIterations = 1;
var matrix = new double[34][];
matrix[0] = new double[] { 1, 1, 26524 };
matrix[1] = new double[] { 1, 1, 87 };
matrix[2] = new double[] { 1, 1, 260 };
matrix[3] = new double[] { 1, 1, 1179 };
matrix[4] = new double[] { 1, 1, 264 };
matrix[5] = new double[] { 1, 1, 227 };
matrix[6] = new double[] { 1, 1, 176 };
matrix[7] = new double[] { 1, 1, 16 };
matrix[8] = new double[] { 1, 1, 995 };
matrix[9] = new double[] { 1, 1, 438 };
matrix[10] = new double[] { 1, 1, 28 };
matrix[11] = new double[] { 1, 1, 957 };
matrix[12] = new double[] { 1, 1, 91 };
matrix[13] = new double[] { 1, 1, 666 };
matrix[14] = new double[] { 1, 1, 1157 };
matrix[15] = new double[] { 1, 1, 968 };
matrix[16] = new double[] { 1, 1, 34 };
matrix[17] = new double[] { 1, 1, 1385 };
matrix[18] = new double[] { 1, 1, 430 };
matrix[19] = new double[] { 1, 1, 1247 };
matrix[20] = new double[] { 1, 1, 1536 };
matrix[21] = new double[] { 1, 1, 1074 };
matrix[22] = new double[] { 1, 1, 1316 };
matrix[23] = new double[] { 1, 1, 217 };
matrix[24] = new double[] { 1, 1, 475 };
matrix[25] = new double[] { 1, 1, 1036 };
matrix[26] = new double[] { 1, 1, 343 };
matrix[27] = new double[] { 1, 1, 987 };
matrix[28] = new double[] { 1, 1, 189 };
matrix[29] = new double[] { 1, 1, 157 };
matrix[30] = new double[] { 1, 1, 903 };
matrix[31] = new double[] { 1, 1, 17 };
matrix[32] = new double[] { 1, 1, 1323 };
matrix[33] = new double[] { 1, 1, 668 };
var learnResult = balancedKMeans.Learn(matrix);//stuck
Console.WriteLine(balancedKMeans.Labels.Count());
Metadata
Metadata
Assignees
Labels
No labels