add base_margin
This commit is contained in:
@@ -110,10 +110,13 @@ class DMatrixSimple : public DataMatrix {
|
||||
"DMatrix: group data does not match the number of rows in features");
|
||||
}
|
||||
std::string wname = name + ".weight";
|
||||
if (info.TryLoadWeight(wname.c_str(), silent)) {
|
||||
if (info.TryLoadFloatInfo("weight", wname.c_str(), silent)) {
|
||||
utils::Check(info.weights.size() == info.num_row,
|
||||
"DMatrix: weight data does not match the number of rows in features");
|
||||
}
|
||||
std::string mname = name + ".base_margin";
|
||||
if (info.TryLoadFloatInfo("base_margin", mname.c_str(), silent)) {
|
||||
}
|
||||
}
|
||||
/*!
|
||||
* \brief load from binary file
|
||||
|
||||
Reference in New Issue
Block a user