util
Module containing miscellaneous utility functions without a home anywhere else.
-
util.fill_matrix_diagonal(matrix, value)
- Implementation of fill_diagonal from numpy
-
util.flatten(list)
- Returen flattened version of list
-
util.interrogate(item)
- Print useful information about item.
-
util.load_words(path)
- Return document as list of words from a file path
-
util.test_unique(path='../data/reuters1000/')
- Check if there are any documents with multiple categories in dataset on given path.
-
util.timed(f)
- Decorator for measuring time used in functions