Permalink
Browse files

modified plots

  • Loading branch information...
1 parent 9c48b4c commit 345810958930758470dcbe06b30d01c7f8bb9f23 @kykamath committed May 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 locations_for_hashtags/models.py
@@ -295,7 +295,7 @@ def plotModelWithVaryingBudget(models, metric, **kwargs):
dataX, dataY = zip(*[(t, np.mean(filter(lambda v: v!=None, values))) for i, (t, values) in enumerate(metricValues.iteritems())])
plt.plot(dataX, dataY, label=modelLabels[model.id], lw=2, marker=modelMarkers[model.id])
if metric==Metrics.rate_lag:
- leg=plt.legend(loc=4, ncol=1)
+ leg=plt.legend(loc=1, ncol=1)
# for t in leg.get_texts(): t.set_fontsize('small')
# elif metric==Metrics.target_selection_accuracy: leg=plt.legend(loc=5, ncol=2, mode='expand')
# else: leg=plt.legend(loc=3, ncol=2, mode='expand')
@@ -992,8 +992,8 @@ def run():
#Start: performance plots
for metric in [Metrics.target_selection_accuracy, Metrics.hit_rate_after_target_selection, Metrics.rate_lag]:
- LatticeSelectionModel.plotModelWithVaryingTimeUnitToPickTargetLattices([
-# LatticeSelectionModel.plotModelWithVaryingBudget([
+# LatticeSelectionModel.plotModelWithVaryingTimeUnitToPickTargetLattices([
+ LatticeSelectionModel.plotModelWithVaryingBudget([
# LatticeSelectionModel,
# GreedyLatticeSelectionModel,
# LinearRegressionLatticeSelectionModel,

0 comments on commit 3458109

Please sign in to comment.