Skip to content

PySHAC v0.3.1

Compare
Choose a tag to compare
@titu1994 titu1994 released this 23 Oct 23:44
· 32 commits to master since this release

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)