Skip to content

overfitting very fast? #12

@asdfqwer2015

Description

@asdfqwer2015

Hi, sorry to bother you once again. But I'm very interested in your model.

I found the model may overfitting in training very fast.

describe:
I tested a trained model, and it seems has a low accuracy in predict video. And I tried to feed the trained model with random cached pickle numpy(10, 8, 112, 112, 3) samples from both trainset and testset. It predict well when process samples from trainset, but predict incorrect result for almost all sampled samples from testsset. BTW, the sampled samples covers all 25 classes.
And I evaluated the testset, the loss is >> 1 while the loss for trainset is almost 0.

So I modified the script, and monitor val loss while training.
for epoch in range(int(200000 // steps_per_epoch) + 1): gesture_classifier.train(input_fn = train_input_fn,steps = steps_per_epoch,hooks = [logging_hook]); eval_results = gesture_classifier.evaluate(input_fn = eval_input_fn, steps=100);
eval samples are random samples from all the testset.
And I get curves like:

image
yellow curve - train loss
blue curve - val loss

And the edit distance for samples from testset likes:
image
val error is still very high.

Is the model overfitting and did I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions