#include <hdbscan.hpp>
Public Member Functions | |
PredictionData (const raft::handle_t &handle_, value_idx m, value_idx n, value_t *core_dists_) | |
value_idx | get_n_exemplars () |
value_idx | get_n_selected_clusters () |
value_idx * | get_exemplar_idx () |
value_idx * | get_exemplar_label_offsets () |
value_idx * | get_selected_clusters () |
value_t * | get_deaths () |
value_t * | get_core_dists () |
value_idx * | get_index_into_children () |
void | allocate (const raft::handle_t &handle, value_idx n_exemplars_, value_idx n_selected_clusters_, value_idx n_edges_) |
void | set_n_clusters (const raft::handle_t &handle, value_idx n_clusters_) |
Public Attributes | |
size_t | n_rows |
size_t | n_cols |
Container object for computing and storing intermediate information needed later for computing membership vectors and approximate predict. Users are only expected to create an instance of this object, the hdbscan method will do the rest.
value_idx | |
value_t |
|
inline |
void ML::HDBSCAN::Common::PredictionData< value_idx, value_t >::allocate | ( | const raft::handle_t & | handle, |
value_idx | n_exemplars_, | ||
value_idx | n_selected_clusters_, | ||
value_idx | n_edges_ | ||
) |
Resizes the buffers in the PredictionData object.
[in] | handle | raft handle for resource reuse |
[in] | n_exemplars_ | number of exemplar points |
[in] | n_selected_clusters_ | number of selected clusters in the final clustering |
[in] | n_edges_ | number of edges in the condensed hierarchy |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Resize buffers for cluster deaths to n_clusters
handle | raft handle for ordering cuda operations |
n_clusters_ | number of clusters |
size_t ML::HDBSCAN::Common::PredictionData< value_idx, value_t >::n_cols |
size_t ML::HDBSCAN::Common::PredictionData< value_idx, value_t >::n_rows |