Dolores R6 Class
Dolores R6 Class
Dolores is a simple feedforward neural network implementation. It uses backpropagation as learning mechanism.
configList of configuration values
weightsList of weights matrices
new()Create a new Dolores object.
Dolores$new( layers, learning_rate = 0.01, batch_size = 1, epochs = 10, cost = Cost$QUADRATIC )
layersList of layers configurations created by layer()
learning_rateLearning rate. Defaults to .01
batch_sizeBatch size. Defaults to 1
epochsNumber of epochs. Defaults to 10
costCost function vector defined as [function, function_derivative]Check out Cost enum for available functions. Defaults to Cost$QUADRATIC.
A new Dolores object.
train()Train neural network.
Dolores$train(data)
dataTraining data in matrix or data frame format.
Current Dolores instance.
validate()Validate neural network.
Dolores$validate(data)
dataTest data in matrix or data frame format.
Returns output of cost function. It's usually a list of total and mean errors.
calculate()Feed data into network and calculate output.
Dolores$calculate(data)
dataInput data in matrix or data frame format.
Calculated output values.
clone()The objects of this class are cloneable with this method.
Dolores$clone(deep = FALSE)
deepWhether to make a deep clone.