Dam4ML client library
Project description
This is the dam4ml client library.
Installation
pip install dam4ml
(Ugh, pretty is, uh?)
Basic usage
from dam4ml import client
from dam4ml import transforms
# Login to DAM4ML
dataset = client.connect("mnist", api_key="")
# (optional) Pre-load the whole dataset for offline performance.
# This will take a while but will improve further performance.
dataset.load()
# (optional) You can pre-filter your dataset. See DAM4ML website
# for more information about how to build your filter
filter = {
"tag_slug": "test",
}
# Iterate through all dataset items
for item in dataset.as_dict(**filter):
# ...process each dataset item here.
pass
# Convert dataset to a pynum array
dataset.as_pynum(**filter)
# Even better, simulate what Keras' load_dataset() method would do:
pn_dataset = dataset.as_pynum()
(x_train, y_train) = pn_dataset[]
(x_val, y_val) = pn_dataset[]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dam4ml-1.0.0.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dam4ml-1.0.0.tar.gz.
File metadata
- Download URL: dam4ml-1.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
332c1c85146737e5cfc0a8b0424a6908b582666a9c4d78da726f4931ef629898
|
|
| MD5 |
200a0695fea787dfeb6ad43e16661fec
|
|
| BLAKE2b-256 |
c2d5358aa7977f294ccdabf082af75ebf2154d7336cc40b61d30b8d615a6bc95
|
File details
Details for the file dam4ml-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dam4ml-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36579e47a86961ea8aeafa1a59924fd54c8557073d403b823b3c99b74c51e9d9
|
|
| MD5 |
1f3688655da26755e484c06cca0857a9
|
|
| BLAKE2b-256 |
6467ffe5ac7b8fbe128dcc5780426f97caa8ad5743ab316ddc1aa039ffb05369
|