Skip to content

Commit ce0b256

Browse files
author
ercbk
committed
fixed modelID name in rf h2o, added line to remove python workers after script finishes in py
1 parent 6fd3bf9 commit ce0b256

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

duration-experiment/kuhn-johnson/nested-cv-h2o-kj.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ rf_FUN <- function(x, y, anal_h2o, ass_h2o, params) {
9393
ntrees <- params$ntrees[[1]]
9494

9595
# h20 ususally needs unique ids or loops will return exact same values over and over
96-
gridId <- as.character(dqrng::dqrnorm(1))
96+
modelId <- as.character(dqrng::dqrnorm(1))
9797

9898
h2o.show_progress()
9999

duration-experiment/raschka/nested-cv-py-raschka.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
###################################
3737

3838

39-
# If running with reticulate::repl_python or using reticulate::source_python, necessary in order
40-
# to run in parallel.
41-
# Should be ran before other modules imported.
42-
# Updates executable path in sys module.
39+
# # If running with reticulate::repl_python or using reticulate::source_python, necessary in order
40+
# # to run in parallel.
41+
# # Should be ran before other modules imported.
42+
# # Updates executable path in sys module.
4343
# import sys
4444
# import os
4545
# exe = os.path.join(sys.exec_prefix, "pythonw.exe")
@@ -50,8 +50,8 @@
5050
# multiprocessing.set_executable(exe)
5151

5252

53-
# If running with reticulate::repl_python or using reticulate::source_python, necessary in order
54-
# start MLflow's server
53+
# # If running with reticulate::repl_python or using reticulate::source_python, necessary in order
54+
# # start MLflow's server
5555
# import subprocess
5656
# import time
5757
# subprocess.Popen('mlflow server')
@@ -281,6 +281,7 @@
281281
pb.push_note("Nested CV script finished", msg)
282282

283283

284-
# only necessary if running with reticulate::repl_python or using reticulate::source_python
285-
# MLflow uses waitress for Windows. Killing it also kills mlflow.exe, python.exe, console window host processes
284+
# # only necessary if running with reticulate::repl_python or using reticulate::source_python
285+
# # MLflow uses waitress for Windows. Killing it also kills mlflow.exe, python.exe, console window host processes
286286
# os.system('taskkill /f /im waitress-serve.exe')
287+
# os.system('taskkill /f /im pythonw.exe')

0 commit comments

Comments
 (0)