Changelog
- Added support for Callbacks.
History
and CSVLogger
are the first available.
History
callback is now returned for all shac.fit(...)
and shac.fit_dataset(...)
calls.
Example
from pyshac.config.callbacks import History, CSVLogger
shac = SHAC(...)
# History is not needed here, as it is automatically added by default for all .fit / .fit_dataset calls.
callbacks = [History(), CSVLogger('path/to/file.csv')]
history = shac.fit(evaluation_function, callbacks=callbacks)
OR
history = shac.fit_dataset('path/to/dataset', callbacks=callbacks)
print(history.history)