TensorFlow and anomaly detection