Learn R Programming

sits (version 1.5.2)

plot.torch_model: Plot Torch (deep learning) model

Description

Plots a deep learning model developed using torch.

Usage

# S3 method for torch_model
plot(x, y, ...)

Value

A plot object produced by the ggplot2 package showing the evolution of the loss and accuracy of the model.

Arguments

x

Object of class "torch_model".

y

Ignored.

...

Further specifications for plot.

Author

Felipe Souza, lipecaso@gmail.com

Rolf Simoes, rolf.simoes@inpe.br

Alber Sanchez, alber.ipia@inpe.br

Examples

Run this code
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)
}

Run the code above in your browser using DataLab