public class Recovery<T extends Keyed>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Recovery.ReferenceType |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REFERENCES_META_FILE_SUFFIX |
| Constructor and Description |
|---|
Recovery(java.lang.String storagePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
exportReferences(Recoverable<T> r)
Saves all of the keyed objects used by this Grid's params.
|
void |
loadReferences(Recoverable<T> r) |
void |
onDone(Recoverable<T> r)
Called by the recoverable that the training was finished successfully.
|
void |
onModel(Recoverable<T> r,
Key<Model> modelKey)
Called by the Recoverable to notify of new model was trained and needs to persisted
|
void |
onStart(Recoverable<T> r)
Called when the training begins, so that initial state can be persisted
|
java.lang.String |
referencesMetaFile(Recoverable<T> r) |
public static final java.lang.String REFERENCES_META_FILE_SUFFIX
public Recovery(java.lang.String storagePath)
storagePath - directory to use as base for recovery snapshotspublic java.lang.String referencesMetaFile(Recoverable<T> r)
public void onStart(Recoverable<T> r)
r - a Recoverable to persistpublic void onModel(Recoverable<T> r, Key<Model> modelKey)
r - a Recoverable to updatemodelKey - key of the newly trained modelpublic void onDone(Recoverable<T> r)
public void exportReferences(Recoverable<T> r)
public void loadReferences(Recoverable<T> r)