I would like to use SKFLOW to step through the fit of a DNNClassifier, unfortunately code such as:
step_classifier = skflow.DNNClassifier(hidden_units=[10, 20, 10], n_classes=3)
for _ in range(50):
step_classifier = step_classifier.partial_fit(X, Y, steps =1 ,batch_size=32)
score = metrics.accuracy_score(y, step_classifier.predict(x))
print("Accuracy: %f" % score)
does not produce the desired result -- each iteration of the fit provides the same accuracy:
Accuracy: 0.315789
Accuracy: 0.315789
Accuracy: 0.315789
Accuracy: 0.315789
etc
It seems in previous versions on this DNNClassifier ie TensorFlowDNNClassifier there was continue_training flag that would produce the desired effect. This is not available in DNNClassifier. So how is per epoch stepwise training correctly implemented in SKFLOW? Thank you