Skip to content

Commit df13388

Browse files
authored
Add files via upload
1 parent b7062c0 commit df13388

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Main.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
load ionosphere.mat;
2525

2626
% Set 20% data as validation set
27-
ho=0.2;
27+
ho = 0.2;
2828
% Hold-out method
29-
HO=cvpartition(label,'HoldOut',ho);
29+
HO = cvpartition(label,'HoldOut',ho);
3030

3131
% Parameter setting
3232
N = 10;
@@ -37,7 +37,7 @@
3737

3838
% Accuracy
3939
Acc = jKNN(sFeat,label,HO);
40-
fprintf('\n Accuracy: %g %%',Acc); fprintf('\n');
40+
fprintf('\n Accuracy: %g %%',Acc);
4141

4242
% Plot convergence curve
4343
plot(1:max_Iter,curve);

0 commit comments

Comments
 (0)