GithubHelp home page GithubHelp logo

Comments (4)

czy36mengfei avatar czy36mengfei commented on May 7, 2024

使用dataset的的话,fit里面不能写batch_size,steps_per_epoch是个epoch时间训练几个batch,所以整个epoch可以不用训练完全部数据,epoch本身就是要填的

from tensorflow2_tutorials_chinese.

Student-HXJ avatar Student-HXJ commented on May 7, 2024

所以model.fit里面使用的batch是之前设置的64 而不是我说的(epochs/steps_per_epoch)是这样吧?

还有如果我设置的steps_per_epoch如果超出了一个epoch的数据量的范围,
eg: epoch1[1,2,3], epoch2[2,1,3]
那么训练是继续下一个epoch呢? [1,2,3,2,1,3]
还是从本次epoch的数据从第一个样本开始继续循环?[1,2,3,1,2,3]
还是会截止到本次epoch数据的最后一个样本?[1,2,3]

from tensorflow2_tutorials_chinese.

czy36mengfei avatar czy36mengfei commented on May 7, 2024

所以model.fit里面使用的batch是之前设置的64 而不是我说的(epochs/steps_per_epoch)是这样吧?

还有如果我设置的steps_per_epoch如果超出了一个epoch的数据量的范围,
eg: epoch1[1,2,3], epoch2[2,1,3]
那么训练是继续下一个epoch呢? [1,2,3,2,1,3]
还是从本次epoch的数据从第一个样本开始继续循环?[1,2,3,1,2,3]
还是会截止到本次epoch数据的最后一个样本?[1,2,3]

嗯,就是之前设置的batch_size.
用repeat重复数据,应该是读完数据接着重头开始读(就像把数据构造成一个环,最后一个结束,接着从新回到第一个),所以应该是[1,2,3,1,2,3]

from tensorflow2_tutorials_chinese.

Student-HXJ avatar Student-HXJ commented on May 7, 2024

谢谢解答

from tensorflow2_tutorials_chinese.

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.