Skip to content

Commit 083bae9

Browse files
committed
add test for fit fallback
1 parent 1f78154 commit 083bae9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/integration/static_algorithms.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ end
5555
algorithm = Selector(names=[:x, :w])
5656
X = DataFrames.DataFrame(rand(3, 4), [:x, :y, :z, :w])
5757
model = fit(algorithm) # no data arguments!
58+
# if provided, data is ignored:
59+
@test fit(algorithm, "junk")[] == model[]
5860
@test LearnAPI.algorithm(model) == algorithm
5961
W = transform(model, X)
6062
@test W == DataFrames.DataFrame(Tables.matrix(X)[:,[1,4]], [:x, :w])

0 commit comments

Comments
 (0)