Commit e5ad3598 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

ENH: suppress stdout messages

No related merge requests found
Showing with 5 additions and 9 deletions
+5 -9
......@@ -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;
......
......@@ -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;
}
......
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