diff --git a/Modules/Applications/AppDimensionalityReduction/app/otbVectorDimensionalityReduction.cxx b/Modules/Applications/AppDimensionalityReduction/app/otbVectorDimensionalityReduction.cxx index 0a8f3eac0050494c99269cb8c8dca53106a50a4e..16e5dfaf17459b086ec555d419ee44908e911709 100644 --- a/Modules/Applications/AppDimensionalityReduction/app/otbVectorDimensionalityReduction.cxx +++ b/Modules/Applications/AppDimensionalityReduction/app/otbVectorDimensionalityReduction.cxx @@ -253,9 +253,7 @@ class VectorDimensionalityReduction : public Application ListSampleType::Pointer target = m_Model->PredictBatch(listSample); /** Create/Update Output Shape file */ - - std::cout << GetParameterStringList("featout").size() << std::endl; - + ogr::DataSource::Pointer output; ogr::DataSource::Pointer buffer = ogr::DataSource::New(); bool updateMode = false; diff --git a/Modules/Learning/DimensionalityReductionLearning/include/otbPCAModel.txx b/Modules/Learning/DimensionalityReductionLearning/include/otbPCAModel.txx index 364dd8def35fa51373f3b0cf30e927622044d736..c5d274b324f66b16d49239f32b5df8c4318d834d 100644 --- a/Modules/Learning/DimensionalityReductionLearning/include/otbPCAModel.txx +++ b/Modules/Learning/DimensionalityReductionLearning/include/otbPCAModel.txx @@ -93,9 +93,8 @@ void PCAModel<TInputValue>::Save(const std::string & filename, const std::string Shark::ListSampleToSharkVector(this->GetInputListSample(), features); shark::Data<shark::RealVector> inputSamples = shark::createDataFromRange( features ); otxt << "Reconstruction error : " << loss.eval(inputSamples,m_decoder(m_encoder(inputSamples))) << std::endl; - std::cout << "Reconstruction error : " << loss.eval(inputSamples,m_decoder(m_encoder(inputSamples))) << std::endl; - otxt.close(); - } +otxt.close(); +} } template <class TInputValue> @@ -175,9 +174,8 @@ void PCAModel<TInputValue> //target.SetElement(a,p[a]); } - //std::cout << p << std::endl; - targets->SetMeasurementVector(id,target); - ++id; +targets->SetMeasurementVector(id,target); +++id; }