Skip to content

Commit

Permalink
Improve clarity of KPA tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
breuderink committed May 31, 2021
1 parent 5514d52 commit 324b26d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/kpa_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ TEST test_squared_Euclidean() {
PASS();
}

TEST test_RBF_kernel() {
TEST test_squared_exponential_kernel() {
const float SIGMA[] = {0.1, 1, 100};
for (size_t s = 0; s < sizeof(SIGMA) / sizeof(SIGMA[0]); ++s) {
// Test extrema.
Expand Down Expand Up @@ -124,7 +124,7 @@ TEST test_KPA_regression() {
// Configure PA update.
PA_t PA = {.C = COST[c], .eps = MARGIN[m]};

// Initialize support vectors.
// Re-initialize support vectors. They are modified below.
float X[SUPPORT_VECTORS][FEATURE_DIMS] = {0};
support_vectors = &X;

Expand Down Expand Up @@ -243,7 +243,7 @@ TEST test_BKPA_regression() {

SUITE(KPA_tests) {
RUN_TEST(test_squared_Euclidean);
RUN_TEST(test_RBF_kernel);
RUN_TEST(test_squared_exponential_kernel);
RUN_TEST(test_kernel_projection);
RUN_TEST(test_KPA_regression);
RUN_TEST(test_idle);
Expand Down

0 comments on commit 324b26d

Please sign in to comment.