Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Blunde1 committed May 28, 2020
1 parent 7489c29 commit 007a627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/src/gbtorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Rcpp::List ENSEMBLE::get_param(){
double ENSEMBLE::initial_prediction(Tvec<double> &y, std::string loss_function, Tvec<double> &w){

double pred=0;
int n = y.size();
//int n = y.size();
//double pred_g_transform = (y*w).sum()/n; // Only initialize once, transform given link
double pred_g_transform = y.sum()/w.sum(); // should be optim given weights...

Expand Down

0 comments on commit 007a627

Please sign in to comment.