Table Of Contents
Table Of Contents

get_bz2_data

mxnet.test_utils.get_bz2_data(data_dir, data_name, url, data_origin_name)[source]

Download and extract bz2 data.

Parameters:
  • data_dir (str) – Absolute or relative path of the directory name to store bz2 files
  • data_name (str) – Name of the output file in which bz2 contents will be extracted
  • url (str) – URL to download data from
  • data_origin_name (str) – Name of the downloaded b2 file

Examples

>>> get_bz2_data("data_dir", "kdda.t",
                 "https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary/kdda.t.bz2",
                 "kdda.t.bz2")