Skip to content

Commit 72f0e20

Browse files
Upgrade ensmallen to 2.18.1 (#46)
Co-authored-by: coatless <[email protected]>
1 parent 6dc3149 commit 72f0e20

File tree

6 files changed

+33
-5
lines changed

6 files changed

+33
-5
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2021-11-20 James Balamuta <[email protected]>
2+
3+
* DESCRIPTION (Version): Release 2.18.1
4+
* NEWS.md: Update for Ensmallen release 2.18.1
5+
* inst/include/ensmallen_bits: Upgraded to Ensmallen 2.18.1
6+
* inst/include/ensmallen.hpp: ditto
7+
18
2021-10-22 James Balamuta <[email protected]>
29

310
* DESCRIPTION (Version): Release 2.18.0 and increase RcppArmadillo requirement

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: RcppEnsmallen
22
Title: Header-Only C++ Mathematical Optimization Library for 'Armadillo'
3-
Version: 0.2.18.0.1
3+
Version: 0.2.18.1.1
44
Authors@R: c(
55
person("James Joseph", "Balamuta", email = "[email protected]",
66
role = c("aut", "cre", "cph"),

NEWS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# RcppEnsmallen 0.2.18.1.1
2+
3+
- Upgraded to ensmallen 2.18.1: "Fairmount Bagel" (2021-11-20)
4+
- Accelerate SGD test time
5+
([#330](https://github.com/mlpack/ensmallen/pull/300)).
6+
- Fix potential infinite loop in CMAES
7+
([#331](https://github.com/mlpack/ensmallen/pull/331)).
8+
- Fix SCD partial gradient test
9+
([#332](https://github.com/mlpack/ensmallen/pull/332)).
10+
111
# RcppEnsmallen 0.2.18.0.1
212

313
- Upgraded to ensmallen 2.18.0: "Fairmount Bagel" (2021-10-21)

inst/include/ensmallen_bits/cmaes/cmaes_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ typename MatType::elem_type CMAES<SelectionPolicyType>::Optimize(
159159
// add a small value and try again.
160160
BaseMatType covLower;
161161
while (!arma::chol(covLower, C[idx0], "lower"))
162-
C[idx0].diag() += 1e-16;
162+
C[idx0].diag() += std::numeric_limits<ElemType>::epsilon();
163163

164164
for (size_t j = 0; j < lambda; ++j)
165165
{

inst/include/ensmallen_bits/ens_version.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
// The minor version is two digits so regular numerical comparisons of versions
1717
// work right. The first minor version of a release is always 10.
1818
#define ENS_VERSION_MINOR 18
19-
#define ENS_VERSION_PATCH 0
19+
#define ENS_VERSION_PATCH 1
2020
// If this is a release candidate, it will be reflected in the version name
2121
// (i.e. the version name will be "RC1", "RC2", etc.). Otherwise the version
2222
// name will typically be a seemingly arbitrary set of words that does not
2323
// contain the capitalized string "RC".
2424
#define ENS_VERSION_NAME "Fairmount Bagel"
2525
// Incorporate the date the version was released.
2626
#define ENS_VERSION_YEAR "2021"
27-
#define ENS_VERSION_MONTH "10"
28-
#define ENS_VERSION_DAY "20"
27+
#define ENS_VERSION_MONTH "11"
28+
#define ENS_VERSION_DAY "19"
2929

3030
namespace ens {
3131

tools/HISTORYold.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
### ensmallen 2.18.1: "Fairmount Bagel"
2+
###### 2021-11-19
3+
* Accelerate SGD test time
4+
([#330](https://github.com/mlpack/ensmallen/pull/300)).
5+
6+
* Fix potential infinite loop in CMAES
7+
([#331](https://github.com/mlpack/ensmallen/pull/331)).
8+
9+
* Fix SCD partial gradient test
10+
([#332](https://github.com/mlpack/ensmallen/pull/332)).
11+
112
### ensmallen 2.18.0: "Fairmount Bagel"
213
###### 2021-10-20
314
* Add gradient value clipping and gradient norm scaling callback

0 commit comments

Comments
 (0)