Skip to content

Commit

Permalink
Merge pull request #330 from zoq/sgd-test-break
Browse files Browse the repository at this point in the history
Accelerate SGD test time by skipping additional trials.
  • Loading branch information
zoq committed Nov 16, 2021
2 parents c493c55 + 025095a commit 525dd6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### ensmallen ?.??.?: "???"
###### ????-??-??
* Accelerate SGD test time
([#330](https://github.com/mlpack/ensmallen/pull/300)).

### ensmallen 2.18.0: "Fairmount Bagel"
###### 2021-10-20
Expand Down
1 change: 1 addition & 0 deletions tests/sgd_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ TEST_CASE("GeneralizedRosenbrockTestFloat", "[SGDTest]")
REQUIRE(result == Approx(0.0).margin(1e-5));
for (size_t j = 0; j < i; ++j)
REQUIRE(coordinates(j) == Approx(1.0).epsilon(1e-3));
break;
}
}
}

0 comments on commit 525dd6d

Please sign in to comment.