-
Notifications
You must be signed in to change notification settings - Fork 0
Minibatch_GD
Yi Zhu edited this page Mar 16, 2021
·
1 revision
Minibatch_GD
is Minibatch Gradient Descent.
Minibatch_GD.fit(;model::Any, input_data::Array{Float32}, output_data::Array{Float32}, loss_function::Any, monitor::Any, α::Float64=0.01, epochs::Int64=20, batch::Real=32, mini_batch::Int64=5)
model
: any sequential models
input_data
: a 2-dimensional input data in a shape of (,batch_size)
output_data
: a 2-dimensional output data in a shape of (,batch_size)
loss_function
: a loss function
monitor
: a monitor
α
: learning rate, default 0.01
epochs
: number of training epochs, default 20
batch
: the number of batches for each training epoch, default 32
mini_batch
: the size of minibatch for each update, default 5
Star the repo if you like it! :-)