How to use datasets.fetch_mldata() in sklearn?

后端 未结 11 2144
半阙折子戏
半阙折子戏 2020-12-30 05:42

I am trying to run the following code for a brief machine learning algorithm:

import re
import argparse
import csv
from collections import Counter
from sklea         


        
11条回答
  •  没有蜡笔的小新
    2020-12-30 06:11

    Try it like this:

    dataDict = fetch_mldata('MNIST original')
    

    This worked for me. Since you used the from ... import ... syntax, you shouldn't prepend datasets when you use it

提交回复
热议问题