6 #include <raft/core/device_coo_matrix.hpp>
7 #include <raft/core/device_mdspan.hpp>
8 #include <raft/core/resources.hpp>
42 raft::device_matrix_view<float, int, raft::row_major> dataset,
43 raft::device_matrix_view<float, int, raft::col_major> embedding);
47 raft::device_coo_matrix_view<float, int, int, int> connectivity_graph,
48 raft::device_matrix_view<float, int, raft::col_major> embedding);
52 raft::device_vector_view<int, int> rows,
53 raft::device_vector_view<int, int> cols,
54 raft::device_vector_view<float, int> vals,
55 raft::device_matrix_view<float, int, raft::col_major> embedding);
Definition: spectral_embedding.hpp:16
cuvs::preprocessing::spectral_embedding::params to_cuvs(ML::SpectralEmbedding::params &config)
void transform(raft::resources const &handle, ML::SpectralEmbedding::params config, raft::device_matrix_view< float, int, raft::row_major > dataset, raft::device_matrix_view< float, int, raft::col_major > embedding)
Definition: spectral_embedding.hpp:10
Parameters for spectral embedding algorithm.
Definition: spectral_embedding.hpp:21
bool norm_laplacian
Whether to normalize the Laplacian matrix.
Definition: spectral_embedding.hpp:29
int n_neighbors
The number of neighbors to use for the nearest neighbors graph.
Definition: spectral_embedding.hpp:26
bool drop_first
Whether to drop the first eigenvector.
Definition: spectral_embedding.hpp:32
int n_components
The number of components to reduce the data to.
Definition: spectral_embedding.hpp:23
uint64_t seed
Random seed for reproducibility.
Definition: spectral_embedding.hpp:35