chg fmap format

This commit is contained in:
tqchen
2014-04-29 09:59:10 -07:00
parent 7487c2f668
commit 0f8a3d21a5
3 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ namespace xgboost{
inline void LoadText(FILE *fi){
int fid;
char fname[256], ftype[256];
while (fscanf(fi, "%d%s%s", &fid, fname, ftype) == 3){
while (fscanf(fi, "%d\t%[^\t]\t%s\n", &fid, fname, ftype) == 3){
utils::Assert(fid == (int)names_.size(), "invalid fmap format");
names_.push_back(std::string(fname));
types_.push_back(GetType(ftype));