Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
model_auto_trainer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dasharatha.vamshi
model_auto_trainer
Commits
5b8a9cb1
Commit
5b8a9cb1
authored
Feb 07, 2023
by
dasharatha.vamshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added check for parent run
parent
f158c0c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2369 additions
and
2 deletions
+2369
-2
app.py
app.py
+1
-1
logs.log
logs.log
+2363
-0
mlflow_util.py
mlflow_util.py
+5
-1
No files found.
app.py
View file @
5b8a9cb1
...
@@ -5,7 +5,7 @@ from mlflow_util import ModelReTrainer
...
@@ -5,7 +5,7 @@ from mlflow_util import ModelReTrainer
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
df
=
pd
.
read_csv
(
'mlflow-test.csv'
)
df
=
pd
.
read_csv
(
'mlflow-test.csv'
)
feature
=
'instantaneous_export'
feature
=
'instantaneous_export'
exp_name
=
'Dalmia Solar Forecasting V
2
'
exp_name
=
'Dalmia Solar Forecasting V
3
'
parent_run_name
=
'Forecasting_kadapa_v1'
parent_run_name
=
'Forecasting_kadapa_v1'
model_name
=
'versioning'
model_name
=
'versioning'
obj
=
ModelReTrainer
(
df
,
feature
,
exp_name
,
parent_run_name
,
model_name
)
obj
=
ModelReTrainer
(
df
,
feature
,
exp_name
,
parent_run_name
,
model_name
)
...
...
logs.log
View file @
5b8a9cb1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
mlflow_util.py
View file @
5b8a9cb1
...
@@ -129,7 +129,11 @@ class ModelReTrainer:
...
@@ -129,7 +129,11 @@ class ModelReTrainer:
:return: returns the parent run id
:return: returns the parent run id
"""
"""
parent_runs_df
=
mlflow
.
search_runs
(
experiment_id
)
parent_runs_df
=
mlflow
.
search_runs
(
experiment_id
)
parent_runs_df
=
parent_runs_df
[
parent_runs_df
[
'tags.mlflow.runName'
]
==
self
.
parent_run_name
]
run_key
=
'tags.mlflow.runName'
if
run_key
in
parent_runs_df
.
columns
:
parent_runs_df
=
parent_runs_df
[
parent_runs_df
[
run_key
]
==
self
.
parent_run_name
]
else
:
parent_runs_df
=
parent_runs_df
.
iloc
[:
0
]
if
not
parent_runs_df
.
empty
:
if
not
parent_runs_df
.
empty
:
logger
.
info
(
f
"Proceeding with existing Parent Run {self.parent_run_name}"
)
logger
.
info
(
f
"Proceeding with existing Parent Run {self.parent_run_name}"
)
return
list
(
parent_runs_df
[
'run_id'
])[
0
]
return
list
(
parent_runs_df
[
'run_id'
])[
0
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment