Skip to content

Commit 7fbe88c

Browse files
committed
Update table content
1 parent 712bb5d commit 7fbe88c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/commonMachineLearningClassification.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,10 @@
323323
} else {
324324
table$title <- gettext("Model Summary: Multinomial Regression Classification")
325325
}
326+
family <- classificationResult[["family"]]
327+
family <- paste0(toupper(substr(family, 1, 1)), substr(family, 2, nchar(family)))
326328
row <- data.frame(
327-
family = classificationResult[["family"]],
329+
family = family,
328330
nTrain = nTrain,
329331
nTest = classificationResult[["ntest"]],
330332
testAcc = classificationResult[["testAcc"]]

tests/testthat/test-mlclassificationlogisticmultinomial.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test_that("Class Proportions table results match", {
3939
test_that("Model Summary: Multinomial Regression Classification table results match", {
4040
table <- results[["results"]][["classificationTable"]][["data"]]
4141
jaspTools::expect_equal_tables(table,
42-
list("multinomial", 30, 120, 1))
42+
list("Multinomial", 30, 120, 1))
4343
})
4444

4545
test_that("Confusion Matrix table results match", {

0 commit comments

Comments
 (0)