Skip to content

Commit

Permalink
attempt fix for valgrind mem error
Browse files Browse the repository at this point in the history
  • Loading branch information
bcjaeger committed Oct 14, 2023
1 parent 62f71c6 commit 0d6abdd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Forest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ void Forest::init(std::unique_ptr<Data> input_data,
PredType pred_type,
bool pred_mode,
bool pred_aggregate,
PartialDepType pd_type,
std::vector<arma::mat>& pd_x_vals,
std::vector<arma::uvec>& pd_x_cols,
arma::vec& pd_probs,
bool oobag_pred,
EvalType oobag_eval_type,
arma::uword oobag_eval_every,
Expand Down Expand Up @@ -73,6 +77,10 @@ void Forest::init(std::unique_ptr<Data> input_data,
this->pred_type = pred_type;
this->pred_mode = pred_mode;
this->pred_aggregate = pred_aggregate;
this->pd_type = pd_type;
this->pd_x_vals = pd_x_vals;
this->pd_x_cols = pd_x_cols;
this->pd_probs = pd_probs;
this->oobag_pred = oobag_pred;
this->oobag_eval_type = oobag_eval_type;
this->oobag_eval_every = oobag_eval_every;
Expand Down
4 changes: 4 additions & 0 deletions src/Forest.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ class Forest {
PredType pred_type,
bool pred_mode,
bool pred_aggregate,
PartialDepType pd_type,
std::vector<arma::mat>& pd_x_vals,
std::vector<arma::uvec>& pd_x_cols,
arma::vec& pd_probs,
bool oobag_pred,
EvalType oobag_eval_type,
arma::uword oobag_eval_every,
Expand Down
4 changes: 4 additions & 0 deletions src/orsf_oop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@
pred_type,
pred_mode,
pred_aggregate,
pd_type,
pd_x_vals,
pd_x_cols,
pd_probs,
oobag,
oobag_eval_type,
oobag_eval_every,
Expand Down

0 comments on commit 0d6abdd

Please sign in to comment.