-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d88790a
commit ed01c64
Showing
20 changed files
with
1,327 additions
and
1,357 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ | |
|
||
setup(name='scikit-datasets', | ||
packages=find_packages(), | ||
version='0.1.23', | ||
version='0.1.24', | ||
description='Scikit-learn-compatible datasets', | ||
long_description=open('README.md', 'r').read(), | ||
author='David Diaz Vico', | ||
author_email='[email protected]', | ||
url='https://github.com/daviddiazvico/scikit-datasets', | ||
download_url='https://github.com/daviddiazvico/scikit-datasets/archive/v0.1.23.tar.gz', | ||
download_url='https://github.com/daviddiazvico/scikit-datasets/archive/v0.1.24.tar.gz', | ||
keywords=['scikit-learn'], | ||
classifiers=['Intended Audience :: Science/Research', | ||
'Topic :: Scientific/Engineering', | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,24 @@ | ||
""" | ||
Scikit-learn-compatible datasets. | ||
@author: David Diaz Vico | ||
@license: MIT | ||
""" | ||
|
||
from . import libsvm, raetsch, sklearn, uci, ucr | ||
try: | ||
from . import cran | ||
except ImportError: | ||
pass | ||
try: | ||
from . import forex | ||
except ImportError: | ||
pass | ||
try: | ||
from . import keel | ||
except ImportError: | ||
pass | ||
try: | ||
from . import keras | ||
except ImportError: | ||
pass | ||
|
||
fetcher = {'libsvm': libsvm.fetch_libsvm, 'raetsch': raetsch.fetch_raetsch, | ||
'sklearn': sklearn.fetch_sklearn, 'uci': uci.fetch_uci, | ||
'ucr': ucr.fetch} | ||
try: | ||
fetcher['cran'] = cran.fetch_cran | ||
except: | ||
pass | ||
try: | ||
fetcher['forex'] = forex.fetch_forex | ||
except: | ||
pass | ||
try: | ||
fetcher['keel'] = keel.fetch_keel | ||
except: | ||
pass | ||
try: | ||
fetcher['keras'] = keras.fetch_keras | ||
except: | ||
pass | ||
|
||
|
||
def fetch(repository, collection=None, dataset=None, **kwargs): | ||
""" Fetch a dataset. """ | ||
args = [] | ||
if collection is not None: | ||
args.append(collection) | ||
if dataset is not None: | ||
args.append(dataset) | ||
return fetcher[repository](*args, **kwargs) | ||
""" | ||
Scikit-learn-compatible datasets. | ||
@author: David Diaz Vico | ||
@license: MIT | ||
""" | ||
|
||
from . import libsvm, raetsch, sklearn, uci, ucr | ||
try: | ||
from . import cran | ||
except ImportError: | ||
pass | ||
try: | ||
from . import forex | ||
except ImportError: | ||
pass | ||
try: | ||
from . import keel | ||
except ImportError: | ||
pass | ||
try: | ||
from . import keras | ||
except ImportError: | ||
pass |
Oops, something went wrong.