Skip to content

Commit

Permalink
Move regularization parameters to train().
Browse files Browse the repository at this point in the history
  • Loading branch information
Leif Johnson committed Mar 24, 2015
1 parent 99edbb9 commit d9960f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions examples/cifar-autoencoder.py
Expand Up @@ -46,10 +46,9 @@ def main(args):
e = theanets.Experiment(
theanets.Autoencoder,
layers=(K, feat ** 2, K),
input_noise=1,
)

e.train(whiten(train), whiten(valid))
e.train(whiten(train), whiten(valid), input_noise=1)

plot_layers([
color(e.network.find(1, 0).get_value().T).T,
Expand Down
7 changes: 4 additions & 3 deletions examples/lstm_chime.py
Expand Up @@ -57,8 +57,9 @@ def layer(n):
theanets.recurrent.Classifier,
layers=(39, layer(156), layer(300), layer(102), 51),
recurrent_error_start=0,
input_noise=0.6,
max_gradient_norm=10,
)
e.train(batches(scipy.io.netcdf_file(TRAIN_NC)),
batches(scipy.io.netcdf_file(VALID_NC)))
batches(scipy.io.netcdf_file(VALID_NC)),
input_noise=0.6,
max_gradient_norm=10,
)

0 comments on commit d9960f7

Please sign in to comment.