Skip to content

Commit

Permalink
Correct mapping of run_uuid to param value for compare view (mlflow#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mparkhe authored and andrewmchen committed Jun 7, 2018
1 parent f50e612 commit 1e84a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/quickstart/test.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
from random import random
from random import random, randint

from mlflow import log_metric, log_param, log_artifacts

if __name__ == "__main__":
print("Running test.py")

log_param("param1", 5)
log_param("param1", randint(0, 100))

log_metric("foo", random())
log_metric("foo", random() + 1)
Expand Down
4 changes: 2 additions & 2 deletions mlflow/server/js/src/components/CompareRunView.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ class Private {
paramKeyValueList.push(curKeyValueObj);
});

const mergedParams = Utils.mergeRuns(runInfos.map((r) => r.uuid), paramKeyValueList);
const mergedParams = Utils.mergeRuns(runInfos.map((r) => r.run_uuid), paramKeyValueList);

Object.keys(mergedParams).sort().forEach((paramKey) => {
const curRow = [];
curRow.push(paramKey);
runInfos.forEach((r) => {
const curUuid = r.uuid;
const curUuid = r.run_uuid;
curRow.push(mergedParams[paramKey][curUuid]);
});
rows.push(curRow)
Expand Down

0 comments on commit 1e84a14

Please sign in to comment.