File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 15
15
@mlj_model mutable struct I1 <: Interval
16
16
end
17
17
18
+ @mlj_model mutable struct SA <: SupervisedAnnotator
19
+ end
20
+
21
+ @mlj_model mutable struct UA <: UnsupervisedAnnotator
22
+ end
23
+
18
24
foo (:: P1 ) = 0
19
25
bar (:: P1 ) = nothing
20
26
@@ -24,6 +30,8 @@ bar(::P1) = nothing
24
30
md = D1 ()
25
31
mp = P1 ()
26
32
mi = I1 ()
33
+ sa = SA ()
34
+ ua = UA ()
27
35
28
36
@test input_scitype (ms) == Unknown
29
37
@test output_scitype (ms) == Unknown
@@ -47,7 +55,9 @@ bar(::P1) = nothing
47
55
@test name (ms) == " S1"
48
56
49
57
@test is_supervised (ms)
58
+ @test is_supervised (sa)
50
59
@test ! is_supervised (mu)
60
+ @test ! is_supervised (ua)
51
61
@test prediction_type (ms) == :unknown
52
62
@test prediction_type (md) == :deterministic
53
63
@test prediction_type (mp) == :probabilistic
You can’t perform that action at this time.
0 commit comments