Skip to content

Commit

Permalink
ENH: add skip_mode to all restoreModel functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandera committed Feb 6, 2019
1 parent 68f3cab commit 5e7ba4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/smurff-cpp/SmurffCpp/Predict/PredictSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ std::shared_ptr<Model> PredictSession::restoreModel(const std::shared_ptr<StepFi
return model;
}

std::shared_ptr<Model> PredictSession::restoreModel(int i)
std::shared_ptr<Model> PredictSession::restoreModel(int i, int skip_mode)
{
return restoreModel(m_stepfiles.at(i));
return restoreModel(m_stepfiles.at(i), skip_mode);
}

// predict one element
Expand Down
2 changes: 1 addition & 1 deletion lib/smurff-cpp/SmurffCpp/Predict/PredictSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class PredictSession : public ISession

private:
std::shared_ptr<Model> restoreModel(const std::shared_ptr<StepFile> &, int skip_mode = -1);
std::shared_ptr<Model> restoreModel(int i);
std::shared_ptr<Model> restoreModel(int i, int skip_mode = -1);

public:
int getNumSteps() const { return m_stepfiles.size(); }
Expand Down

0 comments on commit 5e7ba4e

Please sign in to comment.