Fix statefull RNN's validation set range

This commit is contained in:
Aurélien Geron
2022-09-12 11:48:12 +12:00
parent 7a551f5fb1
commit de0f184265

View File

@@ -735,7 +735,8 @@
" return ds.map(lambda window: (window[:, :-1], window[:, 1:])).prefetch(1)\n", " return ds.map(lambda window: (window[:, :-1], window[:, 1:])).prefetch(1)\n",
"\n", "\n",
"stateful_train_set = to_dataset_for_stateful_rnn(encoded[:1_000_000], length)\n", "stateful_train_set = to_dataset_for_stateful_rnn(encoded[:1_000_000], length)\n",
"stateful_valid_set = to_dataset_for_stateful_rnn(encoded[:1_000_000], length)\n", "stateful_valid_set = to_dataset_for_stateful_rnn(encoded[1_000_000:1_060_000],\n",
" length)\n",
"stateful_test_set = to_dataset_for_stateful_rnn(encoded[1_060_000:], length)" "stateful_test_set = to_dataset_for_stateful_rnn(encoded[1_060_000:], length)"
] ]
}, },