Skip to content

Commit

Permalink
Fix issue dmlc#1236: cli_main crashes when dumping count:poisson model
Browse files Browse the repository at this point in the history
  • Loading branch information
yangs16 committed Jun 6, 2016
1 parent 9a48a40 commit ef2b319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cli_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ void CLIDump2Text(const CLIParam& param) {
std::unique_ptr<Learner> learner(Learner::Create({}));
std::unique_ptr<dmlc::Stream> fi(
dmlc::Stream::Create(param.model_in.c_str(), "r"));
learner->Configure(param.cfg);
learner->Load(fi.get());
// dump data
std::vector<std::string> dump = learner->Dump2Text(fmap, param.dump_stats);
Expand Down

0 comments on commit ef2b319

Please sign in to comment.