Skip to contents

This functions download the keras model from the TengMCing/autovi_data Github repo using download.file() and load the model using reticulate::import("tensorflow")$keras$models$load_model. Note that tensorflow version greater than 2.15 is not supported.

Usage

get_keras_model(model_name)

Arguments

model_name

String. The model name. See also list_keras_model().

Value

A keras model.

Examples

keras_model <- try(get_keras_model("vss_phn_32"))
if (!inherits(keras_model, "try-error")) keras_model$summary()