X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=tasks.py;h=04b8f84577097a7ef3de515fa90f6a461429e7e5;hb=62e273047aee0a1d606fbe0312abc16a74d23906;hp=463d94ca1ae4dc43a054c875eba2fe686f0686bd;hpb=233f57347c9560aec2f3cbaf001a8efa56a0243b;p=picoclvr.git diff --git a/tasks.py b/tasks.py index 463d94c..04b8f84 100755 --- a/tasks.py +++ b/tasks.py @@ -809,9 +809,8 @@ class Expr(Task): nb_train_samples, nb_variables=nb_variables, length=sequence_length, - # length=2 * sequence_length, - # randomize_length=True, ) + test_sequences = expr.generate_sequences( nb_test_samples, nb_variables=nb_variables, @@ -911,7 +910,7 @@ class Expr(Task): test_nb_correct, test_nb_delta, test_nb_missed, - ) = compute_nb_correct(self.test_input[:1000]) + ) = compute_nb_correct(self.test_input[:10000]) logger( f"accuracy_test {n_epoch} nb_total {test_nb_total} nb_correct {test_nb_correct} accuracy {(100.0*test_nb_correct)/test_nb_total:.02f}%"