@@ -42,12 +42,6 @@ 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-
5145struct SupervisedTransformer <: Deterministic end
5246MLJBase. fit (:: SupervisedTransformer , verbosity, X, y) = (42 , nothing , nothing )
5347MLJBase. predict (:: SupervisedTransformer , _, Xnew) = fill (4.5 , length (Xnew))
@@ -69,11 +63,6 @@ MLJBase.load_path(::Type{<:SupervisedTransformer}) =
6963 operations, outcome = MLJTestInterface. operations (smach, X, y)
7064 @test operations == " transform"
7165 @test outcome == " ✓"
72-
73- smach = machine (DummyStatic2 ())
74- operations, outcome = MLJTestInterface. operations (smach, X, y)
75- @test operations == " transform"
76- @test outcome == " ✓"
7766end
7867
7968true
0 commit comments