|
1 | 1 | expect_prediction_clust = function(p) {
|
2 | 2 | expect_prediction(p)
|
3 |
| - checkmate::expect_r6(p, "PredictionClust", |
| 3 | + expect_r6(p, "PredictionClust", |
4 | 4 | public = c("row_ids", "truth", "predict_types", "prob", "partition")
|
5 | 5 | )
|
6 |
| - checkmate::expect_numeric(p$truth, any.missing = TRUE, len = length(p$row_ids), null.ok = TRUE) |
7 |
| - checkmate::expect_numeric(p$partition, |
| 6 | + expect_numeric(p$truth, any.missing = TRUE, len = length(p$row_ids), null.ok = TRUE) |
| 7 | + expect_numeric(p$partition, |
8 | 8 | any.missing = FALSE, len = length(p$row_ids),
|
9 | 9 | null.ok = TRUE
|
10 | 10 | )
|
11 | 11 | if ("prob" %in% p$predict_types) {
|
12 |
| - checkmate::expect_matrix(p$prob, "numeric", any.missing = FALSE, nrows = length(p$row_ids)) |
| 12 | + expect_matrix(p$prob, "numeric", any.missing = FALSE, nrows = length(p$row_ids)) |
13 | 13 | }
|
14 | 14 | }
|
15 | 15 |
|
16 |
| -expect_task_clust = function(task) { |
17 |
| - checkmate::expect_r6(task, "TaskClust") |
18 |
| -} |
| 16 | +expect_task_clust = function(task) expect_r6(task, "TaskClust") |
19 | 17 |
|
20 | 18 | expect_prediction_complete = function(p, predict_type) {
|
21 |
| - expect_false(checkmate::anyMissing(p[[predict_type]])) |
| 19 | + expect_false(anyMissing(p[[predict_type]])) |
22 | 20 | }
|
23 | 21 |
|
24 | 22 | expect_prediction_exclusive = function(p, predict_type) {
|
|
0 commit comments