Skip to content

Commit

Permalink
deprecating fit! and train! methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-alt committed Jun 10, 2024
1 parent 943965d commit 1bd58dd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/MLJFlux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export NeuralNetworkRegressor, MultitargetNeuralNetworkRegressor
export NeuralNetworkClassifier, ImageClassifier
export CUDALibs, CPU1

include("deprecated.jl")


end #module
19 changes: 19 additions & 0 deletions src/deprecated.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Base.@deprecate fit!(model::MLJFlux.MLJFluxModel, penalty, chain, optimiser, epochs, verbosity, X, y) train(
model::MLJFlux.MLJFluxModel,
chain,
optimiser,
optimiser_state,
epochs,
verbosity,
X,
y,
) false

Base.@deprecate train!(model::MLJFlux.MLJFluxModel, penalty, chain, optimiser, X, y) train_epoch(
model::MLJFlux.MLJFluxModel,
chain,
optimiser,
optimiser_state,
X,
y,
) false

0 comments on commit 1bd58dd

Please sign in to comment.