import numpy as np import matplotlib.pyplot as plt from sklearn.datasets import load_digits from sklearn.cross_validation import train_test_split from sklearn.svm import SVC from sklearn.learning_curve import learning_curve from sklearn.model_selection import cross_val_score