Closed leocasarsa closed 8 years ago
Code in
probcomp-2: scratch/home/casarsa/Share/gusto/pilot/test_time_in_bayesdb.ipynb
25da3a5 speeds things up a bit. May I ask you to try it on gusto, or should I?
Now it's taking only four times longer, roughly.
venv: 20160505-headbdb
In:
import time
start = time.time()
q('''
CREATE TABLE IF NOT EXISTS dep_probs AS
ESTIMATE DEPENDENCE PROBABILITY FROM PAIRWISE
COLUMNS OF %s
''' %(generator,))
dep_probs = q('''SELECT * from dep_probs''')
zmat = pu.heatmap(_, bdb, dep_probs)
end = time.time()
print "Plotting heatmap took ", end - start, "s"
Out:
Plotting heatmap took 3.22220301628 s
venv: 20160516-headbdb
In:
import time
start = time.time()
q('''
CREATE TABLE IF NOT EXISTS dep_probs AS
ESTIMATE DEPENDENCE PROBABILITY FROM PAIRWISE
COLUMNS OF %s
''' %(generator,))
dep_probs = q('''SELECT * from dep_probs''')
zmat = pu.heatmap(dep_probs)
end = time.time()
print "Plotting heatmap took ", end - start, "s"
Out:
Detected value limits as [0, 1]. Override with vmin and vmax.
Plotting heatmap took 11.8242058754 s
12 s is not bad, so we might just close the issue. Still, I wanted to report the difference.
Thanks! Yes, I think that's a reasonable slowdown for the extra work being done. I appreciate the followup!
Updated version is taking longer
Outdated version is way faster