May 2020
Intermediate to advanced
530 pages
17h 8m
English
In the Shogun library, the IsoMap dimensionality reduction algorithm is implemented in the CIsoMap class. Objects of this class should be configured with the target number of dimensions and the number of neighbors for graph construction. The set_target_dim() and set_k() methods should be used for this. The fit() and transform() methods should be used for the training and data dimensionality reduction, respectively:
void IsoMapReduction(Some<CDenseFeatures<DataType>> features, const int target_dim) { auto IsoMap = some<CIsoMap>(); IsoMap->set_target_dim(target_dim); IsoMap->set_k(100); IsoMap->fit(features); auto new_features = static_cast<CDenseFeatures<DataType> *>(IsoMap->transform (features)); auto feature_matrix = new_features->get_feature_matrix(); ...Read now
Unlock full access