Skip to content

Commit

Permalink
Add regularization to the auto-regression operator test using a DeepO…
Browse files Browse the repository at this point in the history
…Net model
  • Loading branch information
ViktorC committed Jan 6, 2023
1 parent 6f472e2 commit b2a9a5c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ def build_model():
combiner_net=tf.keras.Sequential(
[
tf.keras.layers.Input(3 * diff_eq.y_dimension * 10),
tf.keras.layers.Dense(diff_eq.y_dimension),
tf.keras.layers.Dense(
diff_eq.y_dimension,
kernel_regularizer=tf.keras.regularizers.L2(l2=1e-5),
),
]
),
)
Expand Down

0 comments on commit b2a9a5c

Please sign in to comment.