Commit 11a5de94 authored by rpeckner-broad's avatar rpeckner-broad Committed by GitHub
Browse files

Update sparse_nnls.py

parent 00763fe9
......@@ -22,7 +22,6 @@ __license__ = 'WTFPL'
import numpy as np
import sys
#sys.path.append("/home/unix/rpeckner/anaconda2/lib/python2.7/site-packages/cvxopt/")
from cvxopt import solvers, matrix, spmatrix, mul
import itertools
from scipy import sparse
......@@ -243,4 +242,4 @@ if __name__ == '__main__':
d = np.array([0.8587, 0.1781, 0.0747, 0.8405]);
ret = lsqnonneg(C, d, {'show_progress': False})
print ret['x'].T
print 'Should be [2.5e-07; 6.93e-01]'
\ No newline at end of file
print 'Should be [2.5e-07; 6.93e-01]'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment