Skip to content

Commit

Permalink
removing metric organization from experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
saghiles committed Mar 21, 2019
1 parent 9f95a0b commit 90cb8cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cornac/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,16 @@ def run(self):
organized_metrics = {'ranking': [], 'rating': []}

# Organize metrics into "rating" and "ranking" for efficiency purposes
for mt in self.metrics:
organized_metrics[mt.type].append(mt)
metric_names.append(mt.name)
#for mt in self.metrics:
# organized_metrics[mt.type].append(mt)
# metric_names.append(mt.name)

for model in self.models:
if self.verbose:
print(model.name)

model_names.append(model.name)
model_res = self.eval_method.evaluate(model=model, metrics=organized_metrics, user_based=self.user_based)
model_res = self.eval_method.evaluate(model=model, metrics=self.metrics, user_based=self.user_based)
model_res._organize_avg_res(model_name=model.name, metric_names=metric_names)
self.results._add_model_res(res=model_res, model_name=model.name)

Expand Down

0 comments on commit 90cb8cf

Please sign in to comment.