Skip to content
Snippets Groups Projects
Commit 6dcd3f49 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

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

parent ead47fad
No related branches found
No related tags found
No related merge requests found
......@@ -39,19 +39,7 @@ otb_test_application(NAME apTvFEDimensionalityReductionPCA
${TEMP}/apTvChDimensionalityReductionPCA.tif)
#-------------------------------------------------------------------------------
set(algos ae pca 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(algos som)
set(som_params
-algorithm som
......@@ -59,6 +47,22 @@ set(som_params
-algorithm.som.n 3 3
-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})
string(TOUPPER ${algo} ualgo)
#------------------ TrainDimensionalityReduction TESTS------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment