Commit 0ecb2eee authored by Sebastian N.'s avatar Sebastian N.

Added parameters checkpoint_period, log_period and eval_train in ConfigurationData

parent 2ed7b07c
Pipeline #221318 passed with stages
in 4 minutes and 15 seconds
......@@ -48,6 +48,20 @@ public class ConfigurationData {
return (Boolean) getConfiguration().getEntry("load_checkpoint").getValue().getValue();
}
public String getCheckpointPeriod() {
if (!getConfiguration().getEntryMap().containsKey("checkpoint_period")) {
return null;
}
return String.valueOf(getConfiguration().getEntry("checkpoint_period").getValue());
}
public String getLogPeriod() {
if (!getConfiguration().getEntryMap().containsKey("log_period")) {
return null;
}
return String.valueOf(getConfiguration().getEntry("log_period").getValue());
}
public Boolean getNormalize() {
if (!getConfiguration().getEntryMap().containsKey("normalize")) {
return null;
......@@ -143,6 +157,13 @@ public class ConfigurationData {
return (Boolean) getConfiguration().getEntry("use_teacher_forcing").getValue().getValue();
}
public Boolean getEvalTrain() {
if (!getConfiguration().getEntryMap().containsKey("eval_train")) {
return null;
}
return (Boolean) getConfiguration().getEntry("eval_train").getValue().getValue();
}
protected Map<String, Object> getMultiParamEntry(final String key, final String valueName) {
if (!configurationContainsKey(key)) {
return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment