armed.misc#

Miscellaneous utilities for expanding paths, getting datestamps, etc.

Functions

expand_data_path(path[, make])

Concatenate path to DATADIR in settings.py.

expand_results_path(path[, make])

Concatenate directory path to RESULTSDIR in settings.py.

get_datestamp([with_time])

Get datestamp with optional timestamp in format YYYY-MM-DD.

make_random_onehot(n_rows, n_cols)

Create a random one-hot encoding matrix