src/data/data.cc
// try to load weight information from file, if exists
try to load weight information from file, if exists
try to load weight information from file if exists
inline bool MetaTryLoadFloatInfo(const std::string& fname,
                                 std::vector<bst_float>* data) {
  std::unique_ptr<dmlc::Stream> fi(dmlc::Stream::Create(fname.c_str(), "r", true));
  if (fi == nullptr) return false;
  dmlc::istream is(fi.get());
  data->clear();
  bst_float value;
  while (is >> value) {
    data->push_back(value);
  }
  return true;
}
inline bool MetaTryLoadFloatInfo ( const std :: string & fname , std :: vector < bst_float > * data ) { std :: unique_ptr < dmlc :: Stream > fi ( dmlc :: Stream :: Create ( fname . c_str ( ) , " " , true ) ) ; if ( fi == nullptr ) return false ; dmlc :: istream is ( fi . get ( ) ) ; data -> clear ( ) ; bst_float value ; while ( is >> value ) { data -> push_back ( value ) ; } return true ; }
try to load weight information from file, if exists
try to load weight information from file if exists