I have recently started using tensorflow.contrib.learn
(skflow) library and really like it. However, I am facing an issue with using Estimator
, the fit function uses either
- (
X
,Y
, andbatch_size
) - the problem with this approach is that it does not support provision for specifying number of epochs and allowing arbitrary source of data. input_fn
- besides, setting epochs, it gives me much more flexibility on source of training ( which in my case is coming directly from a database).
Now I am aware that I could create input_fn which reads files, however, as I am not interested in dealing with files, the following functions are not useful for me -
tf.contrib.learn.read_batch_examples
tf.contrib.learn.read_batch_features
tf.contrib.learn.read_batch_record_features
Ideally, I would like to use StreamingDataFeeder as input_fn. Any ideas how I can achieve this?