TTK
|
TTK VTK-filter that apply dimension reduction algorithms on input. More...
#include <DimensionReduction.h>
Public Types | |
enum class | METHOD { SE = 0 , LLE = 1 , MDS = 2 , T_SNE = 3 , ISOMAP = 4 , PCA = 5 , TOPOMAP = 6 } |
Public Member Functions | |
DimensionReduction () | |
void | setSEParameters (const std::string &Affinity, const float Gamma, const std::string &EigenSolver, const bool InputIsADistanceMatrix) |
void | setLLEParameters (const float Regularization, const std::string &EigenSolver, const float Tolerance, const int MaxIteration, const std::string &Method_s, const float HessianTolerance, const float ModifiedTolerance, const std::string &NeighborsAlgorithm) |
void | setMDSParameters (const bool Metric, const int Init, const int MaxIteration, const int Verbose, const float Epsilon, const bool Dissimilarity) |
void | setTSNEParameters (const float Perplexity, const float Exaggeration, const float LearningRate, const int MaxIteration, const int MaxIterationProgress, const float GradientThreshold, const std::string &Metric, const std::string &Init, const int Verbose, const std::string &Method_s, const float Angle) |
void | setISOParameters (const std::string &EigenSolver, const float Tolerance, const int MaxIteration, const std::string &PathMethod, const std::string &NeighborsAlgorithm) |
void | setPCAParameters (const bool Copy, const bool Whiten, const std::string &SVDSolver, const float Tolerance, const std::string &MaxIteration) |
void | setTopoParameters (const size_t AngularSampleNb, bool CheckMST) |
void | setInputModulePath (const std::string &modulePath) |
void | setInputModuleName (const std::string &moduleName) |
void | setInputFunctionName (const std::string &functionName) |
void | setInputMethod (METHOD method) |
void | setInputNumberOfComponents (const int numberOfComponents) |
void | setInputNumberOfNeighbors (const int numberOfNeighbors) |
void | setInputIsDeterministic (const int isDeterm) |
void | setIsInputDistanceMatrix (const bool data) |
int | execute (std::vector< std::vector< double > > &outputEmbedding, const std::vector< double > &inputMatrix, const int nRows, const int nColumns, int *insertionTimeForTopoMap=nullptr) const |
Public Member Functions inherited from ttk::Debug | |
Debug () | |
~Debug () override | |
virtual int | setDebugLevel (const int &debugLevel) |
int | setWrapper (const Wrapper *wrapper) override |
int | printMsg (const std::string &msg, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
int | printMsg (const std::vector< std::string > &msgs, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
int | printErr (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const |
int | printWrn (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const |
int | printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const double &memory, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
int | printMsg (const std::string &msg, const double &progress, const double &time, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
int | printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
int | printMsg (const std::string &msg, const double &progress, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const |
int | printMsg (const std::string &msg, const double &progress, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
int | printMsg (const std::vector< std::vector< std::string > > &rows, const debug::Priority &priority=debug::Priority::INFO, const bool hasHeader=true, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
int | printMsg (const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const |
int | printMsg (const debug::Separator &separator, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
int | printMsg (const std::string &msg, const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const |
void | setDebugMsgPrefix (const std::string &prefix) |
Public Member Functions inherited from ttk::BaseClass | |
BaseClass () | |
virtual | ~BaseClass ()=default |
int | getThreadNumber () const |
virtual int | setThreadNumber (const int threadNumber) |
Protected Attributes | |
std::string | se_Affinity {"nearest_neighbors"} |
float | se_Gamma {1} |
std::string | se_EigenSolver {"None"} |
float | lle_Regularization {1e-3} |
std::string | lle_EigenSolver {"auto"} |
float | lle_Tolerance {1e-3} |
int | lle_MaxIteration {300} |
std::string | lle_Method {"standard"} |
float | lle_HessianTolerance {1e-3} |
float | lle_ModifiedTolerance {1e-3} |
std::string | lle_NeighborsAlgorithm {"auto"} |
bool | mds_Metric {true} |
int | mds_Init {4} |
int | mds_MaxIteration {300} |
int | mds_Verbose {0} |
float | mds_Epsilon {0} |
std::string | mds_Dissimilarity {"euclidean"} |
float | tsne_Perplexity {30} |
float | tsne_Exaggeration {12} |
float | tsne_LearningRate {200} |
int | tsne_MaxIteration {1000} |
int | tsne_MaxIterationProgress {300} |
float | tsne_GradientThreshold {1e-7} |
std::string | tsne_Metric {"euclidean"} |
std::string | tsne_Init {"random"} |
int | tsne_Verbose {0} |
std::string | tsne_Method {"barnes_hut"} |
float | tsne_Angle {0.5} |
std::string | iso_EigenSolver {"auto"} |
float | iso_Tolerance {1e-3} |
int | iso_MaxIteration {300} |
std::string | iso_PathMethod {"auto"} |
std::string | iso_NeighborsAlgorithm {"auto"} |
std::string | iso_Metric {"euclidean"} |
bool | pca_Copy {true} |
bool | pca_Whiten {false} |
std::string | pca_SVDSolver {"auto"} |
float | pca_Tolerance {0} |
std::string | pca_MaxIteration {"auto"} |
size_t | topomap_AngularSampleNb |
bool | topomap_CheckMST |
TopoMap::STRATEGY | topomap_Strategy {TopoMap::STRATEGY::KRUSKAL} |
std::string | ModulePath {"default"} |
std::string | ModuleName {"dimensionReduction"} |
std::string | FunctionName {"doIt"} |
METHOD | Method |
int | NumberOfComponents {2} |
int | NumberOfNeighbors {5} |
int | IsDeterministic {true} |
char | majorVersion_ {'0'} |
bool | IsInputADistanceMatrix {false} |
Protected Attributes inherited from ttk::Debug | |
int | debugLevel_ |
std::string | debugMsgPrefix_ |
std::string | debugMsgNamePrefix_ |
Protected Attributes inherited from ttk::BaseClass | |
bool | lastObject_ |
int | threadNumber_ |
Wrapper * | wrapper_ |
Additional Inherited Members | |
Protected Member Functions inherited from ttk::Debug | |
int | printMsgInternal (const std::string &msg, const std::string &right, const std::string &filler, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const |
int | printMsgInternal (const std::string &msg, const debug::Priority &priority, const debug::LineMode &lineMode, std::ostream &stream=std::cout) const |
int | welcomeMsg (std::ostream &stream) |
Static Protected Attributes inherited from ttk::Debug | |
static COMMON_EXPORTS debug::LineMode | lastLineMode = ttk::debug::LineMode::NEW |
TTK VTK-filter that apply dimension reduction algorithms on input.
Input | Input scalar field (vtkTable) |
Output | Output scalar field (vtkTable) |
TTK VTK-filter that takes a matrix (vtkTable) as input and apply a dimension reduction algorithm from scikit-learn.
Online examples:
Definition at line 60 of file DimensionReduction.h.
|
strong |
Scikit-Learn Dimension Reduction algorithms
Definition at line 66 of file DimensionReduction.h.
DimensionReduction::DimensionReduction | ( | ) |
Definition at line 18 of file DimensionReduction.cpp.
int DimensionReduction::execute | ( | std::vector< std::vector< double > > & | outputEmbedding, |
const std::vector< double > & | inputMatrix, | ||
const int | nRows, | ||
const int | nColumns, | ||
int * | insertionTimeForTopoMap = nullptr |
||
) | const |
Definition at line 45 of file DimensionReduction.cpp.
|
inline |
Definition at line 192 of file DimensionReduction.h.
|
inline |
Definition at line 243 of file DimensionReduction.h.
|
inline |
Definition at line 196 of file DimensionReduction.h.
|
inline |
Definition at line 188 of file DimensionReduction.h.
|
inline |
Definition at line 184 of file DimensionReduction.h.
|
inline |
Definition at line 235 of file DimensionReduction.h.
|
inline |
Definition at line 239 of file DimensionReduction.h.
|
inline |
Definition at line 247 of file DimensionReduction.h.
|
inline |
Definition at line 156 of file DimensionReduction.h.
|
inline |
Definition at line 96 of file DimensionReduction.h.
|
inline |
Definition at line 114 of file DimensionReduction.h.
|
inline |
Definition at line 168 of file DimensionReduction.h.
|
inline |
Definition at line 83 of file DimensionReduction.h.
|
inline |
Definition at line 179 of file DimensionReduction.h.
|
inline |
Definition at line 132 of file DimensionReduction.h.
|
protected |
Definition at line 328 of file DimensionReduction.h.
|
protected |
Definition at line 334 of file DimensionReduction.h.
|
protected |
Definition at line 336 of file DimensionReduction.h.
|
protected |
Definition at line 306 of file DimensionReduction.h.
|
protected |
Definition at line 308 of file DimensionReduction.h.
|
protected |
Definition at line 311 of file DimensionReduction.h.
|
protected |
Definition at line 310 of file DimensionReduction.h.
|
protected |
Definition at line 309 of file DimensionReduction.h.
|
protected |
Definition at line 307 of file DimensionReduction.h.
|
protected |
Definition at line 276 of file DimensionReduction.h.
|
protected |
Definition at line 280 of file DimensionReduction.h.
|
protected |
Definition at line 278 of file DimensionReduction.h.
|
protected |
Definition at line 279 of file DimensionReduction.h.
|
protected |
Definition at line 281 of file DimensionReduction.h.
|
protected |
Definition at line 282 of file DimensionReduction.h.
|
protected |
Definition at line 275 of file DimensionReduction.h.
|
protected |
Definition at line 277 of file DimensionReduction.h.
|
protected |
Definition at line 335 of file DimensionReduction.h.
|
protected |
Definition at line 290 of file DimensionReduction.h.
|
protected |
Definition at line 289 of file DimensionReduction.h.
|
protected |
Definition at line 286 of file DimensionReduction.h.
|
protected |
Definition at line 287 of file DimensionReduction.h.
|
protected |
Definition at line 285 of file DimensionReduction.h.
|
protected |
Definition at line 288 of file DimensionReduction.h.
|
protected |
Definition at line 330 of file DimensionReduction.h.
|
protected |
Definition at line 327 of file DimensionReduction.h.
|
protected |
Definition at line 326 of file DimensionReduction.h.
|
protected |
Definition at line 332 of file DimensionReduction.h.
|
protected |
Definition at line 333 of file DimensionReduction.h.
|
protected |
Definition at line 314 of file DimensionReduction.h.
|
protected |
Definition at line 318 of file DimensionReduction.h.
|
protected |
Definition at line 316 of file DimensionReduction.h.
|
protected |
Definition at line 317 of file DimensionReduction.h.
|
protected |
Definition at line 315 of file DimensionReduction.h.
|
protected |
Definition at line 270 of file DimensionReduction.h.
|
protected |
Definition at line 272 of file DimensionReduction.h.
|
protected |
Definition at line 271 of file DimensionReduction.h.
|
protected |
Definition at line 321 of file DimensionReduction.h.
|
protected |
Definition at line 322 of file DimensionReduction.h.
|
protected |
Definition at line 323 of file DimensionReduction.h.
|
protected |
Definition at line 303 of file DimensionReduction.h.
|
protected |
Definition at line 294 of file DimensionReduction.h.
|
protected |
Definition at line 298 of file DimensionReduction.h.
|
protected |
Definition at line 300 of file DimensionReduction.h.
|
protected |
Definition at line 295 of file DimensionReduction.h.
|
protected |
Definition at line 296 of file DimensionReduction.h.
|
protected |
Definition at line 297 of file DimensionReduction.h.
|
protected |
Definition at line 302 of file DimensionReduction.h.
|
protected |
Definition at line 299 of file DimensionReduction.h.
|
protected |
Definition at line 293 of file DimensionReduction.h.
|
protected |
Definition at line 301 of file DimensionReduction.h.