Skip to content

Commit

Permalink
Bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddiazvico committed Dec 11, 2018
1 parent d88790a commit ed01c64
Show file tree
Hide file tree
Showing 20 changed files with 1,327 additions and 1,357 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ script:
- python setup.py test
- mkdir docs
- export PYTHONPATH=`pwd`
- sphinx-quickstart -q -p scikit-datasets -a "David Diaz Vico" -v 0.1 -r 0.1.23 -l en --ext-autodoc --ext-viewcode --ext-githubpages --extensions sphinxcontrib.napoleon --no-makefile --no-batchfile docs
- sphinx-quickstart -q -p scikit-datasets -a "David Diaz Vico" -v 0.1 -r 0.1.24 -l en --ext-autodoc --ext-viewcode --ext-githubpages --extensions sphinxcontrib.napoleon --no-makefile --no-batchfile docs
- sphinx-apidoc -o docs/_static/ skdatasets -F -a -l
- travis-sphinx -v build -s docs -n
after_success:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
78 changes: 24 additions & 54 deletions skdatasets/__init__.py
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
Loading

0 comments on commit ed01c64

Please sign in to comment.