@@ -42,6 +42,12 @@ MLJBase.transform(::DummyStatic, _, x, y) = hcat(x, y)
42
42
MLJBase. package_name (:: Type{<:DummyStatic} ) = " DummyPackage"
43
43
MLJBase. load_path (:: Type{<:DummyStatic} ) = " DummyPackage.Some.Thing.Different"
44
44
45
+ struct DummyStatic2 <: Static end
46
+ MLJBase. transform (:: DummyStatic2 , _, x, y) = hcat (x, y)
47
+ MLJBase. package_name (:: Type{<:DummyStatic2} ) = " DummyPackage"
48
+ MLJBase. load_path (:: Type{<:DummyStatic2} ) = " DummyPackage.Some.Thing.Different"
49
+ MLJBase. implemented_methods (:: Type{<:DummyStatic2} ) = Symbol[]
50
+
45
51
struct SupervisedTransformer <: Deterministic end
46
52
MLJBase. fit (:: SupervisedTransformer , verbosity, X, y) = (42 , nothing , nothing )
47
53
MLJBase. predict (:: SupervisedTransformer , _, Xnew) = fill (4.5 , length (Xnew))
@@ -63,6 +69,11 @@ MLJBase.load_path(::Type{<:SupervisedTransformer}) =
63
69
operations, outcome = MLJTestInterface. operations (smach, X, y)
64
70
@test operations == " transform"
65
71
@test outcome == " ✓"
72
+
73
+ smach = machine (DummyStatic2 ())
74
+ operations, outcome = MLJTestInterface. operations (smach, X, y)
75
+ @test operations == " transform"
76
+ @test outcome == " ✓"
66
77
end
67
78
68
79
true
0 commit comments