Skip to content
This repository was archived by the owner on Apr 15, 2022. It is now read-only.

Commit 99b09e5

Browse files
author
Epstein
authored
fix (#46)
* timer * plotROC bug * add run_name
1 parent 5dc0d47 commit 99b09e5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

splicemachine/mlflow_support/mlflow_support.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ def _start_run(run_id=None, tags=None, experiment_id=None, run_name=None, nested
165165

166166
for key in tags:
167167
mlflow.set_tag(key, tags[key])
168+
if run_name:
169+
mlflow.set_tag('mlflow.runName', run_name)
168170

169171

170172
@_mlflow_patch('log_pipeline_stages')
@@ -246,6 +248,7 @@ def _timer(timer_name, param=True):
246248
(mlflow.log_param if param else mlflow.log_metric)(timer_name, t1)
247249
print(
248250
f"Code Block {timer_name}:\nRan in {round(t1, 3)} secs\nRan in {round(t1 / 60, 3)} mins"
251+
)
249252

250253

251254
@_mlflow_patch('download_artifact')

splicemachine/stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ def plotROC(self, fittedEstimator, ax):
171171
trainingSummary = fittedEstimator.summary
172172
roc = trainingSummary.roc.toPandas()
173173
ax.plot(roc['FPR'], roc['TPR'], label='Training set areaUnderROC: \n' + str(trainingSummary.areaUnderROC))
174-
ax.set_ylabel('False Positive Rate')
175-
ax.set_xlabel('True Positive Rate')
174+
ax.set_xlabel('False Positive Rate')
175+
ax.set_ylabel('True Positive Rate')
176176
ax.set_title('ROC Curve')
177177
ax.legend()
178178
return ax

0 commit comments

Comments
 (0)