@@ -42,6 +42,12 @@ MLJBase.transform(::DummyStatic, _, x, y) = hcat(x, y)
4242MLJBase. package_name (:: Type{<:DummyStatic} ) = " DummyPackage"
4343MLJBase. load_path (:: Type{<:DummyStatic} ) = " DummyPackage.Some.Thing.Different"
4444
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+
4551struct SupervisedTransformer <: Deterministic end
4652MLJBase. fit (:: SupervisedTransformer , verbosity, X, y) = (42 , nothing , nothing )
4753MLJBase. predict (:: SupervisedTransformer , _, Xnew) = fill (4.5 , length (Xnew))
@@ -63,6 +69,11 @@ MLJBase.load_path(::Type{<:SupervisedTransformer}) =
6369 operations, outcome = MLJTestInterface. operations (smach, X, y)
6470 @test operations == " transform"
6571 @test outcome == " ✓"
72+
73+ smach = machine (DummyStatic2 ())
74+ operations, outcome = MLJTestInterface. operations (smach, X, y)
75+ @test operations == " transform"
76+ @test outcome == " ✓"
6677end
6778
6879true
0 commit comments