Learn R Programming

sits (version 0.10.0)

sits_keras_save: Save a Keras model for later processing in sits

Description

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

Usage

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

Arguments

model

An R Keras model.

hdffile

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

rdsfile

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