plot.torch_model {sits} | R Documentation |
Plot Torch (deep learning) model
Description
Plots a deep learning model developed using torch.
Usage
## S3 method for class 'torch_model'
plot(x, y, ...)
Arguments
x |
Object of class "torch_model". |
y |
Ignored. |
... |
Further specifications for plot. |
Value
A plot object produced by the ggplot2 package showing the evolution of the loss and accuracy of the model.
Note
This code has been lifted from the "keras" package.
Please refer to the sits documentation available in <https://e-sensing.github.io/sitsbook/> for detailed examples.
Author(s)
Felipe Souza, lipecaso@gmail.com
Rolf Simoes, rolf.simoes@inpe.br
Alber Sanchez, alber.ipia@inpe.br
Examples
if (sits_run_examples()) {
# Retrieve the samples for Mato Grosso
# train a tempCNN model
ml_model <- sits_train(samples_modis_ndvi, ml_method = sits_tempcnn)
# plot the model
plot(ml_model)
}
[Package sits version 1.5.0 Index]