API Reference‎ > ‎

nn_trainer_t::iterator

template< class Net, class Input, class Targetclass nn_trainer_t::iterator

    Trainer Iterator Class


Header


Namespace

  • nu


Type definitions

  • using type_t nn_trainer_t<NetInputTarget>;
  • using cost_func_t = std::function<double(Net&, const Target&)>;
  • using progress_cbk_t = std::function<void(Net&, const Input&, const Target&, size_t)>;

Constructors

  • iterator(const iterator & it) = default;
    Copy constructor
  • iterator(iterator && itnoexcept;
    Move constructor

Assignment operators

  • iteratoroperator=(const iterator & it) = default;
    Assignment operator
    • iterator& operator=(iterator && itnoexcept;
      Move assignment operator

    Public methods

    • size_t get_epoch() const noexcept;
      Return epoch number
    • type_t& operator*() const noexcept;
      De-reference operator
    • type_t* operator->() const noexcept;
      Arrow operator
    • iterator operator++() noexcept;
      Increment operator
    • iterator operator++(int) noexcept; 
      Post increment operator
    • bool operator==(iterator & other) const noexcept;
      Equal-To operator
    • bool operator!=(iterator & other) const noexcept;
      Not-Equal-To operator


    Comments