Commit 6dcd3f49 authored by Cédric Traizet's avatar Cédric Traizet

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

parent ead47fad
......@@ -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------------------------
......
Markdown is supported
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