|
kodama-cpp
Standalone float32 KODAMA kernels for CPU, CUDA, and Apple Metal
|
Namespaces | |
| namespace | detail |
Enumerations | |
| enum class | Backend { Auto , CPU , CUDA , Metal } |
| enum class | DistanceMetric { Cosine , InnerProduct , Euclidean } |
| enum class | KNNIndexType { PrecomputedGraph , NativeHNSW , CudaExact , CudaIVFFlat , MetalExact , MetalIVFFlat } |
| enum class | PLSMode { PLS_DA , PLS_LDA } |
| enum class | CoreClassifier { PLS_LDA , KNN } |
| enum class | GraphWeightType { SNN , Distance , Adaptive , Binary } |
| enum class | GraphFeatureMode { LaplacianSelfTuning } |
| enum class | SpatialCoordinateMode { Standard , Population } |
| enum class | UMAPGraphMode { Binary , Fuzzy } |
| enum class | MatrixValueType { Float64 , Float32 } |
| enum class | GraphIndexBase { Auto , Zero , One } |
| enum class | NormalizationMethod { PQN , Sum , Median , Sqrt , None } |
| enum class | ScalingMethod { None , Centering , Autoscaling , RangeScaling , ParetoScaling } |
Functions | |
| KNNCVResult | KNNCV (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const KNNOptions &options=KNNOptions()) |
| KNNCVResult | KNNCV_CPU (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const KNNOptions &options=KNNOptions()) |
| KNNCVResult | KNNCV_CUDA (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const KNNOptions &options=KNNOptions()) |
| KNNCVResult | KNNCV_METAL (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const KNNOptions &options=KNNOptions()) |
| PLSCVResult | PLSDACV (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const PLSOptions &options=PLSOptions()) |
| PLSCVResult | PLSLDACV (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const PLSOptions &options=PLSOptions()) |
| PLSCVResult | PLSDACV_CPU (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const PLSOptions &options=PLSOptions()) |
| PLSCVResult | PLSLDACV_CPU (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const PLSOptions &options=PLSOptions()) |
| PLSCVResult | PLSDACV_CUDA (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const PLSOptions &options=PLSOptions()) |
| PLSCVResult | PLSLDACV_CUDA (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const PLSOptions &options=PLSOptions()) |
| PLSCVResult | PLSLDACV_METAL (MatrixView x, const std::vector< int > &labels, const std::vector< int > &constrain, const PLSOptions &options=PLSOptions()) |
| std::vector< int > | PLSLDAPredict_CPU (MatrixView train, const std::vector< int > &labels, MatrixView test, const PLSOptions &options=PLSOptions()) |
| std::vector< int > | PLSLDAPredict_CUDA (MatrixView train, const std::vector< int > &labels, MatrixView test, const PLSOptions &options=PLSOptions()) |
| std::vector< int > | PLSLDAPredict_METAL (MatrixView train, const std::vector< int > &labels, MatrixView test, const PLSOptions &options=PLSOptions()) |
| std::vector< int > | PLSLDAPredict (MatrixView train, const std::vector< int > &labels, MatrixView test, const PLSOptions &options=PLSOptions()) |
| CoreResult | core_cpp (MatrixView x, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| CoreResult | CorePLSLDA (MatrixView x, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| CoreResult | CoreKNN (MatrixView x, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| CoreResult | CorePLSLDA_CPU (MatrixView x, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| CoreResult | CoreKNN_CPU (MatrixView x, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| CoreResult | CorePLSLDA_CUDA (MatrixView x, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| CoreResult | CoreKNN_CUDA (MatrixView x, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| CoreResult | CorePLSLDA_METAL (MatrixView x, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| CoreResult | CoreKNN_METAL (MatrixView x, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| CoreResult | CoreKNNGraph_CPU (const NeighborGraph &graph, int samples, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| CoreResult | CoreKNNGraph_CUDA (const NeighborGraph &graph, int samples, const std::vector< int > &initial_clbest, const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const CoreOptions &options=CoreOptions()) |
| CoreResult | CoreKNNGraph_METAL (const NeighborGraph &graph, int samples, const std::vector< int > &initial_clbest, const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const CoreOptions &options=CoreOptions()) |
| CoreResult | Core (MatrixView x, const std::vector< int > &clbest, const std::vector< int > &constrain, const std::vector< int > &fixed, const CoreOptions &options=CoreOptions()) |
| KODAMAMatrixResult | KODAMAMatrix_CPU (MatrixView x, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrix_CUDA (MatrixView x, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrix_METAL (MatrixView x, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrix (MatrixView x, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAGraphResult | KODAMAGraph_CPU (MatrixView x, const KODAMAGraphOptions &options=KODAMAGraphOptions()) |
| KODAMAGraphResult | KODAMAGraph_CPU (MatrixView x, MatrixView spatial, const KODAMAGraphOptions &options=KODAMAGraphOptions()) |
| KODAMAGraphResult | KODAMAGraph_CUDA (MatrixView x, const KODAMAGraphOptions &options=KODAMAGraphOptions()) |
| KODAMAGraphResult | KODAMAGraph_CUDA (MatrixView x, MatrixView spatial, const KODAMAGraphOptions &options=KODAMAGraphOptions()) |
| KODAMAGraphResult | KODAMAGraph_METAL (MatrixView x, const KODAMAGraphOptions &options=KODAMAGraphOptions()) |
| KODAMAGraphResult | KODAMAGraph_METAL (MatrixView x, MatrixView spatial, const KODAMAGraphOptions &options=KODAMAGraphOptions()) |
| KODAMAGraphResult | KODAMAGraph (MatrixView x, const KODAMAGraphOptions &options=KODAMAGraphOptions()) |
| std::vector< float > | KODAMASeparateSpatialSamples (const std::vector< float > &spatial, int rows, int columns, const std::vector< int > &samples) |
| NeighborGraph | KODAMAGraphMaterialize (const KODAMAGraphResult &graph) |
| KODAMAGraphResult | KODAMAGraph (MatrixView x, MatrixView spatial, const KODAMAGraphOptions &options=KODAMAGraphOptions()) |
| KODAMAMatrixResult | KODAMAMatrix (MatrixView x, const KODAMAGraphResult &graph, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrix (const KODAMAGraphResult &graph, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| void | KODAMADissimilarityInPlace (NeighborGraph &graph, const std::vector< int > &run_labels, int runs, int samples, Backend backend=Backend::CPU, int n_threads=1, int gpu_device=0) |
| std::vector< float > | KODAMAGraphFeatures_CPU (const NeighborGraph &graph, int samples, const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrixFromGraph_CPU (const NeighborGraph &graph, int samples, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrixFromGraphData_CPU (MatrixView x, const NeighborGraph &graph, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrixFromGraphData_CUDA (MatrixView x, const NeighborGraph &graph, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrixFromGraphData_METAL (MatrixView x, const NeighborGraph &graph, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrixFromGraphData (MatrixView x, const NeighborGraph &graph, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrixFromGraph_CUDA (const NeighborGraph &graph, int samples, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrixFromGraph_METAL (const NeighborGraph &graph, int samples, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| KODAMAMatrixResult | KODAMAMatrixFromGraph (const NeighborGraph &graph, int samples, const std::vector< int > &starting_labels=std::vector< int >(), const std::vector< int > &constrain=std::vector< int >(), const std::vector< int > &fixed=std::vector< int >(), const KODAMAMatrixOptions &options=KODAMAMatrixOptions()) |
| EmbeddingResult | KODAMAUMAP_CUDA (const NeighborGraph &graph, const UMAPOptions &options=UMAPOptions()) |
| EmbeddingResult | KODAMAUMAP_CUDA (const NeighborGraph &graph, MatrixView raw_data, const UMAPOptions &options=UMAPOptions()) |
| EmbeddingResult | KODAMAUMAP_CPU (const NeighborGraph &graph, const UMAPOptions &options=UMAPOptions()) |
| EmbeddingResult | KODAMAUMAP_METAL (const NeighborGraph &graph, const UMAPOptions &options=UMAPOptions()) |
| EmbeddingResult | KODAMAUMAP_METAL (const NeighborGraph &graph, MatrixView raw_data, const UMAPOptions &options=UMAPOptions()) |
| EmbeddingResult | KODAMAUMAP_CPU (const NeighborGraph &graph, MatrixView raw_data, const UMAPOptions &options=UMAPOptions()) |
| EmbeddingResult | KODAMAOpenTSNE_CUDA (const NeighborGraph &graph, const OpenTSNEOptions &options=OpenTSNEOptions()) |
| EmbeddingResult | KODAMAOpenTSNE_CUDA (const NeighborGraph &graph, MatrixView raw_data, const OpenTSNEOptions &options=OpenTSNEOptions()) |
| EmbeddingResult | KODAMAOpenTSNE_CPU (const NeighborGraph &graph, const OpenTSNEOptions &options=OpenTSNEOptions()) |
| EmbeddingResult | KODAMAOpenTSNE_CPU (const NeighborGraph &graph, MatrixView raw_data, const OpenTSNEOptions &options=OpenTSNEOptions()) |
| EmbeddingResult | KODAMAOpenTSNE_METAL (const NeighborGraph &graph, const OpenTSNEOptions &options=OpenTSNEOptions()) |
| EmbeddingResult | KODAMAOpenTSNE_METAL (const NeighborGraph &graph, MatrixView raw_data, const OpenTSNEOptions &options=OpenTSNEOptions()) |
| VisualizationInitResult | KODAMAVisualizationPCAInit (MatrixView raw_data, const VisualizationInitOptions &options=VisualizationInitOptions()) |
| PCAResult | PCA (MatrixView x, const PCAOptions &options=PCAOptions()) |
| PCAResult | PCA_CPU (MatrixView x, const PCAOptions &options=PCAOptions()) |
| PCAResult | PCA_CUDA (MatrixView x, const PCAOptions &options=PCAOptions()) |
| PCAResult | PCA_METAL (MatrixView x, const PCAOptions &options=PCAOptions()) |
| PCAResult | RSVD (MatrixView x, const PCAOptions &options=PCAOptions()) |
| PLSFitResult | PLS (MatrixView x, MatrixView y, const PLSOptions &options=PLSOptions()) |
| PLSFitResult | PLS_CPU (MatrixView x, MatrixView y, const PLSOptions &options=PLSOptions()) |
| PLSFitResult | PLS_CUDA (MatrixView x, MatrixView y, const PLSOptions &options=PLSOptions()) |
| PLSFitResult | PLS_METAL (MatrixView x, MatrixView y, const PLSOptions &options=PLSOptions()) |
| NormalizationResult | Normalization (MatrixView train, MatrixView test=MatrixView(), const NormalizationOptions &options=NormalizationOptions()) |
| NormalizationResult | Normalization (MatrixView train, const NormalizationOptions &options) |
| NormalizationResult | Normalization_CPU (MatrixView train, MatrixView test=MatrixView(), const NormalizationOptions &options=NormalizationOptions()) |
| NormalizationResult | Normalization_CPU (MatrixView train, const NormalizationOptions &options) |
| NormalizationResult | Normalization_CUDA (MatrixView train, MatrixView test=MatrixView(), const NormalizationOptions &options=NormalizationOptions()) |
| NormalizationResult | Normalization_CUDA (MatrixView train, const NormalizationOptions &options) |
| NormalizationResult | Normalization_METAL (MatrixView train, MatrixView test=MatrixView(), const NormalizationOptions &options=NormalizationOptions()) |
| NormalizationResult | Normalization_METAL (MatrixView train, const NormalizationOptions &options) |
| ScalingResult | Scaling (MatrixView train, MatrixView test=MatrixView(), const ScalingOptions &options=ScalingOptions()) |
| ScalingResult | Scaling (MatrixView train, const ScalingOptions &options) |
| ScalingResult | Scaling_CPU (MatrixView train, MatrixView test=MatrixView(), const ScalingOptions &options=ScalingOptions()) |
| ScalingResult | Scaling_CPU (MatrixView train, const ScalingOptions &options) |
| ScalingResult | Scaling_CUDA (MatrixView train, MatrixView test=MatrixView(), const ScalingOptions &options=ScalingOptions()) |
| ScalingResult | Scaling_CUDA (MatrixView train, const ScalingOptions &options) |
| ScalingResult | Scaling_METAL (MatrixView train, MatrixView test=MatrixView(), const ScalingOptions &options=ScalingOptions()) |
| ScalingResult | Scaling_METAL (MatrixView train, const ScalingOptions &options) |
| PassingMessageResult | PassingMessage (MatrixView data, MatrixView spatial, const std::vector< int > &samples={}, const PassingMessageOptions &options=PassingMessageOptions()) |
| PassingMessageResult | PassingMessage_CPU (MatrixView data, MatrixView spatial, const std::vector< int > &samples={}, const PassingMessageOptions &options=PassingMessageOptions()) |
| PassingMessageResult | PassingMessage_CUDA (MatrixView data, MatrixView spatial, const std::vector< int > &samples={}, const PassingMessageOptions &options=PassingMessageOptions()) |
| PassingMessageResult | PassingMessage_METAL (MatrixView data, MatrixView spatial, const std::vector< int > &samples={}, const PassingMessageOptions &options=PassingMessageOptions()) |
| SpatialFeatureResult | SpatialFeatureSelection (MatrixView data, MatrixView spatial, const std::vector< int > &samples={}, const SpatialFeatureOptions &options=SpatialFeatureOptions()) |
| SpatialFeatureResult | SpatialFeatureSelection_CPU (MatrixView data, MatrixView spatial, const std::vector< int > &samples={}, const SpatialFeatureOptions &options=SpatialFeatureOptions()) |
| NeighborGraph | KODAMAKNNGraph_CPU (MatrixView x, const GraphClusterOptions &options=GraphClusterOptions()) |
| NeighborGraph | KODAMAKNNGraph_CUDA (MatrixView x, const GraphClusterOptions &options=GraphClusterOptions()) |
| NeighborGraph | KODAMAKNNGraph_METAL (MatrixView x, const GraphClusterOptions &options=GraphClusterOptions()) |
| NeighborGraph | KODAMAKNNGraph (MatrixView x, const GraphClusterOptions &options=GraphClusterOptions()) |
| ResidentIVFIndex | BuildResidentIVFIndex (MatrixView train, const KNNOptions &options=KNNOptions()) |
| NeighborGraph | SearchResidentIVFIndex (const ResidentIVFIndex &index, MatrixView query, int k, ResidentIVFSearchStats *stats=nullptr) |
| NeighborGraph | SearchResidentIVFIndexSelf (const ResidentIVFIndex &index, int k, bool exclude_self=true, ResidentIVFSearchStats *stats=nullptr) |
| GraphClusterResult | KODAMAGraphCluster_CPU (const NeighborGraph &graph, int samples, const GraphClusterOptions &options=GraphClusterOptions()) |
| GraphClusterResult | KODAMAGraphCluster (const NeighborGraph &graph, int samples, const GraphClusterOptions &options=GraphClusterOptions()) |
| GraphClusterResult | KODAMAEmbeddingGraphCluster (MatrixView embedding, const NeighborGraph &graph, const GraphClusterOptions &options=GraphClusterOptions()) |
| GraphClusterResult | KODAMAEmbeddingCluster (MatrixView embedding, const GraphClusterOptions &options=GraphClusterOptions()) |
| const char * | to_string (Backend backend) |
| const char * | to_string (DistanceMetric metric) |
| const char * | to_string (KNNIndexType index_type) |
| const char * | to_string (PLSMode mode) |
| const char * | to_string (CoreClassifier classifier) |
| const char * | to_string (GraphWeightType weight_type) |
| const char * | to_string (GraphFeatureMode mode) |
| bool | MetalAvailable () |
Variables | |
| constexpr int | version_major = KODAMA_VERSION_MAJOR |
| constexpr int | version_minor = KODAMA_VERSION_MINOR |
| constexpr int | version_patch = KODAMA_VERSION_PATCH |
| constexpr const char * | version_string = KODAMA_VERSION_STRING |
|
strong |
| Enumerator | |
|---|---|
| Auto | |
| CPU | |
| CUDA | |
| Metal | |
Definition at line 20 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| PLS_LDA | |
| KNN | |
Definition at line 47 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| Cosine | |
| InnerProduct | |
| Euclidean | |
Definition at line 27 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| LaplacianSelfTuning | |
Definition at line 73 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| Auto | |
| Zero | |
| One | |
Definition at line 92 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| SNN | |
| Distance | |
| Adaptive | |
| Binary | |
Definition at line 66 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| PrecomputedGraph | |
| NativeHNSW | |
| CudaExact | |
| CudaIVFFlat | |
| MetalExact | |
| MetalIVFFlat | |
Definition at line 33 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| Float64 | |
| Float32 | |
Definition at line 87 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| PQN | |
| Sum | |
| Median | |
| Sqrt | |
| None | |
Definition at line 98 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| PLS_DA | |
| PLS_LDA | |
Definition at line 42 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| None | |
| Centering | |
| Autoscaling | |
| RangeScaling | |
| ParetoScaling | |
Definition at line 106 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| Standard | |
| Population | |
Definition at line 77 of file kodama.hpp.
|
strong |
| Enumerator | |
|---|---|
| Binary | |
| Fuzzy | |
Definition at line 82 of file kodama.hpp.
| ResidentIVFIndex kodama::BuildResidentIVFIndex | ( | MatrixView | train, |
| const KNNOptions & | options = KNNOptions() |
||
| ) |
| CoreResult kodama::Core | ( | MatrixView | x, |
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::core_cpp | ( | MatrixView | x, |
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CoreKNN | ( | MatrixView | x, |
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CoreKNN_CPU | ( | MatrixView | x, |
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CoreKNN_CUDA | ( | MatrixView | x, |
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CoreKNN_METAL | ( | MatrixView | x, |
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CoreKNNGraph_CPU | ( | const NeighborGraph & | graph, |
| int | samples, | ||
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CoreKNNGraph_CUDA | ( | const NeighborGraph & | graph, |
| int | samples, | ||
| const std::vector< int > & | initial_clbest, | ||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CoreKNNGraph_METAL | ( | const NeighborGraph & | graph, |
| int | samples, | ||
| const std::vector< int > & | initial_clbest, | ||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CorePLSLDA | ( | MatrixView | x, |
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CorePLSLDA_CPU | ( | MatrixView | x, |
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CorePLSLDA_CUDA | ( | MatrixView | x, |
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| CoreResult kodama::CorePLSLDA_METAL | ( | MatrixView | x, |
| const std::vector< int > & | clbest, | ||
| const std::vector< int > & | constrain, | ||
| const std::vector< int > & | fixed, | ||
| const CoreOptions & | options = CoreOptions() |
||
| ) |
| KNNCVResult kodama::KNNCV | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const KNNOptions & | options = KNNOptions() |
||
| ) |
| KNNCVResult kodama::KNNCV_CPU | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const KNNOptions & | options = KNNOptions() |
||
| ) |
| KNNCVResult kodama::KNNCV_CUDA | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const KNNOptions & | options = KNNOptions() |
||
| ) |
| KNNCVResult kodama::KNNCV_METAL | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const KNNOptions & | options = KNNOptions() |
||
| ) |
| void kodama::KODAMADissimilarityInPlace | ( | NeighborGraph & | graph, |
| const std::vector< int > & | run_labels, | ||
| int | runs, | ||
| int | samples, | ||
| Backend | backend = Backend::CPU, |
||
| int | n_threads = 1, |
||
| int | gpu_device = 0 |
||
| ) |
Apply the KODAMA ensemble-agreement distance correction to a public, one-based neighbor graph without allocating another graph.
KODAMAMatrix(..., apply_kodama_dissimilarity=false) returns the retained base graph. This function supports lazy correction of that graph when it is actually needed for visualization.
| GraphClusterResult kodama::KODAMAEmbeddingCluster | ( | MatrixView | embedding, |
| const GraphClusterOptions & | options = GraphClusterOptions() |
||
| ) |
| GraphClusterResult kodama::KODAMAEmbeddingGraphCluster | ( | MatrixView | embedding, |
| const NeighborGraph & | graph, | ||
| const GraphClusterOptions & | options = GraphClusterOptions() |
||
| ) |
| KODAMAGraphResult kodama::KODAMAGraph | ( | MatrixView | x, |
| const KODAMAGraphOptions & | options = KODAMAGraphOptions() |
||
| ) |
| KODAMAGraphResult kodama::KODAMAGraph | ( | MatrixView | x, |
| MatrixView | spatial, | ||
| const KODAMAGraphOptions & | options = KODAMAGraphOptions() |
||
| ) |
| KODAMAGraphResult kodama::KODAMAGraph_CPU | ( | MatrixView | x, |
| const KODAMAGraphOptions & | options = KODAMAGraphOptions() |
||
| ) |
| KODAMAGraphResult kodama::KODAMAGraph_CPU | ( | MatrixView | x, |
| MatrixView | spatial, | ||
| const KODAMAGraphOptions & | options = KODAMAGraphOptions() |
||
| ) |
| KODAMAGraphResult kodama::KODAMAGraph_CUDA | ( | MatrixView | x, |
| const KODAMAGraphOptions & | options = KODAMAGraphOptions() |
||
| ) |
| KODAMAGraphResult kodama::KODAMAGraph_CUDA | ( | MatrixView | x, |
| MatrixView | spatial, | ||
| const KODAMAGraphOptions & | options = KODAMAGraphOptions() |
||
| ) |
| KODAMAGraphResult kodama::KODAMAGraph_METAL | ( | MatrixView | x, |
| const KODAMAGraphOptions & | options = KODAMAGraphOptions() |
||
| ) |
| KODAMAGraphResult kodama::KODAMAGraph_METAL | ( | MatrixView | x, |
| MatrixView | spatial, | ||
| const KODAMAGraphOptions & | options = KODAMAGraphOptions() |
||
| ) |
| GraphClusterResult kodama::KODAMAGraphCluster | ( | const NeighborGraph & | graph, |
| int | samples, | ||
| const GraphClusterOptions & | options = GraphClusterOptions() |
||
| ) |
| GraphClusterResult kodama::KODAMAGraphCluster_CPU | ( | const NeighborGraph & | graph, |
| int | samples, | ||
| const GraphClusterOptions & | options = GraphClusterOptions() |
||
| ) |
| std::vector< float > kodama::KODAMAGraphFeatures_CPU | ( | const NeighborGraph & | graph, |
| int | samples, | ||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| NeighborGraph kodama::KODAMAGraphMaterialize | ( | const KODAMAGraphResult & | graph | ) |
Materialize a handle-backed graph as one-based host arrays on demand.
| NeighborGraph kodama::KODAMAKNNGraph | ( | MatrixView | x, |
| const GraphClusterOptions & | options = GraphClusterOptions() |
||
| ) |
| NeighborGraph kodama::KODAMAKNNGraph_CPU | ( | MatrixView | x, |
| const GraphClusterOptions & | options = GraphClusterOptions() |
||
| ) |
| NeighborGraph kodama::KODAMAKNNGraph_CUDA | ( | MatrixView | x, |
| const GraphClusterOptions & | options = GraphClusterOptions() |
||
| ) |
| NeighborGraph kodama::KODAMAKNNGraph_METAL | ( | MatrixView | x, |
| const GraphClusterOptions & | options = GraphClusterOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrix | ( | const KODAMAGraphResult & | graph, |
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrix | ( | MatrixView | x, |
| const KODAMAGraphResult & | graph, | ||
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrix | ( | MatrixView | x, |
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrix_CPU | ( | MatrixView | x, |
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrix_CUDA | ( | MatrixView | x, |
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrix_METAL | ( | MatrixView | x, |
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrixFromGraph | ( | const NeighborGraph & | graph, |
| int | samples, | ||
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrixFromGraph_CPU | ( | const NeighborGraph & | graph, |
| int | samples, | ||
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrixFromGraph_CUDA | ( | const NeighborGraph & | graph, |
| int | samples, | ||
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrixFromGraph_METAL | ( | const NeighborGraph & | graph, |
| int | samples, | ||
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrixFromGraphData | ( | MatrixView | x, |
| const NeighborGraph & | graph, | ||
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrixFromGraphData_CPU | ( | MatrixView | x, |
| const NeighborGraph & | graph, | ||
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrixFromGraphData_CUDA | ( | MatrixView | x, |
| const NeighborGraph & | graph, | ||
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| KODAMAMatrixResult kodama::KODAMAMatrixFromGraphData_METAL | ( | MatrixView | x, |
| const NeighborGraph & | graph, | ||
| const std::vector< int > & | starting_labels = std::vector< int >(), |
||
| const std::vector< int > & | constrain = std::vector< int >(), |
||
| const std::vector< int > & | fixed = std::vector< int >(), |
||
| const KODAMAMatrixOptions & | options = KODAMAMatrixOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAOpenTSNE_CPU | ( | const NeighborGraph & | graph, |
| const OpenTSNEOptions & | options = OpenTSNEOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAOpenTSNE_CPU | ( | const NeighborGraph & | graph, |
| MatrixView | raw_data, | ||
| const OpenTSNEOptions & | options = OpenTSNEOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAOpenTSNE_CUDA | ( | const NeighborGraph & | graph, |
| const OpenTSNEOptions & | options = OpenTSNEOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAOpenTSNE_CUDA | ( | const NeighborGraph & | graph, |
| MatrixView | raw_data, | ||
| const OpenTSNEOptions & | options = OpenTSNEOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAOpenTSNE_METAL | ( | const NeighborGraph & | graph, |
| const OpenTSNEOptions & | options = OpenTSNEOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAOpenTSNE_METAL | ( | const NeighborGraph & | graph, |
| MatrixView | raw_data, | ||
| const OpenTSNEOptions & | options = OpenTSNEOptions() |
||
| ) |
| std::vector< float > kodama::KODAMASeparateSpatialSamples | ( | const std::vector< float > & | spatial, |
| int | rows, | ||
| int | columns, | ||
| const std::vector< int > & | samples | ||
| ) |
Apply the original KODAMA multi-sample separation to spatial coordinate 1.
| EmbeddingResult kodama::KODAMAUMAP_CPU | ( | const NeighborGraph & | graph, |
| const UMAPOptions & | options = UMAPOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAUMAP_CPU | ( | const NeighborGraph & | graph, |
| MatrixView | raw_data, | ||
| const UMAPOptions & | options = UMAPOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAUMAP_CUDA | ( | const NeighborGraph & | graph, |
| const UMAPOptions & | options = UMAPOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAUMAP_CUDA | ( | const NeighborGraph & | graph, |
| MatrixView | raw_data, | ||
| const UMAPOptions & | options = UMAPOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAUMAP_METAL | ( | const NeighborGraph & | graph, |
| const UMAPOptions & | options = UMAPOptions() |
||
| ) |
| EmbeddingResult kodama::KODAMAUMAP_METAL | ( | const NeighborGraph & | graph, |
| MatrixView | raw_data, | ||
| const UMAPOptions & | options = UMAPOptions() |
||
| ) |
| VisualizationInitResult kodama::KODAMAVisualizationPCAInit | ( | MatrixView | raw_data, |
| const VisualizationInitOptions & | options = VisualizationInitOptions() |
||
| ) |
| bool kodama::MetalAvailable | ( | ) |
| NormalizationResult kodama::Normalization | ( | MatrixView | train, |
| const NormalizationOptions & | options | ||
| ) |
| NormalizationResult kodama::Normalization | ( | MatrixView | train, |
| MatrixView | test = MatrixView(), |
||
| const NormalizationOptions & | options = NormalizationOptions() |
||
| ) |
| NormalizationResult kodama::Normalization_CPU | ( | MatrixView | train, |
| const NormalizationOptions & | options | ||
| ) |
| NormalizationResult kodama::Normalization_CPU | ( | MatrixView | train, |
| MatrixView | test = MatrixView(), |
||
| const NormalizationOptions & | options = NormalizationOptions() |
||
| ) |
| NormalizationResult kodama::Normalization_CUDA | ( | MatrixView | train, |
| const NormalizationOptions & | options | ||
| ) |
| NormalizationResult kodama::Normalization_CUDA | ( | MatrixView | train, |
| MatrixView | test = MatrixView(), |
||
| const NormalizationOptions & | options = NormalizationOptions() |
||
| ) |
| NormalizationResult kodama::Normalization_METAL | ( | MatrixView | train, |
| const NormalizationOptions & | options | ||
| ) |
| NormalizationResult kodama::Normalization_METAL | ( | MatrixView | train, |
| MatrixView | test = MatrixView(), |
||
| const NormalizationOptions & | options = NormalizationOptions() |
||
| ) |
| PassingMessageResult kodama::PassingMessage | ( | MatrixView | data, |
| MatrixView | spatial, | ||
| const std::vector< int > & | samples = {}, |
||
| const PassingMessageOptions & | options = PassingMessageOptions() |
||
| ) |
| PassingMessageResult kodama::PassingMessage_CPU | ( | MatrixView | data, |
| MatrixView | spatial, | ||
| const std::vector< int > & | samples = {}, |
||
| const PassingMessageOptions & | options = PassingMessageOptions() |
||
| ) |
| PassingMessageResult kodama::PassingMessage_CUDA | ( | MatrixView | data, |
| MatrixView | spatial, | ||
| const std::vector< int > & | samples = {}, |
||
| const PassingMessageOptions & | options = PassingMessageOptions() |
||
| ) |
| PassingMessageResult kodama::PassingMessage_METAL | ( | MatrixView | data, |
| MatrixView | spatial, | ||
| const std::vector< int > & | samples = {}, |
||
| const PassingMessageOptions & | options = PassingMessageOptions() |
||
| ) |
| PCAResult kodama::PCA | ( | MatrixView | x, |
| const PCAOptions & | options = PCAOptions() |
||
| ) |
| PCAResult kodama::PCA_CPU | ( | MatrixView | x, |
| const PCAOptions & | options = PCAOptions() |
||
| ) |
| PCAResult kodama::PCA_CUDA | ( | MatrixView | x, |
| const PCAOptions & | options = PCAOptions() |
||
| ) |
| PCAResult kodama::PCA_METAL | ( | MatrixView | x, |
| const PCAOptions & | options = PCAOptions() |
||
| ) |
| PLSFitResult kodama::PLS | ( | MatrixView | x, |
| MatrixView | y, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PLSFitResult kodama::PLS_CPU | ( | MatrixView | x, |
| MatrixView | y, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PLSFitResult kodama::PLS_CUDA | ( | MatrixView | x, |
| MatrixView | y, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PLSFitResult kodama::PLS_METAL | ( | MatrixView | x, |
| MatrixView | y, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PLSCVResult kodama::PLSDACV | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PLSCVResult kodama::PLSDACV_CPU | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PLSCVResult kodama::PLSDACV_CUDA | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PLSCVResult kodama::PLSLDACV | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PLSCVResult kodama::PLSLDACV_CPU | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PLSCVResult kodama::PLSLDACV_CUDA | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PLSCVResult kodama::PLSLDACV_METAL | ( | MatrixView | x, |
| const std::vector< int > & | labels, | ||
| const std::vector< int > & | constrain, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| std::vector< int > kodama::PLSLDAPredict | ( | MatrixView | train, |
| const std::vector< int > & | labels, | ||
| MatrixView | test, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| std::vector< int > kodama::PLSLDAPredict_CPU | ( | MatrixView | train, |
| const std::vector< int > & | labels, | ||
| MatrixView | test, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| std::vector< int > kodama::PLSLDAPredict_CUDA | ( | MatrixView | train, |
| const std::vector< int > & | labels, | ||
| MatrixView | test, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| std::vector< int > kodama::PLSLDAPredict_METAL | ( | MatrixView | train, |
| const std::vector< int > & | labels, | ||
| MatrixView | test, | ||
| const PLSOptions & | options = PLSOptions() |
||
| ) |
| PCAResult kodama::RSVD | ( | MatrixView | x, |
| const PCAOptions & | options = PCAOptions() |
||
| ) |
| ScalingResult kodama::Scaling | ( | MatrixView | train, |
| const ScalingOptions & | options | ||
| ) |
| ScalingResult kodama::Scaling | ( | MatrixView | train, |
| MatrixView | test = MatrixView(), |
||
| const ScalingOptions & | options = ScalingOptions() |
||
| ) |
| ScalingResult kodama::Scaling_CPU | ( | MatrixView | train, |
| const ScalingOptions & | options | ||
| ) |
| ScalingResult kodama::Scaling_CPU | ( | MatrixView | train, |
| MatrixView | test = MatrixView(), |
||
| const ScalingOptions & | options = ScalingOptions() |
||
| ) |
| ScalingResult kodama::Scaling_CUDA | ( | MatrixView | train, |
| const ScalingOptions & | options | ||
| ) |
| ScalingResult kodama::Scaling_CUDA | ( | MatrixView | train, |
| MatrixView | test = MatrixView(), |
||
| const ScalingOptions & | options = ScalingOptions() |
||
| ) |
| ScalingResult kodama::Scaling_METAL | ( | MatrixView | train, |
| const ScalingOptions & | options | ||
| ) |
| ScalingResult kodama::Scaling_METAL | ( | MatrixView | train, |
| MatrixView | test = MatrixView(), |
||
| const ScalingOptions & | options = ScalingOptions() |
||
| ) |
| NeighborGraph kodama::SearchResidentIVFIndex | ( | const ResidentIVFIndex & | index, |
| MatrixView | query, | ||
| int | k, | ||
| ResidentIVFSearchStats * | stats = nullptr |
||
| ) |
Search an existing accelerator-resident IVF index.
Query rows are uploaded for this call. Returned neighbor identifiers are one-based, matching NeighborGraph throughout the public API.
| NeighborGraph kodama::SearchResidentIVFIndexSelf | ( | const ResidentIVFIndex & | index, |
| int | k, | ||
| bool | exclude_self = true, |
||
| ResidentIVFSearchStats * | stats = nullptr |
||
| ) |
Search the resident training matrix against itself without uploading it again. Self-neighbors are excluded when exclude_self is true.
| SpatialFeatureResult kodama::SpatialFeatureSelection | ( | MatrixView | data, |
| MatrixView | spatial, | ||
| const std::vector< int > & | samples = {}, |
||
| const SpatialFeatureOptions & | options = SpatialFeatureOptions() |
||
| ) |
| SpatialFeatureResult kodama::SpatialFeatureSelection_CPU | ( | MatrixView | data, |
| MatrixView | spatial, | ||
| const std::vector< int > & | samples = {}, |
||
| const SpatialFeatureOptions & | options = SpatialFeatureOptions() |
||
| ) |
| const char * kodama::to_string | ( | Backend | backend | ) |
| const char * kodama::to_string | ( | CoreClassifier | classifier | ) |
| const char * kodama::to_string | ( | DistanceMetric | metric | ) |
| const char * kodama::to_string | ( | GraphFeatureMode | mode | ) |
| const char * kodama::to_string | ( | GraphWeightType | weight_type | ) |
| const char * kodama::to_string | ( | KNNIndexType | index_type | ) |
| const char * kodama::to_string | ( | PLSMode | mode | ) |
|
inlineconstexpr |
Definition at line 13 of file version.hpp.
|
inlineconstexpr |
Definition at line 14 of file version.hpp.
|
inlineconstexpr |
Definition at line 15 of file version.hpp.
|
inlineconstexpr |
Definition at line 16 of file version.hpp.