[DATA] fix instance weights loading

This commit is contained in:
yuanbowen 2016-05-23 18:40:41 +08:00
parent c85b9012c6
commit 5898f1c59e

View File

@ -223,6 +223,10 @@ DMatrix* DMatrix::Load(const std::string& uri,
LOG(CONSOLE) << info.base_margin.size()
<< " base_margin are loaded from " << fname << ".base_margin";
}
if (MetaTryLoadFloatInfo(fname + ".weight", &info.weights) && !silent) {
LOG(CONSOLE) << info.weights.size()
<< " weights are loaded from " << fname << ".weight";
}
}
return dmat;
}