-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add missing datasets and document datasets
- Loading branch information
1 parent
6efd58c
commit 3ac973f
Showing
5 changed files
with
307 additions
and
53 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 |
---|---|---|
@@ -1,25 +1,48 @@ | ||
"""CapyMOA comes with some datasets 'out of the box'. Simply import the dataset | ||
and start using it, the data will be downloaded automatically if it is not | ||
already present in the download directory. You can configure where the datasets | ||
are downloaded to by setting an environment variable (See :mod:`capymoa.env`) | ||
>>> from capymoa.datasets import ElectricityTiny | ||
>>> stream = ElectricityTiny() | ||
>>> stream.next_instance().x | ||
array([0. , 0.056443, 0.439155, 0.003467, 0.422915, 0.414912]) | ||
Alternatively, you may download the datasets all at once with the command line interface | ||
provided by ``capymoa.datasets``: | ||
.. code-block:: bash | ||
python -m capymoa.datasets --help | ||
""" | ||
|
||
from ._datasets import ( | ||
CovtFD, | ||
Covtype, | ||
RBFm_100k, | ||
Sensor, | ||
RTG_2abrupt, | ||
RBFm_100k, | ||
Hyper100k, | ||
Sensor, | ||
ElectricityTiny, | ||
Fried, | ||
CovtypeTiny | ||
ElectricityTiny, | ||
Electricity, | ||
CovtypeTiny, | ||
CovtypeNorm, | ||
Covtype, | ||
CovtFD, | ||
) | ||
from .downloader import get_download_dir | ||
|
||
__all__ = [ | ||
"Hyper100k", | ||
"CovtFD", | ||
"Covtype", | ||
"RBFm_100k", | ||
"RTG_2abrupt", | ||
"Sensor", | ||
"ElectricityTiny", | ||
"RTG_2abrupt", | ||
"RBFm_100k", | ||
"Hyper100k", | ||
"Fried", | ||
"ElectricityTiny", | ||
"Electricity", | ||
"CovtypeTiny", | ||
"CovtypeNorm", | ||
"Covtype", | ||
"CovtFD", | ||
"get_download_dir", | ||
] |
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
Oops, something went wrong.