Code Monkey home page Code Monkey logo

Comments (4)

glample avatar glample commented on July 17, 2024

Hi,

This is really up to you how to set --epoch_size, it depends on how often you want to evaluate your model (not so often because evaluation takes a bit of time). I would recommend something like --epoch_size 500000.

Regarding --max_epoch, this is only implemented to prevent the model from running indefinitely. But usually, if you define a validation metric as --stopping_criterion bleu_en_fr_valid,10 (to kill the experiment if the BLEU on en -> fr has not improved over 10 epochs), the model will end up converging pretty quickly so the value of max_epoch is not relevant, and the best is just to set it to something very high so that it doesn't have any effect. Default value is 100000 and you can just let this.

from unsupervisedmt.

liujiqiang999 avatar liujiqiang999 commented on July 17, 2024

Hi, normally epoch_size means the number of times all training set is trained once. We only use 5% training data for each epoch If using dataset and hyperparameters you provide. Is it wrong to understand?

from unsupervisedmt.

glample avatar glample commented on July 17, 2024

You are correct. Here, an epoch is not an iteration over the training set, it's an iteration over an arbitrary number of sentences. I do it this way because the training set is too big to evaluate only at the end of regular epochs.

from unsupervisedmt.

liujiqiang999 avatar liujiqiang999 commented on July 17, 2024

Ok, thank you.

from unsupervisedmt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.