These are sadly outdated. There should be a warning about that. This in fact is a way to make TF more complicated not less even if it did work. Instead of writing from sklearn.vali… you write tensorflow.contrib.learn and then you lose me there. What is the point again?
Either use SciKitLearn (nice user friendly tool) or learn the gymnastic of TF that is much of the time as transparent as ancient Greek.