Skip to content

Commit

Permalink
Fix class check suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
adimajo committed Mar 5, 2024
1 parent defb1e5 commit 766bebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/glmtree.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ glmtree <-
}


if (class(criterion_iter[[i]]) == "matrix") {
if (is(criterion_iter[[i]], "matrix")) {
criterion_iter[[i]] <- normalizedGini(
actual = criterion_iter[[i]][, 1],
predicted = criterion_iter[[i]][, 2]
Expand Down

0 comments on commit 766bebb

Please # to comment.