Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit 0b4af32

Browse files
authored
Fix typos (#6)
1 parent a4cc1bc commit 0b4af32

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

report/assets/hw1-code.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
NUM_FEATURES = [5, 10, 40, 100, 250, 700]
2323

24-
training_accurancy = []
25-
test_accurancy = []
24+
training_accuracy = []
25+
test_accuracy = []
2626

2727
for num_features in NUM_FEATURES:
2828
# Select the features with the greatest information gain (by mutual_info_classif)
@@ -50,18 +50,18 @@
5050
train_acc = metrics.accuracy_score(y_train, y_train_pred)
5151
test_acc = metrics.accuracy_score(y_test, y_test_pred)
5252

53-
training_accurancy.append(train_acc)
54-
test_accurancy.append(test_acc)
53+
training_accuracy.append(train_acc)
54+
test_accuracy.append(test_acc)
5555

5656
plt.plot(
5757
NUM_FEATURES,
58-
training_accurancy,
59-
label="Training Accuraccy",
58+
training_accuracy,
59+
label="Training Accuracy",
6060
marker="+",
6161
color="#4caf50",
6262
)
6363
plt.plot(
64-
NUM_FEATURES, test_accurancy, label="Test Accuraccy", marker=".", color="#ff5722"
64+
NUM_FEATURES, test_accuracy, label="Test Accuracy", marker=".", color="#ff5722"
6565
)
6666

6767
plt.xlabel("Number of Selected Features")

0 commit comments

Comments
 (0)