Skip to content
Snippets Groups Projects
Commit e5ad3598 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

ENH: suppress stdout messages

parent 88d502fd
No related branches found
No related tags found
No related merge requests found
...@@ -253,9 +253,7 @@ class VectorDimensionalityReduction : public Application ...@@ -253,9 +253,7 @@ class VectorDimensionalityReduction : public Application
ListSampleType::Pointer target = m_Model->PredictBatch(listSample); ListSampleType::Pointer target = m_Model->PredictBatch(listSample);
/** Create/Update Output Shape file */ /** Create/Update Output Shape file */
std::cout << GetParameterStringList("featout").size() << std::endl;
ogr::DataSource::Pointer output; ogr::DataSource::Pointer output;
ogr::DataSource::Pointer buffer = ogr::DataSource::New(); ogr::DataSource::Pointer buffer = ogr::DataSource::New();
bool updateMode = false; bool updateMode = false;
......
...@@ -93,9 +93,8 @@ void PCAModel<TInputValue>::Save(const std::string & filename, const std::string ...@@ -93,9 +93,8 @@ void PCAModel<TInputValue>::Save(const std::string & filename, const std::string
Shark::ListSampleToSharkVector(this->GetInputListSample(), features); Shark::ListSampleToSharkVector(this->GetInputListSample(), features);
shark::Data<shark::RealVector> inputSamples = shark::createDataFromRange( features ); shark::Data<shark::RealVector> inputSamples = shark::createDataFromRange( features );
otxt << "Reconstruction error : " << loss.eval(inputSamples,m_decoder(m_encoder(inputSamples))) << std::endl; 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> template <class TInputValue>
...@@ -175,9 +174,8 @@ void PCAModel<TInputValue> ...@@ -175,9 +174,8 @@ void PCAModel<TInputValue>
//target.SetElement(a,p[a]); //target.SetElement(a,p[a]);
} }
//std::cout << p << std::endl; targets->SetMeasurementVector(id,target);
targets->SetMeasurementVector(id,target); ++id;
++id;
} }
......
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