Write binary header. (#5532)
This commit is contained in:
parent
1b1969f20d
commit
a2f54963b6
@ -777,7 +777,8 @@ class LearnerIO : public LearnerConfiguration {
|
|||||||
}
|
}
|
||||||
extra_attr.emplace_back("metrics", os.str());
|
extra_attr.emplace_back("metrics", os.str());
|
||||||
}
|
}
|
||||||
|
std::string header {"binf"};
|
||||||
|
fo->Write(header.data(), 4);
|
||||||
fo->Write(&mparam, sizeof(LearnerModelParamLegacy));
|
fo->Write(&mparam, sizeof(LearnerModelParamLegacy));
|
||||||
fo->Write(tparam_.objective);
|
fo->Write(tparam_.objective);
|
||||||
fo->Write(tparam_.booster);
|
fo->Write(tparam_.booster);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user