Dolores R6 Class
Dolores R6 Class
Dolores is a simple feedforward neural network implementation. It uses backpropagation as learning mechanism.
config
List of configuration values
weights
List of weights matrices
new()
Create a new Dolores object.
Dolores$new( layers, learning_rate = 0.01, batch_size = 1, epochs = 10, cost = Cost$QUADRATIC )
layers
List of layers configurations created by layer()
learning_rate
Learning rate. Defaults to .01
batch_size
Batch size. Defaults to 1
epochs
Number of epochs. Defaults to 10
cost
Cost 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)
data
Training data in matrix or data frame format.
Current Dolores
instance.
validate()
Validate neural network.
Dolores$validate(data)
data
Test 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)
data
Input 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)
deep
Whether to make a deep clone.