triggerflow 0.1.7__tar.gz → 0.1.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {triggerflow-0.1.7 → triggerflow-0.1.8}/PKG-INFO +1 -1
- {triggerflow-0.1.7 → triggerflow-0.1.8}/pyproject.toml +1 -1
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow/mlflow_wrapper.py +9 -4
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow.egg-info/PKG-INFO +1 -1
- {triggerflow-0.1.7 → triggerflow-0.1.8}/README.md +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/setup.cfg +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow/__init__.py +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow/core.py +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow/templates/makefile +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow/templates/makefile_version +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow/templates/model_template.cpp +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow/templates/scales.h +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow.egg-info/SOURCES.txt +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow.egg-info/dependency_links.txt +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow.egg-info/requires.txt +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/src/triggerflow.egg-info/top_level.txt +0 -0
- {triggerflow-0.1.7 → triggerflow-0.1.8}/tests/test.py +0 -0
|
@@ -15,7 +15,8 @@ def setup_mlflow(mlflow_uri: str = None,
|
|
|
15
15
|
run_name: str = None,
|
|
16
16
|
experiment_id: str = None,
|
|
17
17
|
run_id: str = None,
|
|
18
|
-
save_env_file=True
|
|
18
|
+
save_env_file: bool = True,
|
|
19
|
+
auto_configure: bool = False
|
|
19
20
|
):
|
|
20
21
|
|
|
21
22
|
# Set the MLflow tracking URI
|
|
@@ -110,13 +111,17 @@ def setup_mlflow(mlflow_uri: str = None,
|
|
|
110
111
|
f.write(f"MLFLOW_EXPERIMENT_ID={experiment_id}\n")
|
|
111
112
|
f.write(f"MLFLOW_RUN_ID={run_id}\n")
|
|
112
113
|
|
|
114
|
+
if auto_configure:
|
|
115
|
+
print("Auto_configure is set to true. Exporting AUTO_CONFIGURE=true")
|
|
116
|
+
f.write(f"AUTO_CONFIGURE=true\n")
|
|
117
|
+
|
|
113
118
|
return experiment_name, run_name, experiment_id, run_id
|
|
114
119
|
|
|
115
|
-
if os.getenv("
|
|
116
|
-
print("
|
|
120
|
+
if os.getenv("AUTO_CONFIGURE") == "true":
|
|
121
|
+
print("AUTO_CONFIGURE is true and running in CI environment. Setting up mlflow...")
|
|
117
122
|
setup_mlflow()
|
|
118
123
|
else:
|
|
119
|
-
print("
|
|
124
|
+
print("AUTO_CONFIGURE is not set. Skipping mlflow run setup")
|
|
120
125
|
|
|
121
126
|
class MLflowWrapper(mlflow.pyfunc.PythonModel):
|
|
122
127
|
"""PyFunc wrapper for TriggerModel; backend can be set at runtime."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|