umappp
A C++ library for UMAP
|
Status of the UMAP optimization iterations. More...
#include <Status.hpp>
Public Member Functions | |
std::size_t | num_dimensions () const |
int | epoch () const |
int | num_epochs () const |
Index_ | num_observations () const |
void | run (Float_ *const embedding, int epoch_limit) |
void | run (Float_ *const embedding) |
Status of the UMAP optimization iterations.
Index_ | Integer type of the neighbor indices. |
Float_ | Floating-point type of the distances. |
Instances of this class should not be constructed directly, but instead returned by initialize()
.
|
inline |
run()
.
|
inline |
|
inline |
run()
. This is typically determined by the value of Options::num_epochs
used in initialize()
.
|
inline |
|
inline |
The status of the algorithm and the coordinates in embedding()
are updated after completing num_epochs()
.
[in,out] | embedding | Pointer to an array containing a column-major matrix where rows are dimensions and columns are observations. On input, this should contain the embeddings at the current epoch (epoch() ), and on output, this should contain the embedding at num_epochs() . Typically, this should be the same array that was used in initialize() . |
|
inline |
The status of the algorithm and the coordinates in embedding()
are updated to the specified number of epochs.
[in,out] | embedding | Pointer to an array containing a column-major matrix where rows are dimensions and columns are observations. On input, this should contain the embeddings at the current epoch (epoch() ), and on output, this should contain the embedding at epoch_limit . Typically, this should be the same array that was used in initialize() . |
epoch_limit | Number of epochs to run to. The actual number of epochs performed is equal to the difference between epoch_limit and epoch() . epoch_limit should be not less than epoch() and be no greater than the maximum number of epochs specified in num_epochs() . |