public class ModelSavingCallback extends Object implements EvaluationCallback
| Modifier and Type | Field and Description |
|---|---|
protected File |
rootFolder |
protected String |
template |
| Constructor and Description |
|---|
ModelSavingCallback(File rootFolder,
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
|
ModelSavingCallback(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
|
| Modifier and Type | Method and Description |
|---|---|
void |
call(EvaluativeListener listener,
Model model,
long invocationsCount,
IEvaluation[] evaluations) |
protected void |
save(Model model,
String filename)
This method saves model
|
public ModelSavingCallback(@NonNull
String fileNameTemplate)
fileNameTemplate - public ModelSavingCallback(@NonNull
File rootFolder,
@NonNull
String fileNameTemplate)
rootFolder - File object referring to target folderfileNameTemplate - public void call(EvaluativeListener listener, Model model, long invocationsCount, IEvaluation[] evaluations)
call in interface EvaluationCallbackCopyright © 2018. All rights reserved.