utils.is_fitted

utils.is_fitted(model)

Check if a model object has been fitted.

This is determined by checking for the presence of a params attribute.

Parameters

Name Type Description Default
model object The model object to check. required

Returns

Name Type Description
bool True if the model appears to be fitted, False otherwise.