Merge pull request #1221 from ryaninhust/master
[DATA] fix instance weights loading
This commit is contained in:
commit
5c14daffe2
@ -223,6 +223,10 @@ DMatrix* DMatrix::Load(const std::string& uri,
|
|||||||
LOG(CONSOLE) << info.base_margin.size()
|
LOG(CONSOLE) << info.base_margin.size()
|
||||||
<< " base_margin are loaded from " << fname << ".base_margin";
|
<< " 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;
|
return dmat;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user