Skip to content

Commit 52440bc

Browse files
fixed typo
1 parent 2ae52f4 commit 52440bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/functions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ VectorXd calculate_group_gaussian_errors(const VectorXd &y,const VectorXd &predi
126126
return errors;
127127
}
128128

129-
VectorXd calculate_absolute_error(const VectorXd &y,const VectorXd &predicted)
129+
VectorXd calculate_absolute_errors(const VectorXd &y,const VectorXd &predicted)
130130
{
131131
VectorXd errors{(y-predicted).cwiseAbs()};
132132

@@ -149,7 +149,7 @@ VectorXd calculate_errors(const VectorXd &y,const VectorXd &predicted,const Vect
149149
else if(family=="group_gaussian")
150150
errors=calculate_group_gaussian_errors(y,predicted,group,unique_groups);
151151
else if(family=="mae")
152-
errors=calculate_absolute_error(y,predicted);
152+
errors=calculate_absolute_errors(y,predicted);
153153

154154
if(sample_weight.size()>0)
155155
errors=errors.array()*sample_weight.array();

0 commit comments

Comments
 (0)