sgd.Plot objects of class sgd.
# S3 method for sgd
plot(x, ..., type = "mse", xaxis = "iteration")# S3 method for list
plot(x, ..., type = "mse", xaxis = "iteration")
object of class sgd.
additional arguments used for each type of plot. See ‘Details’.
character specifying the type of plot: "mse",
"clf", "mse-param". See ‘Details’. Default is
"mse".
character specifying the x-axis of plot: "iteration"
plots the y values over the log-iteration of the algorithm;
"runtime" plots the y values over the time in seconds to reach them.
Default is "iteration".
Types of plots available:
mseMean squared error in predictions, which takes the following arguments:
x_testtest set
y_testtest responses to compare predictions to
clfClassification error in predictions, which takes the following arguments:
x_testtest set
y_testtest responses to compare predictions to
mse-paramMean squared error in parameters, which takes the following arguments:
true_paramtrue vector of parameters to compare to