This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from sklearn import datasets, cross_validation, metrics | |
import tensorflow as tf | |
from tensorflow.contrib import learn as skflow | |
random.seed(42) | |
# Load dataset and split it into train / test subsets. | |
digits = datasets.load_digits() |