yzhao062/pyod

callbacks in autoencoder

Open

#150 opened on Dec 16, 2019

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Python (7,762 stars) (1,308 forks)batch import
enhancementgood first issuehelp wanted

Description

How can i implement callback parameter in fit moder Autoencoder ? There is not parameter.

from keras.callbacks.callbacks import EarlyStopping cb_earlystop = EarlyStopping(monitor='val_loss', min_delta=0, patience=0, verbose=0, mode='auto', baseline=None, restore_best_weights=False) pyod_model.fit(scaler, callbacks=[cb_earlystop])

TypeError: fit() got an unexpected keyword argument 'callbacks'

Can you implement this parameter? Its very usefull for monitor, early stop and another cases.

Contributor guide