Commit d4abb211 authored by Kirhan, Cihad's avatar Kirhan, Cihad
Browse files

ConfLang integration

parent bf3f998c
Pipeline #452630 passed with stage
in 1 minute and 13 seconds
......@@ -724,7 +724,7 @@ public class ConfigurationDataConfLang {
}
protected Boolean configurationContainsKey(final String configurationKey) {
return configuration.hasConfigurationEntry(configurationKey);
return configuration.hasConfigurationEntry(configurationKey) && schema.hasAttributeEntry(configurationKey);
}
protected ASTSignedLiteral getSimpleConfigurationValue(final String configurationKey) {
......
......@@ -5,7 +5,6 @@ configuration FullConfig {
batch_size = 100
load_checkpoint = true
eval_metric = mse
loss = cross_entropy
context = gpu
normalize = true
optimizer = rmsprop {
......
......@@ -9,9 +9,10 @@ schema FullConfig {
num_epoch: N0
batch_size: N0
load_checkpoint: B
normalize: B
optimizer: complex<optimizer>
eval_metric: complex<eval_metric>
loss: complex<loss>
complex optimizer {
instances:
......@@ -19,6 +20,11 @@ schema FullConfig {
define rmsprop {
learning_rate: Q
learning_rate_minimum: Q
rescale_grad: Q
clip_gradient: Q
clip_weights: Q
centered: B
weight_decay: Q
learning_rate_decay: Q
learning_rate_policy: enum {
......@@ -26,6 +32,7 @@ schema FullConfig {
}
step_size: N0
gamma1: Q
gamma2: Q
epsilon: Q
}
}
......
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