Skip to content

Commit abbde1b

Browse files
authored
Don't test SMS Spam Collection on CI (#164)
* Remove test for SMS Spam * Fix SMS-Spam
1 parent 053da20 commit abbde1b

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/datasets/text/smsspamcollection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function Base.getproperty(::Type{SMSSpamCollection}, s::Symbol)
7575
@warn "SMSSpamCollection.targets() is deprecated, use `SMSSpamCollection().targets` instead."
7676
return () -> SMSSpamCollection().targets
7777
else
78-
return getfield(Titanic, s)
78+
return getfield(SMSSpamCollection, s)
7979
end
8080
end
8181

test/datasets/text.jl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,6 @@
1414
end
1515
end
1616

17-
18-
@testset "SMSSpamCollection" begin
19-
n_obs = 5574
20-
n_targets = 1
21-
n_features = ()
22-
Tx=String
23-
Ty=String
24-
25-
d = SMSSpamCollection()
26-
27-
test_supervised_array_dataset(d;
28-
n_obs, n_targets, n_features,
29-
Tx, Ty)
30-
end
31-
3217
@testset "UD_English" begin
3318
n_features = ()
3419
Tx = Vector{Vector{String}}

test/datasets/text_no_ci.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@testset "SMSSpamCollection" begin
2+
n_obs = 5574
3+
n_targets = 1
4+
n_features = ()
5+
Tx=String
6+
Ty=String
7+
8+
d = SMSSpamCollection()
9+
10+
test_supervised_array_dataset(d;
11+
n_obs, n_targets, n_features,
12+
Tx, Ty)
13+
end
14+

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dataset_tests = [
2222

2323
no_ci_dataset_tests = [
2424
"datasets/graphs_no_ci.jl",
25+
"datasets/text_no_ci.jl",
2526
"datasets/vision/cifar10.jl",
2627
"datasets/vision/cifar100.jl",
2728
"datasets/vision/emnist.jl",

0 commit comments

Comments
 (0)