Reduce repition between commands
Compare changes
+ 42
− 304
@@ -23,43 +29,12 @@ def rank_option(**kwargs):
@@ -23,43 +29,12 @@ def rank_option(**kwargs):
@@ -67,134 +42,48 @@ def metrics(ctx, scores, evaluation, **kargs):
@@ -67,134 +42,48 @@ def metrics(ctx, scores, evaluation, **kargs):
@@ -212,7 +101,7 @@ def epc(ctx, scores, **kargs):
@@ -212,7 +101,7 @@ def epc(ctx, scores, **kargs):
@@ -257,7 +146,7 @@ def cmc(ctx, scores, evaluation, **kargs):
@@ -257,7 +146,7 @@ def cmc(ctx, scores, evaluation, **kargs):
@@ -289,154 +178,3 @@ def dir(ctx, scores, evaluation, **kargs):
@@ -289,154 +178,3 @@ def dir(ctx, scores, evaluation, **kargs):