@@ -71,32 +71,32 @@ test_that("ArchiveAsyncTuning as.data.table function works", {
71
71
# default
72
72
tab = as.data.table(instance $ archive )
73
73
expect_data_table(tab , min.rows = 20 )
74
- expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain_cp " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
74
+ expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
75
75
76
76
# extra measure
77
77
tab = as.data.table(instance $ archive , measures = msr(" classif.acc" ))
78
78
expect_data_table(tab , min.rows = 20 )
79
- expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain_cp " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" , " classif.acc" ))
79
+ expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" , " classif.acc" ))
80
80
81
81
# extra measures
82
82
tab = as.data.table(instance $ archive , measures = msrs(c(" classif.acc" , " classif.mcc" )))
83
83
expect_data_table(tab , min.rows = 20 )
84
- expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain_cp " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" , " classif.acc" , " classif.mcc" ))
84
+ expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" , " classif.acc" , " classif.mcc" ))
85
85
86
86
# exclude column
87
87
tab = as.data.table(instance $ archive , exclude_columns = " timestamp_xs" )
88
88
expect_data_table(tab , min.rows = 20 )
89
- expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain_cp " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
89
+ expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
90
90
91
91
# exclude columns
92
92
tab = as.data.table(instance $ archive , exclude_columns = c(" timestamp_xs" , " resample_result" ))
93
93
expect_data_table(tab , min.rows = 20 )
94
- expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain_cp " , " runtime_learners" , " worker_id" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
94
+ expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain " , " runtime_learners" , " worker_id" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
95
95
96
96
# no exclude
97
97
tab = as.data.table(instance $ archive , exclude_columns = NULL )
98
98
expect_data_table(tab , min.rows = 20 )
99
- expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain_cp " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
99
+ expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
100
100
101
101
# no unnest
102
102
tab = as.data.table(instance $ archive , unnest = NULL )
@@ -125,7 +125,7 @@ test_that("ArchiveAsyncTuning as.data.table function works without resample resu
125
125
126
126
tab = as.data.table(instance $ archive )
127
127
expect_data_table(tab , min.rows = 20 )
128
- expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain_cp " , " runtime_learners" , " worker_id" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
128
+ expect_names(names(tab ), permutation.of = c(" state" , " cp" , " classif.ce" , " x_domain " , " runtime_learners" , " worker_id" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
129
129
130
130
expect_rush_reset(instance $ rush )
131
131
})
@@ -182,7 +182,7 @@ test_that("ArchiveAsyncTuning as.data.table function works with new ids in x_dom
182
182
183
183
tab = as.data.table(instance $ archive )
184
184
expect_data_table(tab , min.rows = 20 )
185
- expect_names(names(tab ), permutation.of = c(" state" , " x1" , " x2" , " classif.ce" , " x_domain_cp " , " x_domain_minsplit " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
185
+ expect_names(names(tab ), permutation.of = c(" state" , " x1" , " x2" , " classif.ce" , " x_domain " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
186
186
187
187
expect_rush_reset(instance $ rush )
188
188
})
@@ -221,7 +221,7 @@ test_that("ArchiveAsyncTuning as.data.table function works with switched new ids
221
221
222
222
tab = as.data.table(instance $ archive )
223
223
expect_data_table(tab , min.rows = 20 )
224
- expect_names(names(tab ), permutation.of = c(" state" , " x1" , " x2" , " classif.ce" , " x_domain_cp " , " x_domain_minsplit " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
224
+ expect_names(names(tab ), permutation.of = c(" state" , " x1" , " x2" , " classif.ce" , " x_domain " , " runtime_learners" , " worker_id" , " resample_result" , " timestamp_xs" , " timestamp_ys" , " pid" , " keys" , " warnings" , " errors" ))
225
225
226
226
expect_rush_reset(instance $ rush )
227
227
})
0 commit comments