Comments (4)
使用dataset的的话,fit里面不能写batch_size,steps_per_epoch是个epoch时间训练几个batch,所以整个epoch可以不用训练完全部数据,epoch本身就是要填的
from tensorflow2_tutorials_chinese.
所以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.
所以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.
谢谢解答
from tensorflow2_tutorials_chinese.
Related Issues (20)
- 使用tensorflow2.0中的keras,如何嵌入预训练的词向量
- transform
- Tensorflow2教程-基础CNN网络 HOT 2
- tf.keras问题
- tf2.0 在模型训练的时候还是用的静态图吧?
- 请问,tf2如何实现共享变量?
- tf2.0 initializer怎么使用 HOT 2
- 咨询一下可否二次分发,修改
- 022cnn的reshape HOT 1
- tf2.0训练速度慢于1.x HOT 4
- tensorflow
- save model
- 教程很好,可以出一些实战项目的教程嘛 HOT 1
- 为什么我的tensorflow2.0不支持python的if 还有while 这些语句,即使我加了@tf.function HOT 4
- 如何控制显存使用 HOT 2
- 我在安装tfds时候除了问题 HOT 4
- 新增内容请求 HOT 2
- CNN+RNN
- 在搞ai项目 wx交流
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow2_tutorials_chinese.