diff options
| author | jules <jules@asdf.us> | 2018-04-11 11:26:32 +0200 |
|---|---|---|
| committer | jules <jules@asdf.us> | 2018-04-11 11:26:32 +0200 |
| commit | a04b7b8117ee6993bba35ea99fbd9f2530213e2d (patch) | |
| tree | 9672412ba42a589269ffa53c083c6dfd59191c28 | |
| parent | d559edfb51c7a28f9b3d426f652f90215fef5e26 (diff) | |
specify which experiment to process
| -rwxr-xr-x | latest.pl | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -7,6 +7,14 @@ our $opt_l; # mix and upload files our $opt_v; # print log for all files getopts('lav'); +our $matches = 0; +if (scalar @ARGV) { + $matches = {}; + for (@ARGV) { + my ($name, $ep) = split("-", $_, 2); + $matches->{$name} = 1; + } +} # my $s = "results/exp:03_responses-frame_sizes:8,2-n_rnn:2-dataset:03_responses/checkpoints/best-ep1-it1035"; sub process($){ my ($dir) = @_; @@ -35,6 +43,10 @@ sub process($){ } closedir DIR; + if ($matches && ! exists $matches->{$name}) { + return 0; + } + if ($opt_v) { print $name . "\n"; print `grep valid $log`; |
