Skip to content

Commit 5f0adc5

Browse files
authored
Update adult.jl
1 parent 55fcfd9 commit 5f0adc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/adult.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using DecisionTree
44
run(`wget https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data`);
55
adult = readcsv("adult.data");
66

7-
features = adult[:, 2:14];
7+
features = adult[:, 1:14];
88
labels = adult[:, 15];
99

1010
println("\n##### 3 foldCV Classification Tree #####")
@@ -14,4 +14,3 @@ accuracy = nfoldCV_tree(labels, features, 0.9, 3);
1414
println("\n##### 3 foldCV Classification Forest #####")
1515
accuracy = nfoldCV_forest(labels, features, 2, 10, 3, 0.5);
1616
@test mean(accuracy) > 0.8
17-

0 commit comments

Comments
 (0)