Skip to content

ProgressBar() does not work with L_BFGS #361

@tonideleo

Description

@tonideleo

Issue description

Following the example.cpp, I was playing around with some callbacks functions. For example, I realized if I use the Adam optimizer, the callback function ProgressBar() works without issues; however, it does not work with L_BFGS. In the documentation I did not find any exception use for this callback nor limitation in the section regarding the L_BFGS.

Your environment

  • version of ensmallen: 2.19.0
  • operating system: Windows 10
  • compiler: MS Visual Studio 2022 (ensmallen installed via vcpkg and cmake)
  • version of Armadillo: 11.4.4
  • any other environment information you think is relevant:

Steps to reproduce

In line 64 of the example, substitute the following:
opt.Optimize(lrf, theta, ens::ProgressBar());

Expected behavior

I was expecting to see the progress bar, which by the way it worked if I used a different optimizer.

Actual behavior

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions