Skip to content

Commit

Permalink
Fix issue #1236: cli_main crashes when dumping count:poisson model (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yangs16 authored and tqchen committed Jun 8, 2016
1 parent e2c1aa8 commit e034fdf
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 e034fdf

Please sign in to comment.