Skip to contents

Check whether a synthesizer has been fitted

Usage

is_fitted(x)

Arguments

x

A synthesizer object.

Value

TRUE if fit() has been called; FALSE otherwise.

Examples

syn <- gaussian_copula_synthesizer(metadata())
is_fitted(syn)  # FALSE before fitting
#> [1] FALSE