Skip to content

Commit

Permalink
class members with the parameter names (shogun-toolbox#5042)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonSurendran committed Jul 9, 2020
1 parent aede117 commit 3fbcbfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/evaluation/CrossValidation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void CrossValidation::init()
{
m_num_runs = 1;

SG_ADD(&m_num_runs, "num_runs", "Number of repetitions");
SG_ADD(&m_num_runs, kNumRuns, "Number of repetitions");
}

std::shared_ptr<EvaluationResult> CrossValidation::evaluate_impl() const
Expand Down
5 changes: 5 additions & 0 deletions src/shogun/evaluation/CrossValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ namespace shogun

/** number of evaluation runs for one fold */
int32_t m_num_runs;

#ifndef SWIG
public:
static constexpr std::string_view kNumRuns = "num_runs";
#endif
};
}

Expand Down

0 comments on commit 3fbcbfe

Please sign in to comment.