Class ModelSavingCallback
- java.lang.Object
-
- org.deeplearning4j.optimize.listeners.callbacks.ModelSavingCallback
-
- All Implemented Interfaces:
EvaluationCallback
public class ModelSavingCallback extends Object implements EvaluationCallback
-
-
Field Summary
Fields Modifier and Type Field Description protected FilerootFolderprotected Stringtemplate
-
Constructor Summary
Constructors Constructor Description ModelSavingCallback(@NonNull File rootFolder, @NonNull String fileNameTemplate)This constructor will create ModelSavingCallback instance that will save models in specified folder PLEASE NOTE: Make sure you have write access to the target folderModelSavingCallback(@NonNull String fileNameTemplate)This constructor will create ModelSavingCallback instance that will save models in current folder PLEASE NOTE: Make sure you have write access to the current folder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcall(EvaluativeListener listener, Model model, long invocationsCount, IEvaluation[] evaluations)protected voidsave(Model model, String filename)This method saves model
-
-
-
Constructor Detail
-
ModelSavingCallback
public ModelSavingCallback(@NonNull @NonNull String fileNameTemplate)This constructor will create ModelSavingCallback instance that will save models in current folder PLEASE NOTE: Make sure you have write access to the current folder- Parameters:
fileNameTemplate-
-
ModelSavingCallback
public ModelSavingCallback(@NonNull @NonNull File rootFolder, @NonNull @NonNull String fileNameTemplate)This constructor will create ModelSavingCallback instance that will save models in specified folder PLEASE NOTE: Make sure you have write access to the target folder- Parameters:
rootFolder- File object referring to target folderfileNameTemplate-
-
-
Method Detail
-
call
public void call(EvaluativeListener listener, Model model, long invocationsCount, IEvaluation[] evaluations)
- Specified by:
callin interfaceEvaluationCallback
-
-