save.textmodel_mlp: Load or save keras-based textmodels

View source: R/textmodel_mlp.R

save.textmodel_cnnlstmembR Documentation

Load or save keras-based textmodels

Description

Functions for loading and saving keras-based models. Because these are stored as references, they need to be "serialized" prior to saving, or serialized upon loading. This applies to models fit using textmodel_cnnlstmemb() and textmodel_mlp().

Usage

## S3 method for class 'textmodel_cnnlstmemb'
save(x, ...)

## S3 method for class 'textmodel_cnnlstmemb'
load(x, ...)

## S3 method for class 'textmodel_mlp'
save(x, ...)

## S3 method for class 'textmodel_mlp'
load(x, ...)

Arguments

x

a keras-based fitted textmodel

...

additional arguments passed to save() or load()


quanteda/quanteda.classifiers documentation built on Oct. 20, 2023, 6:53 a.m.