Pointer-Networks icon indicating copy to clipboard operation
Pointer-Networks copied to clipboard

Evaluating test data while training, not other process

Open SSUHan opened this issue 6 years ago • 1 comments

Hello jingxil,

Thank you for sharing this wonderful codes :) I'm trying to use this code in "Sentence Reordering Task" now, then I got some troubles..

You use the forward_only option to separate "train" scope and "test" (or inference) scope into process units. However, I want to do test during training to see if the model overfits.. but it's not easy because of attention mechanism(-> train and test run differently..) :(

Is there any good way to solve this problem??

Even if you don't code it, I'd really appreciate if you could share a reference sites or hints I could refer to

Thank you

SSUHan avatar Dec 19 '18 03:12 SSUHan

Hi, SSUHan. Currently, I am using the PyTorch framework which is easy to switch between 'test' and 'train' mode. Since I am quite rusty at the Tensorflow, I do not think I can help here. Sorry for that.

jingxil avatar Dec 25 '18 05:12 jingxil