Commit 6dcd3f49 authored by ctraizet's avatar ctraizet
Browse files

ENH: remove shark dimensionality reduction tests if the otb is built without the library

No related merge requests found
Showing with 17 additions and 13 deletions
+17 -13
...@@ -39,19 +39,7 @@ otb_test_application(NAME apTvFEDimensionalityReductionPCA ...@@ -39,19 +39,7 @@ otb_test_application(NAME apTvFEDimensionalityReductionPCA
${TEMP}/apTvChDimensionalityReductionPCA.tif) ${TEMP}/apTvChDimensionalityReductionPCA.tif)
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
set(algos ae pca som) set(algos som)
set(ae_params
-algorithm autoencoder
-algorithm.autoencoder.nbneuron 8
-algorithm.autoencoder.regularization 0.01
-algorithm.autoencoder.noise 0
-algorithm.autoencoder.rho 0
-algorithm.autoencoder.beta 0)
set(pca_params
-algorithm pca
-algorithm.pca.dim 8)
set(som_params set(som_params
-algorithm som -algorithm som
...@@ -59,6 +47,22 @@ set(som_params ...@@ -59,6 +47,22 @@ set(som_params
-algorithm.som.n 3 3 -algorithm.som.n 3 3
-algorithm.som.ni 10) -algorithm.som.ni 10)
if(OTB_USE_SHARK)
list(APPEND classifierList ae pca)
set(ae_params
-algorithm autoencoder
-algorithm.autoencoder.nbneuron 8
-algorithm.autoencoder.regularization 0.01
-algorithm.autoencoder.noise 0
-algorithm.autoencoder.rho 0
-algorithm.autoencoder.beta 0)
set(pca_params
-algorithm pca
-algorithm.pca.dim 8)
endif()
foreach(algo ${algos}) foreach(algo ${algos})
string(TOUPPER ${algo} ualgo) string(TOUPPER ${algo} ualgo)
#------------------ TrainDimensionalityReduction TESTS------------------------ #------------------ TrainDimensionalityReduction TESTS------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment