I need help separating some horseshoe data
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Please I need help with this horseshoe data. I do not know how to separate it for a shallow neural network I have to do. Thank you.
0 Kommentare
Antworten (1)
Walter Roberson
am 11 Nov. 2023
filename = '1147406HorseShoe.csv';
data = readmatrix(filename);
Nclust = 3;
[G, centers] = kmeans(data, Nclust);
centers
%let us try a visualization
scatter3(data(:,1), data(:,2), data(:,3), [], data(:,5));
hold on
scatter3(centers(:,1), centers(:,2), centers(:,3), 50, 'r', '*');
hold off
min(data)
max(data)
Now you can treat G as the class number for training purposes.
... for whatever good it will do you. Any semi-rational basis for chosing the class can be used since you do not have any information about what it means to "separate" the data.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Pattern Recognition and Classification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!