minor shadow fix
This commit is contained in:
parent
2eccdda3c5
commit
e63faf0e85
@ -185,8 +185,8 @@ class DMatrixPageBase : public DataMatrix {
|
|||||||
iter_->Load(utils::FileStream(utils::FopenCheck(fname_row.c_str(), "rb")));
|
iter_->Load(utils::FileStream(utils::FopenCheck(fname_row.c_str(), "rb")));
|
||||||
// save data matrix
|
// save data matrix
|
||||||
utils::FileStream fs(utils::FopenCheck(cache_file, "wb"));
|
utils::FileStream fs(utils::FopenCheck(cache_file, "wb"));
|
||||||
int magic = kMagic;
|
int tmagic = kMagic;
|
||||||
fs.Write(&magic, sizeof(magic));
|
fs.Write(&tmagic, sizeof(tmagic));
|
||||||
this->info.SaveBinary(fs);
|
this->info.SaveBinary(fs);
|
||||||
fs.Close();
|
fs.Close();
|
||||||
if (!silent) {
|
if (!silent) {
|
||||||
|
|||||||
@ -235,9 +235,8 @@ class BoostLearner : public rabit::Serializable {
|
|||||||
/*!
|
/*!
|
||||||
* \brief save model into file
|
* \brief save model into file
|
||||||
* \param fname file name
|
* \param fname file name
|
||||||
* \param save_base64 whether save in base64 format
|
|
||||||
*/
|
*/
|
||||||
inline void SaveModel(const char *fname, bool save_base64 = false) const {
|
inline void SaveModel(const char *fname) const {
|
||||||
utils::IStream *fo = utils::IStream::Create(fname, "w");
|
utils::IStream *fo = utils::IStream::Create(fname, "w");
|
||||||
if (save_base64 != 0 || !strcmp(fname, "stdout")) {
|
if (save_base64 != 0 || !strcmp(fname, "stdout")) {
|
||||||
fo->Write("bs64\t", 5);
|
fo->Write("bs64\t", 5);
|
||||||
|
|||||||
@ -237,7 +237,6 @@ class ColMaker: public IUpdater {
|
|||||||
bool need_forward = param.need_forward_search(fmat.GetColDensity(fid));
|
bool need_forward = param.need_forward_search(fmat.GetColDensity(fid));
|
||||||
bool need_backward = param.need_backward_search(fmat.GetColDensity(fid));
|
bool need_backward = param.need_backward_search(fmat.GetColDensity(fid));
|
||||||
const std::vector<int> &qexpand = qexpand_;
|
const std::vector<int> &qexpand = qexpand_;
|
||||||
int nthread;
|
|
||||||
#pragma omp parallel
|
#pragma omp parallel
|
||||||
{
|
{
|
||||||
const int tid = omp_get_thread_num();
|
const int tid = omp_get_thread_num();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user