Learn R Programming

sits (version 1.12.0)

sits_save_keras: Save a Keras model for later processing in sits

Description

Takes a Keras model trained by sits_deeplearning and saves it in two files. One file is the keras model itself (saved as hdf5) and the other is the R enviroment required for sits to work with the model.

Usage

sits_save_keras(model, hdffile = "./model_keras.h5",
  rdsfile = "./model_keras.rds")

Arguments

model

An R Keras model trained by sits_deeplearning.

hdffile

An hdf5 file where the keras model is to be saved.

rdsfile

A rds file where the R environment is to be saved.