class sklearn.utils.testing.mock_mldata_urlopen(*args, **kwargs)
[source]
Object that mocks the urlopen function to fake requests to mldata.
When requesting a dataset with a name that is in mock_datasets, this object creates a fake dataset in a StringIO object and returns it. Otherwise, it raises an HTTPError.
Deprecated since version 0.20: Will be removed in version 0.22
Parameters: |
|
---|
__call__ (urlname) |
|
__init__(*args, **kwargs)
[source]
DEPRECATED: deprecated in version 0.20 to be removed in version 0.22
© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.utils.testing.mock_mldata_urlopen.html