janelia-flyem / gala

Automatic segmentation of electron microscopy volumes
BSD 3-Clause "New" or "Revised" License
76 stars 29 forks source link

Make evaluate functions faster by using scipy.sparse.csc_matrix #4

Closed jni closed 11 years ago

jni commented 11 years ago

This PR makes many functions in gala.evaluate vastly faster and space efficient by changing contingency_table to use a SciPy sparse matrix format (specifically, CSC matrix) instead of a dense numpy array.