코드 시작 : I 수단 BATCH_SIZE 알고num_epochs와 steps의 차이점은 무엇입니까? tensorflow에서
import tensorflow as tf
import numpy as np
features = [tf.contrib.layers.real_valued_column("x", dimension=1)]
estimator = tf.contrib.learn.LinearRegressor(feature_columns=features)
x = np.array([1., 2., 3., 4.])
y = np.array([0., -1., -2., -3.])
input_fn = tf.contrib.learn.io.numpy_input_fn({"x":x}, y, batch_size=4, num_epochs=1000)
estimator.fit(input_fn=input_fn, steps=1000)
estimator.evaluate(input_fn=input_fn)
,하지만 num_epochs 및 단계는 각각 만 4 개 교육 사례가있을 때 무엇을 의미합니까?
가능한 복제 (http://stackoverflow.com/questions/38340311/what-is-the-difference-between-steps-and-epochs) – ml4294
I 이것이 http://stackoverflow.com/questions/38340311/what-is-the-difference-between-steps-and-epochs의 복제본이라고 생각하십시오. 거기에서 잘 설명 된 대답을 찾을 수 있습니다. – ml4294
또한 설명서를 확인하십시오. https://www.tensorflow.org/api_docs/python/tf/contrib/learn/Trainable – Jeff