Skip to content

Latest commit

 

History

History
 
 

utils

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Utilities

The utilities module implements a number of useful functions and objects that power other ML algorithms across the repo.

  • data_structures.py implements a few useful data structures

  • kernels.py implements several general-purpose similarity kernels

    • Linear kernel
    • Polynomial kernel
    • Radial basis function kernel
  • distance_metrics.py implements common distance metrics

    • Euclidean (L2) distance
    • Manhattan (L1) distance
    • Chebyshev (L-infinity) distance
    • Minkowski-p distance
    • Hamming distance
  • windows.py implements several common windowing functions

    • Hann
    • Hamming
    • Blackman-Harris
    • Generalized cosine
  • testing.py implements helper functions that prove useful when writing unit tests, including data generators and various assert statements