Skip to content

Commit 86adefb

Browse files
Upgrade ensmallen to 2.18.2 (#47)
* Upgrade ensmallen to 2.18.2 * Update URLs Co-authored-by: coatless <[email protected]> Co-authored-by: James Balamuta <[email protected]>
1 parent 72f0e20 commit 86adefb

File tree

8 files changed

+52
-35
lines changed

8 files changed

+52
-35
lines changed

ChangeLog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
2022-02-18 James Balamuta <[email protected]>
2+
3+
* DESCRIPTION: Update URLs
4+
* NEWS.md: ditto
5+
* README.md: ditto
6+
7+
2022-02-18 James Balamuta <[email protected]>
8+
9+
* DESCRIPTION (Version): Release 2.18.2
10+
* NEWS.md: Update for Ensmallen release 2.18.2
11+
* inst/include/ensmallen_bits: Upgraded to Ensmallen 2.18.2
12+
* inst/include/ensmallen.hpp: ditto
13+
114
2021-11-20 James Balamuta <[email protected]>
215

316
* DESCRIPTION (Version): Release 2.18.1

DESCRIPTION

Lines changed: 4 additions & 4 deletions
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.1.1
3+
Version: 0.2.18.2.1
44
Authors@R: c(
55
person("James Joseph", "Balamuta", email = "[email protected]",
66
role = c("aut", "cre", "cph"),
@@ -25,12 +25,12 @@ Description: 'Ensmallen' is a templated C++ mathematical optimization library
2525
'C++11' and 'Armadillo' 9.800 or later.
2626
Depends: R (>= 3.3.0)
2727
License: GPL (>= 2)
28-
URL: https://github.com/coatless/rcppensmallen, https://github.com/mlpack/ensmallen, http://ensmallen.org/
29-
BugReports: https://github.com/coatless/rcppensmallen/issues
28+
URL: https://github.com/coatless-rpkg/rcppensmallen, https://github.com/mlpack/ensmallen, http://ensmallen.org/
29+
BugReports: https://github.com/coatless-rpkg/rcppensmallen/issues
3030
Encoding: UTF-8
3131
LinkingTo: Rcpp, RcppArmadillo (>= 0.9.800.0.0)
3232
Imports: Rcpp
33-
RoxygenNote: 7.1.1
33+
RoxygenNote: 7.1.2
3434
Roxygen: list(markdown = TRUE)
3535
SystemRequirements: C++11
3636
Suggests:

NEWS.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# RcppEnsmallen 0.2.18.2.1
2+
3+
- Upgraded to ensmallen 2.18.2: "Fairmount Bagel" (2022-02-14)
4+
- Update Catch2 to 2.13.8
5+
([#336](https://github.com/mlpack/ensmallen/pull/336)).
6+
- Fix epoch timing output
7+
([#337](https://github.com/mlpack/ensmallen/pull/337)).
8+
- Update _R_ package URLs.
9+
110
# RcppEnsmallen 0.2.18.1.1
211

312
- Upgraded to ensmallen 2.18.1: "Fairmount Bagel" (2021-11-20)
@@ -24,7 +33,7 @@
2433
- Fix MOEAD test stability
2534
(mlpack/ensmallen#327).
2635
- Update GitHub Actions to the standard `r-lib/actions` configuration.
27-
([#45](https://github.com/coatless/rcppensmallen/pull/45))
36+
([#45](https://github.com/coatless-rpkg/rcppensmallen/pull/45))
2837

2938
# RcppEnsmallen 0.2.17.0.1
3039

@@ -126,10 +135,10 @@
126135
- Clarify and fix documentation for constrained optimizers (mlpack/ensmallen#201).
127136
- Fix L-BFGS convergence when starting from a minimum (mlpack/ensmallen#201).
128137
- Switch GitHub Actions to use reference tags to always be up-to-date with
129-
CRAN's check grid (`oldrel`, `release`, `devel`). ([#29](https://github.com/coatless/rcppensmallen/pull/29),
130-
[#32](https://github.com/coatless/rcppensmallen/pull/32))
138+
CRAN's check grid (`oldrel`, `release`, `devel`). ([#29](https://github.com/coatless-rpkg/rcppensmallen/pull/29),
139+
[#32](https://github.com/coatless-rpkg/rcppensmallen/pull/32))
131140
- Added a GitHub Action to automatically create a PR with the new version of
132-
Ensmallen when a new release is detected. ([#30](https://github.com/coatless/rcppensmallen/pull/30), [#33](https://github.com/coatless/rcppensmallen/pull/33))
141+
Ensmallen when a new release is detected. ([#30](https://github.com/coatless-rpkg/rcppensmallen/pull/30), [#33](https://github.com/coatless-rpkg/rcppensmallen/pull/33))
133142

134143
# RcppEnsmallen 0.2.13.0.1
135144

@@ -189,8 +198,8 @@
189198
(mlpack/ensmallen#141).
190199
- Make code samples collapsible in the documentation.
191200
(mlpack/ensmallen#140).
192-
- Switched deployment from TravisCI to GitHub Actions. ([#17](https://github.com/coatless/rcppensmallen/pull/17), [#22](https://github.com/coatless/rcppensmallen/pull/22))
193-
- Removed check on header file inclusion ([#21](https://github.com/coatless/rcppensmallen/pull/21))
201+
- Switched deployment from TravisCI to GitHub Actions. ([#17](https://github.com/coatless-rpkg/rcppensmallen/pull/17), [#22](https://github.com/coatless-rpkg/rcppensmallen/pull/22))
202+
- Removed check on header file inclusion ([#21](https://github.com/coatless-rpkg/rcppensmallen/pull/21))
194203

195204
# RcppEnsmallen 0.2.10.3.1
196205

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# RcppEnsmallen
22

33
<!-- badges: start -->
4-
[![R build status](https://github.com/coatless/rcppensmallen/workflows/R-CMD-check/badge.svg)](https://github.com/coatless/rcppensmallen/actions)
4+
[![R build status](https://github.com/coatless-rpkg/rcppensmallen/workflows/R-CMD-check/badge.svg)](https://github.com/coatless-rpkg/rcppensmallen/actions)
55
[![License](https://eddelbuettel.github.io/badges/GPL2+.svg)](https://www.gnu.org/licenses/gpl-2.0.html)
66
[![CRAN](https://www.r-pkg.org/badges/version/RcppEnsmallen)](https://cran.r-project.org/package=RcppEnsmallen)
77
[![Downloads](https://cranlogs.r-pkg.org/badges/RcppEnsmallen?color=brightgreen)](https://www.r-pkg.org/pkg/RcppEnsmallen)

inst/include/ensmallen_bits/callbacks/progress_bar.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ class ProgressBar
216216
output << ".";
217217
}
218218
}
219-
220-
const size_t stepTime = epochTimer.toc() / (double) epochSize * 1000;
221-
output << "] " << progress << "% - " << (size_t) epochTimer.toc() % 60
222-
<< "s " << stepTime << "ms/step " << "- loss: " << objective << "\n";
219+
const double epochTimerElapsed = epochTimer.toc();
220+
const size_t stepTime = epochTimerElapsed / (double) epochSize * 1000;
221+
output << "] " << progress << "% - " << epochTimerElapsed
222+
<< "s/epoch; " << stepTime << "ms/step; loss: " << objective << "\n";
223223
output.flush();
224224
}
225225

inst/include/ensmallen_bits/ens_version.hpp

Lines changed: 4 additions & 4 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 1
19+
#define ENS_VERSION_PATCH 2
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.
26-
#define ENS_VERSION_YEAR "2021"
27-
#define ENS_VERSION_MONTH "11"
28-
#define ENS_VERSION_DAY "19"
26+
#define ENS_VERSION_YEAR "2022"
27+
#define ENS_VERSION_MONTH "02"
28+
#define ENS_VERSION_DAY "13"
2929

3030
namespace ens {
3131

man/RcppEnsmallen-package.Rd

Lines changed: 3 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/HISTORYold.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### ensmallen 2.18.2: "Fairmount Bagel"
2+
###### 2022-02-13
3+
* Update Catch2 to 2.13.8
4+
([#336](https://github.com/mlpack/ensmallen/pull/336)).
5+
6+
* Fix epoch timing output
7+
([#337](https://github.com/mlpack/ensmallen/pull/337)).
8+
19
### ensmallen 2.18.1: "Fairmount Bagel"
210
###### 2021-11-19
311
* Accelerate SGD test time

0 commit comments

Comments
 (0)