DAM4ML客户端库
dam4ml的Python项目详细描述
这是DAM4ML客户端库。
安装
pip安装dam4ml
(呃,漂亮是,呃?)
基本用法
fromdam4mlimportclientfromdam4mlimporttransforms# Login to DAM4MLdataset=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 filterfilter={"tag_slug":"test",}# Iterate through all dataset itemsforitemindataset.as_dict(**filter):# ...process each dataset item here.pass# Convert dataset to a pynum arraydataset.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[]