restarter module

Full Documentation for hippynn.databases.restarter module. Click here for a summary page.

Classes for allowing reload of database.

This isn’t meant to cover all possible use cases, but the conveniently allow restarting from a checkpoint file without manually re-loading the database.

Restarting a database should only be performed if no preprocessing is applied, i.e. in order for this functionality to work automatically, you should save a copy of your database completely preprocessed. Otherwise you’ll need to reproduce the processing that was applied between constructing the database object and constructing the checkpoint.

class NoRestart[source]

Bases: Restarter

attempt_restart()[source]
class RestartDB(cls, *args, **kwargs)[source]

Bases: Restarter

attempt_restart()[source]
class Restartable[source]

Bases: object

classmethod make_restarter(*args, **kwargs)[source]
class Restarter[source]

Bases: object

attempt_restart()[source]