Skip to content
Snippets Groups Projects
Commit c02855e7 authored by Gael Varoquaux's avatar Gael Varoquaux
Browse files

BUG: Correct bug in digits dataset loading introduced by previous

checking.



git-svn-id: https://scikit-learn.svn.sourceforge.net/svnroot/scikit-learn/trunk@666 22fbfee3-77ab-4535-9bad-27d1bd3bc7d8
parent 661af631
Branches
Tags
No related merge requests found
......@@ -96,7 +96,7 @@ def load_digits():
flat_data = data[:, :-1]
images = flat_data.view()
images.shape = (-1, 8, 8)
return Bunch(data=flat_data, target=target.as_type(np.int),
return Bunch(data=flat_data, target=target.astype(np.int),
target_names=np.arange(10),
images=images,
DESCR=fdescr.read())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment