Skip to content

Commit

Permalink
Update L2SVMTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaybit0 committed Sep 2, 2024
1 parent d85363e commit cb44f7a
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/test/java/org/apache/sysds/test/applications/L2SVMTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,16 @@ public void setUp() {
}

@Test
public void testL2SVM()
public void testL2SVM1() {
testL2SVM(true);
}

@Test
public void testL2SVM2() {
testL2SVM(false);
}

private void testL2SVM(boolean ngrams)
{
System.out.println("------------ BEGIN " + TEST_NAME
+ " TEST WITH {" + numRecords + ", " + numFeatures
Expand All @@ -83,9 +92,11 @@ public void testL2SVM()

List<String> proArgs = new ArrayList<>();
proArgs.add("-stats");
proArgs.add("-ngrams");
proArgs.add("3,2");
proArgs.add("10");
if (ngrams) {
proArgs.add("-ngrams");
proArgs.add("3,2");
proArgs.add("10");
}
proArgs.add("-nvargs");
proArgs.add("X=" + input("X"));
proArgs.add("Y=" + input("Y"));
Expand Down

0 comments on commit cb44f7a

Please # to comment.